Changeset 96b02eb9 in mainline for uspace/lib/c/generic/vfs/vfs.c
- Timestamp:
- 2010-12-14T12:52:38Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6b10dab
- Parents:
- 554debd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/vfs/vfs.c
r554debd r96b02eb9 158 158 vfs_connect(); 159 159 160 ipcarg_t rc_orig;160 sysarg_t rc_orig; 161 161 aid_t req = async_send_2(vfs_phone, VFS_IN_MOUNT, devmap_handle, flags, NULL); 162 ipcarg_t rc = async_data_write_start(vfs_phone, (void *) mpa, mpa_size);162 sysarg_t rc = async_data_write_start(vfs_phone, (void *) mpa, mpa_size); 163 163 if (rc != EOK) { 164 164 async_wait_for(req, &rc_orig); … … 238 238 int unmount(const char *mp) 239 239 { 240 ipcarg_t rc;241 ipcarg_t rc_orig;240 sysarg_t rc; 241 sysarg_t rc_orig; 242 242 aid_t req; 243 243 size_t mpa_size; … … 282 282 ipc_call_t answer; 283 283 aid_t req = async_send_3(vfs_phone, VFS_IN_OPEN, lflag, oflag, 0, &answer); 284 ipcarg_t rc = async_data_write_start(vfs_phone, abs, abs_size);285 286 if (rc != EOK) { 287 ipcarg_t rc_orig;284 sysarg_t rc = async_data_write_start(vfs_phone, abs, abs_size); 285 286 if (rc != EOK) { 287 sysarg_t rc_orig; 288 288 async_wait_for(req, &rc_orig); 289 289 … … 330 330 node->devmap_handle, node->index, oflag, &answer); 331 331 332 ipcarg_t rc;332 sysarg_t rc; 333 333 async_wait_for(req, &rc); 334 334 async_serialize_end(); … … 343 343 int close(int fildes) 344 344 { 345 ipcarg_t rc;345 sysarg_t rc; 346 346 347 347 futex_down(&vfs_phone_futex); … … 359 359 ssize_t read(int fildes, void *buf, size_t nbyte) 360 360 { 361 ipcarg_t rc;361 sysarg_t rc; 362 362 ipc_call_t answer; 363 363 aid_t req; … … 370 370 rc = async_data_read_start(vfs_phone, (void *)buf, nbyte); 371 371 if (rc != EOK) { 372 ipcarg_t rc_orig;372 sysarg_t rc_orig; 373 373 374 374 async_wait_for(req, &rc_orig); … … 391 391 ssize_t write(int fildes, const void *buf, size_t nbyte) 392 392 { 393 ipcarg_t rc;393 sysarg_t rc; 394 394 ipc_call_t answer; 395 395 aid_t req; … … 402 402 rc = async_data_write_start(vfs_phone, (void *)buf, nbyte); 403 403 if (rc != EOK) { 404 ipcarg_t rc_orig;404 sysarg_t rc_orig; 405 405 406 406 async_wait_for(req, &rc_orig); … … 427 427 vfs_connect(); 428 428 429 ipcarg_t rc = async_req_1_0(vfs_phone, VFS_IN_SYNC, fildes);429 sysarg_t rc = async_req_1_0(vfs_phone, VFS_IN_SYNC, fildes); 430 430 431 431 async_serialize_end(); … … 441 441 vfs_connect(); 442 442 443 ipcarg_t newoff_lo;444 ipcarg_t newoff_hi;445 ipcarg_t rc = async_req_4_2(vfs_phone, VFS_IN_SEEK, fildes,443 sysarg_t newoff_lo; 444 sysarg_t newoff_hi; 445 sysarg_t rc = async_req_4_2(vfs_phone, VFS_IN_SEEK, fildes, 446 446 LOWER32(offset), UPPER32(offset), whence, 447 447 &newoff_lo, &newoff_hi); … … 458 458 int ftruncate(int fildes, aoff64_t length) 459 459 { 460 ipcarg_t rc;460 sysarg_t rc; 461 461 462 462 futex_down(&vfs_phone_futex); … … 474 474 int fstat(int fildes, struct stat *stat) 475 475 { 476 ipcarg_t rc;476 sysarg_t rc; 477 477 aid_t req; 478 478 … … 484 484 rc = async_data_read_start(vfs_phone, (void *) stat, sizeof(struct stat)); 485 485 if (rc != EOK) { 486 ipcarg_t rc_orig;486 sysarg_t rc_orig; 487 487 488 488 async_wait_for(req, &rc_orig); … … 503 503 int stat(const char *path, struct stat *stat) 504 504 { 505 ipcarg_t rc;506 ipcarg_t rc_orig;505 sysarg_t rc; 506 sysarg_t rc_orig; 507 507 aid_t req; 508 508 … … 593 593 int mkdir(const char *path, mode_t mode) 594 594 { 595 ipcarg_t rc;595 sysarg_t rc; 596 596 aid_t req; 597 597 … … 608 608 rc = async_data_write_start(vfs_phone, pa, pa_size); 609 609 if (rc != EOK) { 610 ipcarg_t rc_orig;610 sysarg_t rc_orig; 611 611 612 612 async_wait_for(req, &rc_orig); … … 628 628 static int _unlink(const char *path, int lflag) 629 629 { 630 ipcarg_t rc;630 sysarg_t rc; 631 631 aid_t req; 632 632 … … 643 643 rc = async_data_write_start(vfs_phone, pa, pa_size); 644 644 if (rc != EOK) { 645 ipcarg_t rc_orig;645 sysarg_t rc_orig; 646 646 647 647 async_wait_for(req, &rc_orig); … … 673 673 int rename(const char *old, const char *new) 674 674 { 675 ipcarg_t rc;676 ipcarg_t rc_orig;675 sysarg_t rc; 676 sysarg_t rc_orig; 677 677 aid_t req; 678 678 … … 810 810 vfs_connect(); 811 811 812 ipcarg_t ret;813 ipcarg_t rc = async_req_2_1(vfs_phone, VFS_IN_DUP, oldfd, newfd, &ret);812 sysarg_t ret; 813 sysarg_t rc = async_req_2_1(vfs_phone, VFS_IN_DUP, oldfd, newfd, &ret); 814 814 815 815 async_serialize_end();
Note:
See TracChangeset
for help on using the changeset viewer.