Go to the previous, next section.
int fsync(int fd);
Synchronizes the state of the file on disk with the state of the file in core. (For one thing, it flushes the file buffers.)
fd: [in] the file to sync.
On success zero is returned. On error, -1 is returned and errno
is
set to one of: EINVAL
, EBADF
or EIO
.
Go to the previous, next section.