Lines Matching defs:res
450 int res;
461 res = writev(fuse->fd, vec, 2);
462 if (res < 0) {
741 int res;
753 res = -ENOENT;
759 res = -ENOENT;
773 res = -ENOENT;
778 res = rename(old_child_path, new_child_path);
779 if (res < 0) {
780 res = -errno;
785 res = rename_node_locked(child_node, new_name, new_actual_name);
786 if (!res) {
798 return res;
842 int res;
853 res = pread64(h->fd, handler->read_buffer, size, offset);
854 if (res < 0) {
857 fuse_reply(fuse, unique, handler->read_buffer, res);
867 int res;
871 res = pwrite64(h->fd, buffer, req->size, req->offset);
872 if (res < 0) {
875 out.size = res;
886 int res;
890 res = get_node_path_locked(&fuse->root, path, sizeof(path));
892 if (res < 0) {
927 int res;
931 res = is_data_sync ? fdatasync(h->fd) : fsync(h->fd);
932 if (res < 0) {
1186 int res = handle_fuse_request(fuse, handler, hdr, data, data_len);
1191 if (res != NO_STATUS) {
1192 if (res) {
1193 TRACE("[%d] ERROR %d\n", handler->token, res);
1195 fuse_status(fuse, unique, res);
1225 int res = pthread_create(&thread, NULL, start_handler, &handlers[i]);
1226 if (res) {
1227 ERROR("failed to start thread #%d, error=%d", i, res);
1252 int res;
1268 res = mount("/dev/fuse", dest_path, "fuse", MS_NOSUID | MS_NODEV, opts);
1269 if (res < 0) {
1274 res = setgid(gid);
1275 if (res < 0) {
1280 res = setuid(uid);
1281 if (res < 0) {
1289 res = ignite_fuse(&fuse, num_threads);
1296 return res;
1301 int res;
1356 res = run(source_path, dest_path, uid, gid, num_threads);
1357 return res < 0 ? 1 : 0;