![]() |
![]() |
![]() |
Synchronize file data
#include <unistd.h> int fdatasync( int filedes );
libc
The fdatasync() function forces all queued I/O operations for the file specified by the filedes file descriptor to finish, synchronizing the file's data.
This function is similar to fsync(), except that fsync() also guarantees the integrity of file information such as access and modification times.
POSIX 1003.1 (Realtime Extensions)
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
aio_fsync(), close(), fcntl(), fsync(), open(), read(), sync(), write()
![]() |
![]() |
![]() |