Standard C Library Functions fdatasync(3C)
NAME
fdatasync - synchronize a file's data
SYNOPSIS
#include
int fdatasync(int fildes);
DESCRIPTION
The 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.
The functionality is as described for fsync(3C) (with the
symbol XOPENREALTIME defined), with the exception that all
I/O operations are completed as defined for synchronised I/O
data integrity completion.
RETURN VALUES
If successful, the fdatasync() function returns 0. Other-
wise, the function returns -1 and sets errno to indicate the
error. If the fdatasync() function fails, outstanding I/O
operations are not guaranteed to have been completed.
ERORS
The fdatasync() function will fail if:
EBADF The fildes argument is not a valid file descriptor
open for writing.
EINVAL The system does not support synchronized I/O for
this file.
ENOSYS The function fdatasync() is not supported by the
system.
In the event that any of the queued I/O operations fail,
fdatasync() returns the error conditions defined for read(2)
and write(2).
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
SunOS 5.11 Last change: 5 Feb 2008 1
Standard C Library Functions fdatasync(3C)
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level Async-Signal-Safe
Standard See standards(5).
SEE ALSO
fcntl(2), open(2), read(2), write(2), fsync(3C),
aiofsync(3C), fcntl.h(3HEAD), attributes(5), standards(5)
SunOS 5.11 Last change: 5 Feb 2008 2
|