Lines Matching refs:res
749 int res; in fuse_reply() local
760 res = writev(fuse->fd, vec, 2); in fuse_reply()
761 if (res < 0) { in fuse_reply()
1093 int res; in handle_rename() local
1106 res = -ENOENT; in handle_rename()
1110 res = -EACCES; in handle_rename()
1114 res = -EACCES; in handle_rename()
1120 res = -ENOENT; in handle_rename()
1134 res = -ENOENT; in handle_rename()
1139 res = rename(old_child_path, new_child_path); in handle_rename()
1140 if (res < 0) { in handle_rename()
1141 res = -errno; in handle_rename()
1146 res = rename_node_locked(child_node, new_name, new_actual_name); in handle_rename()
1147 if (!res) { in handle_rename()
1159 return res; in handle_rename()
1220 int res; in handle_read() local
1231 res = pread64(h->fd, handler->read_buffer, size, offset); in handle_read()
1232 if (res < 0) { in handle_read()
1235 fuse_reply(fuse, unique, handler->read_buffer, res); in handle_read()
1245 int res; in handle_write() local
1249 res = pwrite64(h->fd, buffer, req->size, req->offset); in handle_write()
1250 if (res < 0) { in handle_write()
1253 out.size = res; in handle_write()
1264 int res; in handle_statfs() local
1268 res = get_node_path_locked(&fuse->root, path, sizeof(path)); in handle_statfs()
1270 if (res < 0) { in handle_statfs()
1305 int res; in handle_fsync() local
1309 res = is_data_sync ? fdatasync(h->fd) : fsync(h->fd); in handle_fsync()
1310 if (res < 0) { in handle_fsync()
1569 int res = handle_fuse_request(fuse, handler, hdr, data, data_len); in handle_fuse_requests() local
1574 if (res != NO_STATUS) { in handle_fuse_requests()
1575 if (res) { in handle_fuse_requests()
1576 TRACE("[%d] ERROR %d\n", handler->token, res); in handle_fuse_requests()
1578 fuse_status(fuse, unique, res); in handle_fuse_requests()
1658 int res = inotify_add_watch(nfd, kPackagesListFile, IN_DELETE_SELF); in watch_package_list() local
1659 if (res == -1) { in watch_package_list()
1681 int res = read(nfd, event_buf, sizeof(event_buf)); in watch_package_list() local
1682 if (res < (int) sizeof(*event)) { in watch_package_list()
1689 while (res >= (int) sizeof(*event)) { in watch_package_list()
1701 res -= event_size; in watch_package_list()
1728 int res = pthread_create(&thread, NULL, start_handler, &handlers[i]); in ignite_fuse() local
1729 if (res) { in ignite_fuse()
1730 ERROR("failed to start thread #%d, error=%d\n", i, res); in ignite_fuse()
1768 int res; in run() local
1784 res = mount("/dev/fuse", dest_path, "fuse", MS_NOSUID | MS_NODEV, opts); in run()
1785 if (res < 0) { in run()
1790 res = setgroups(sizeof(kGroups) / sizeof(kGroups[0]), kGroups); in run()
1791 if (res < 0) { in run()
1796 res = setgid(gid); in run()
1797 if (res < 0) { in run()
1802 res = setuid(uid); in run()
1803 if (res < 0) { in run()
1811 res = ignite_fuse(&fuse, num_threads); in run()
1818 return res; in run()
1823 int res; in main() local
1908 res = run(source_path, dest_path, uid, gid, write_gid, num_threads, derive, split_perms); in main()
1909 return res < 0 ? 1 : 0; in main()