Changeset a56cef9 in mainline for uspace/lib/c/generic/io/io.c
- Timestamp:
- 2017-03-30T21:09:51Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update
- Children:
- 6e5562a
- Parents:
- 67e881c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/io.c
r67e881c ra56cef9 836 836 837 837 if ((stream->fd >= 0) && (stream->need_sync)) { 838 int rc; 839 838 840 /** 839 841 * Better than syncing always, but probably still not the … … 841 843 */ 842 844 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; 845 848 return EOF; 846 849 }
Note:
See TracChangeset
for help on using the changeset viewer.