1 .\" Copyright (c) 2003 Andries Brouwer (aeb@cwi.nl)
3 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
9 .\" The GNU General Public License's references to "object code"
10 .\" and "executables" are to be interpreted as the output of any
11 .\" document formatting or typesetting system, including
12 .\" intermediate and printed output.
14 .\" This manual is distributed in the hope that it will be useful,
15 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
16 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 .\" GNU General Public License for more details.
19 .\" You should have received a copy of the GNU General Public
20 .\" License along with this manual; if not, see
21 .\" <http://www.gnu.org/licenses/>.
24 .TH AIO_FSYNC 3 2017-09-15 "" "Linux Programmer's Manual"
26 aio_fsync \- asynchronous file synchronization
30 .BI "int aio_fsync(int " op ", struct aiocb *" aiocbp );
32 Link with \fI\-lrt\fP.
36 function does a sync on all outstanding asynchronous I/O operations
38 .IR aiocbp\->aio_fildes .
41 for a description of the
49 then all currently queued I/O operations shall be
50 completed as if by a call of
56 this call is the asynchronous analog of
59 Note that this is a request only; it does not wait for I/O completion.
63 the only field in the structure pointed to by
65 that is used by this call is the
69 structure, described in
71 which indicates the desired type of asynchronous notification at completion.
72 All other fields are ignored.
74 On success (the sync request was successfully queued)
75 this function returns 0.
76 On error, \-1 is returned, and
86 is not a valid file descriptor open for writing.
89 Synchronized I/O is not supported for this file, or
102 function is available since glibc 2.1.
104 For an explanation of the terms used in this section, see
110 Interface Attribute Value
113 T} Thread safety MT-Safe
116 POSIX.1-2001, POSIX.1-2008.