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


Ignore:
Timestamp:
2017-03-30T21:09:51Z (7 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/io/io.c

    r67e881c ra56cef9  
    836836       
    837837        if ((stream->fd >= 0) && (stream->need_sync)) {
     838                int rc;
     839
    838840                /**
    839841                 * Better than syncing always, but probably still not the
     
    841843                 */
    842844                stream->need_sync = false;
    843                 if (fsync(stream->fd) != 0) {
    844                         /* errno was set by fsync() */
     845                rc = vfs_sync(stream->fd);
     846                if (rc != EOK) {
     847                        errno = rc;
    845848                        return EOF;
    846849                }
Note: See TracChangeset for help on using the changeset viewer.