.\" Copyright (c) 2003 Andries Brouwer (aeb@cwi.nl)
.\"
-.\" %%%LICENSE_START(GPLv2+_doc_full)
+.\" %%%LICENSE_START(GPLv2+_DOC_FULL)
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" <http://www.gnu.org/licenses/>.
.\" %%%LICENSE_END
.\"
-.TH AIO_FSYNC 3 2012-05-08 "" "Linux Programmer's Manual"
+.TH AIO_FSYNC 3 2017-09-15 "" "Linux Programmer's Manual"
.SH NAME
aio_fsync \- asynchronous file synchronization
.SH SYNOPSIS
.B "#include <aio.h>"
-.sp
+.PP
.BI "int aio_fsync(int " op ", struct aiocb *" aiocbp );
-.sp
+.PP
Link with \fI\-lrt\fP.
.SH DESCRIPTION
The
for a description of the
.I aiocb
structure.)
-.LP
+.PP
More precisely, if
.I op
is
.BR O_DSYNC ,
this call is the asynchronous analog of
.BR fdatasync (2).
-
+.PP
Note that this is a request only; it does not wait for I/O completion.
-.LP
+.PP
Apart from
.IR aio_fildes ,
the only field in the structure pointed to by
.SH RETURN VALUE
On success (the sync request was successfully queued)
this function returns 0.
-On error \-1 is returned, and
+On error, \-1 is returned, and
.I errno
is set appropriately.
.SH ERRORS
The
.BR aio_fsync ()
function is available since glibc 2.1.
+.SH ATTRIBUTES
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lb lb lb
+l l l.
+Interface Attribute Value
+T{
+.BR aio_fsync ()
+T} Thread safety MT-Safe
+.TE
.SH CONFORMING TO
POSIX.1-2001, POSIX.1-2008.
.SH SEE ALSO