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