Changeset a56cef9 in mainline for uspace/lib/c/generic/vfs/vfs.c


Ignore:
Timestamp:
2017-03-30T21:09:51Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6e5562a
Parents:
67e881c
Message:

Rename fsync() to vfs_sync()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/vfs/vfs.c

    r67e881c ra56cef9  
    597597 *
    598598 * @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 */
     601int 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;
    613608}
    614609
     
    620615 * @param length Length
    621616 *
    622  * @return 0 on success or a negative erroc code otherwise.
     617 * @return EOK on success or a negative erroc code otherwise.
    623618 */
    624619int vfs_resize(int file, aoff64_t length)
Note: See TracChangeset for help on using the changeset viewer.