1 .\" Copyright (c) 2003 Andries Brouwer (aeb@cwi.nl)
3 .\" SPDX-License-Identifier: GPL-2.0-or-later
5 .TH AIO_FSYNC 3 2021-03-22 "" "Linux Programmer's Manual"
7 aio_fsync \- asynchronous file synchronization
10 .RI ( librt ", " \-lrt )
15 .BI "int aio_fsync(int " op ", struct aiocb *" aiocbp );
20 function does a sync on all outstanding asynchronous I/O operations
22 .IR aiocbp\->aio_fildes .
25 for a description of the
33 then all currently queued I/O operations shall be
34 completed as if by a call of
40 this call is the asynchronous analog of
43 Note that this is a request only; it does not wait for I/O completion.
47 the only field in the structure pointed to by
49 that is used by this call is the
53 structure, described in
55 which indicates the desired type of asynchronous notification at completion.
56 All other fields are ignored.
58 On success (the sync request was successfully queued)
59 this function returns 0.
60 On error, \-1 is returned, and
62 is set to indicate the error.
70 is not a valid file descriptor open for writing.
73 Synchronized I/O is not supported for this file, or
86 function is available since glibc 2.1.
88 For an explanation of the terms used in this section, see
96 Interface Attribute Value
99 T} Thread safety MT-Safe
105 POSIX.1-2001, POSIX.1-2008.