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