Lines Matching refs:ret
28 int ret; in main_getenforce() local
30 ret = libxl_flask_getenforce(ctx); in main_getenforce()
32 if (ret < 0) { in main_getenforce()
38 else if (ret == 1) in main_getenforce()
40 else if (ret == 0) in main_getenforce()
43 return ret; in main_getenforce()
48 int ret, mode; in main_setenforce() local
71 ret = libxl_flask_setenforce(ctx, mode); in main_setenforce()
73 if (ret) { in main_setenforce()
78 fprintf(stderr, "error occurred while setting enforcing mode (%i)\n", ret); in main_setenforce()
81 return ret; in main_setenforce()
90 int ret; in main_loadpolicy() local
102 ret = -1; in main_loadpolicy()
106 ret = stat(polFName, &info); in main_loadpolicy()
107 if (ret < 0) { in main_loadpolicy()
115 ret = read(polFd, polMemCp, info.st_size); in main_loadpolicy()
116 if ( ret < 0 ) { in main_loadpolicy()
122 ret = libxl_flask_loadpolicy(ctx, polMemCp, info.st_size); in main_loadpolicy()
124 if (ret < 0) { in main_loadpolicy()
128 errno = -ret; in main_loadpolicy()
131 ret = -1; in main_loadpolicy()
142 return ret; in main_loadpolicy()