Changeset a56cef9 in mainline for uspace/lib/c/generic/vfs/vfs.c
- Timestamp:
- 2017-03-30T21:09:51Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6e5562a
- Parents:
- 67e881c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/vfs/vfs.c
r67e881c ra56cef9 597 597 * 598 598 * @param fildes File descriptor 599 * @return 0 on success. On error returns -1 and sets errno. 600 */ 601 int fsync(int fildes) 602 { 603 async_exch_t *exch = vfs_exchange_begin(); 604 sysarg_t rc = async_req_1_0(exch, VFS_IN_SYNC, fildes); 605 vfs_exchange_end(exch); 606 607 if (rc != EOK) { 608 errno = rc; 609 return -1; 610 } 611 612 return 0; 599 * @return EOK on success or a negative error code otherwise. 600 */ 601 int vfs_sync(int file) 602 { 603 async_exch_t *exch = vfs_exchange_begin(); 604 sysarg_t rc = async_req_1_0(exch, VFS_IN_SYNC, file); 605 vfs_exchange_end(exch); 606 607 return rc; 613 608 } 614 609 … … 620 615 * @param length Length 621 616 * 622 * @return 0on success or a negative erroc code otherwise.617 * @return EOK on success or a negative erroc code otherwise. 623 618 */ 624 619 int vfs_resize(int file, aoff64_t length)
Note:
See TracChangeset
for help on using the changeset viewer.