Changes in uspace/lib/c/generic/vfs/vfs.c [38db6288:73fbcbb] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/vfs/vfs.c
r38db6288 r73fbcbb 342 342 } 343 343 344 ssize_t read(int fildes, void *buf, size_t nbyte) 344 ssize_t read(int fildes, void *buf, size_t nbyte) 345 345 { 346 346 sysarg_t rc; … … 348 348 aid_t req; 349 349 350 if (nbyte > DATA_XFER_LIMIT)351 nbyte = DATA_XFER_LIMIT;352 353 350 async_exch_t *exch = vfs_exchange_begin(); 354 351 355 352 req = async_send_1(exch, VFS_IN_READ, fildes, &answer); 356 rc = async_data_read_start(exch, (void *) 353 rc = async_data_read_start(exch, (void *)buf, nbyte); 357 354 if (rc != EOK) { 358 355 vfs_exchange_end(exch); … … 380 377 aid_t req; 381 378 382 if (nbyte > DATA_XFER_LIMIT)383 nbyte = DATA_XFER_LIMIT;384 385 379 async_exch_t *exch = vfs_exchange_begin(); 386 380 387 381 req = async_send_1(exch, VFS_IN_WRITE, fildes, &answer); 388 rc = async_data_write_start(exch, (void *) 382 rc = async_data_write_start(exch, (void *)buf, nbyte); 389 383 if (rc != EOK) { 390 384 vfs_exchange_end(exch); … … 742 736 } 743 737 744 int remove(const char *path)745 {746 return unlink(path);747 }748 749 738 int chdir(const char *path) 750 739 {
Note:
See TracChangeset
for help on using the changeset viewer.