Function
GLibfsync
since: 2.64
Declaration [src]
gint
g_fsync (
gint fd
)
Description [src]
A wrapper for the POSIX fsync()
function. On Windows, _commit()
will be
used. On macOS, fcntl(F_FULLFSYNC)
will be used.
The fsync()
function is used to synchronize a file’s in-core
state with that of the disk.
This wrapper will handle retrying on EINTR
.
See the C library manual for more details about fsync().
Available since: 2.64