Synchronizes the data to a file.
#include <unistd.h> int fdatasync ( int fildes);
(IN) Specifies a file descriptor.
If successful, returns 0. Otherwise, returns -1 and sets errno to one of the following:
The fdatasync function forces all currently queued I/O operations associated with the specified file to the synchronized completion state.