Changes in uspace/srv/vfs/vfs_ipc.c [b7fd2a0:6ad454f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_ipc.c
rb7fd2a0 r6ad454f 42 42 43 43 int outfd = -1; 44 errno_t rc = vfs_op_clone(oldfd, newfd, desc, &outfd);44 int rc = vfs_op_clone(oldfd, newfd, desc, &outfd); 45 45 async_answer_1(rid, rc, outfd); 46 46 } … … 53 53 vfs_fs_probe_info_t info; 54 54 size_t len; 55 errno_t rc;55 int rc; 56 56 57 57 /* … … 88 88 size_t len; 89 89 vfs_fstypes_t fstypes; 90 errno_t rc;90 int rc; 91 91 92 92 rc = vfs_get_fstypes(&fstypes); … … 129 129 130 130 /* Now we expect to receive the mount options. */ 131 errno_t rc = async_data_write_accept((void **) &opts, true, 0,131 int rc = async_data_write_accept((void **) &opts, true, 0, 132 132 MAX_MNTOPTS_LEN, 0, NULL); 133 133 if (rc != EOK) { … … 161 161 int mode = IPC_GET_ARG2(*request); 162 162 163 errno_t rc = vfs_op_open(fd, mode);163 int rc = vfs_op_open(fd, mode); 164 164 async_answer_0(rid, rc); 165 165 } … … 168 168 { 169 169 int fd = IPC_GET_ARG1(*request); 170 errno_t rc = vfs_op_put(fd);170 int rc = vfs_op_put(fd); 171 171 async_answer_0(rid, rc); 172 172 } … … 179 179 180 180 size_t bytes = 0; 181 errno_t rc = vfs_op_read(fd, pos, &bytes);181 int rc = vfs_op_read(fd, pos, &bytes); 182 182 async_answer_1(rid, rc, bytes); 183 183 } … … 189 189 char *old = NULL; 190 190 char *new = NULL; 191 errno_t rc;191 int rc; 192 192 193 193 basefd = IPC_GET_ARG1(*request); … … 231 231 int fd = IPC_GET_ARG1(*request); 232 232 int64_t size = MERGE_LOUP32(IPC_GET_ARG2(*request), IPC_GET_ARG3(*request)); 233 errno_t rc = vfs_op_resize(fd, size);233 int rc = vfs_op_resize(fd, size); 234 234 async_answer_0(rid, rc); 235 235 } … … 238 238 { 239 239 int fd = IPC_GET_ARG1(*request); 240 errno_t rc = vfs_op_stat(fd);240 int rc = vfs_op_stat(fd); 241 241 async_answer_0(rid, rc); 242 242 } … … 246 246 int fd = (int) IPC_GET_ARG1(*request); 247 247 248 errno_t rc = vfs_op_statfs(fd);248 int rc = vfs_op_statfs(fd); 249 249 async_answer_0(rid, rc); 250 250 } … … 253 253 { 254 254 int fd = IPC_GET_ARG1(*request); 255 errno_t rc = vfs_op_sync(fd);255 int rc = vfs_op_sync(fd); 256 256 async_answer_0(rid, rc); 257 257 } … … 263 263 264 264 char *path; 265 errno_t rc = async_data_write_accept((void **) &path, true, 0, 0, 0, NULL);265 int rc = async_data_write_accept((void **) &path, true, 0, 0, 0, NULL); 266 266 if (rc == EOK) 267 267 rc = vfs_op_unlink(parentfd, expectfd, path); … … 273 273 { 274 274 int mpfd = IPC_GET_ARG1(*request); 275 errno_t rc = vfs_op_unmount(mpfd);275 int rc = vfs_op_unmount(mpfd); 276 276 async_answer_0(rid, rc); 277 277 } … … 281 281 bool high_fd = IPC_GET_ARG1(*request); 282 282 int fd = -1; 283 errno_t rc = vfs_op_wait_handle(high_fd, &fd);283 int rc = vfs_op_wait_handle(high_fd, &fd); 284 284 async_answer_1(rid, rc, fd); 285 285 } … … 296 296 int fd = 0; 297 297 char *path; 298 errno_t rc = async_data_write_accept((void **)&path, true, 0, 0, 0, NULL);298 int rc = async_data_write_accept((void **)&path, true, 0, 0, 0, NULL); 299 299 if (rc == EOK) { 300 300 rc = vfs_op_walk(parentfd, flags, path, &fd); … … 311 311 312 312 size_t bytes = 0; 313 errno_t rc = vfs_op_write(fd, pos, &bytes);313 int rc = vfs_op_write(fd, pos, &bytes); 314 314 async_answer_1(rid, rc, bytes); 315 315 }
Note:
See TracChangeset
for help on using the changeset viewer.