1 .\" Copyright (c) 2003 Andries Brouwer (aeb@cwi.nl)
3 .\" This is free documentation; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License as
5 .\" published by the Free Software Foundation; either version 2 of
6 .\" the License, or (at your option) any later version.
8 .\" The GNU General Public License's references to "object code"
9 .\" and "executables" are to be interpreted as the output of any
10 .\" document formatting or typesetting system, including
11 .\" intermediate and printed output.
13 .\" This manual is distributed in the hope that it will be useful,
14 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
15 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 .\" GNU General Public License for more details.
18 .\" You should have received a copy of the GNU General Public
19 .\" License along with this manual; if not, write to the Free
20 .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
23 .TH AIO_FSYNC 3 2010-10-02 "" "Linux Programmer's Manual"
25 aio_fsync \- asynchronous file synchronization
29 .BI "int aio_fsync(int " op ", struct aiocb *" aiocbp );
31 Link with \fI\-lrt\fP.
35 function does a sync on all outstanding asynchronous I/O operations
37 .IR aiocbp\->aio_fildes .
40 for a description of the
48 then all currently queued I/O operations shall be
49 completed as if by a call of
55 this call is the asynchronous analog of
58 Note that this is a request only; it does not wait for I/O completion.
62 the only field in the structure pointed to by
64 that is used by this call is the
68 structure, described in
70 which indicates the desired type of asynchronous notification at completion.
71 All other fields are ignored.
73 On success (the sync request was successfully queued)
74 this function returns 0.
75 On error \-1 is returned, and
85 is not a valid file descriptor open for writing.
88 Synchronized I/O is not supported for this file, or
97 function is available since glibc 2.1.
99 POSIX.1-2001, POSIX.1-2008.