aio_fsync(3) Library Functions Manual aio_fsync(3) aio_fsync - LIBRARY Real-time library (librt, -lrt) #include int aio_fsync(int op, struct aiocb *aiocbp); aio_fsync() -, aiocbp->aio_fildes ( aiocb aio(7)). , op O_SYNC, - , fsync(2), op O_DSYNC, fdatasync(2). , ; -. Apart from aio_fildes, the only field in the structure pointed to by aiocbp that is used by this call is the aio_sigevent field (a sigevent structure, described in sigevent(3type)), which indicates the desired type of asynchronous notification at completion. All other fields are ignored. On success (the sync request was successfully queued) this function returns 0. On error, -1 is returned, and errno is set to indicate the error. EAGAIN . EBADF aio_fildes , . EINVAL - , op O_SYNC O_DSYNC. ENOSYS aio_fsync() . attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |aio_fsync() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ POSIX.1-2008. glibc 2.1. POSIX.1-2001. . aio_cancel(3), aio_error(3), aio_read(3), aio_return(3), aio_suspend(3), aio_write(3), lio_listio(3), aio(7), sigevent(3type) Dmitry Bolkhovskikh Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . aio_fsync(3)