Implementation status: to be implemented
int fdatasync(int fildes);
fdatasync() function synchronizes the data of the file.
fildes - the file descriptor.
fdatasync() function forces all currently queued I/O operations associated with the file indicated by file descriptor fildes to the synchronized I/O completion state.
Upon successful completion, the
fdatasync() function returns
-1 is returned and
errno set to indicate the error.
If the function fails, outstanding I/O operations are not guaranteed to be completed.
EBADF] The fildes argument is not a valid file descriptor
EINVAL] This implementation does not support synchronized I/O for this file.
- Implement the