Lines Matching refs:res
70 int res;
77 res = system(cmd);
78 if (res != 0)
79 return res;
81 res = rump_init();
82 if (res != 0)
83 return res;
95 res = rump_pub_etfs_register(args->ta_devpath, image, RUMP_ETFS_BLK);
96 if (res != 0) {
98 return res;
110 int res;
113 res = rump_pub_etfs_remove(args->ta_devpath);
114 if (res != 0)
115 return res;
117 res = unlink(args->ta_imgpath);
118 if (res != 0)
119 return res;
168 int res;
174 res = rump_sys_mkdir(path, 0777);
175 if (res == -1)
176 return res;
178 res = rump_sys_mount(MOUNT_LFS, path, flags, &args->ta_uargs,
180 if (res == -1) {
182 return res;
191 res = rump_sys_fcntl(fd, LFCNAUTOCLEAN, &autoclean);
192 if (res) {
194 return res;
196 res = rump_sys_close(fd);
197 if (res)
198 return res;
201 res = pthread_create(&args->ta_cleanerthread, NULL, cleaner, args);
202 if (res)
203 return res;
215 int res;
217 res = rump_sys_unmount(path, flags);
218 if (res == -1) {
219 return res;
222 res = rump_sys_rmdir(path);
223 return res;