aio_write(3) Library Functions Manual aio_write(3) aio_write - LIBRARY Real-time library (librt, -lrt) #include int aio_write(struct aiocb *aiocbp); aio_write() -, , aiocbp. write(2). write(fd, buf, count) ( ) aio_fildes, aio_buf aio_nbytes , aiocbp ( aiocb aio(7)). O_APPEND , aiocbp->aio_offset, . O_APPEND , , aio_write(). . The "asynchronous" means that this call returns as soon as the request has been enqueued; the write may or may not have completed when the call returns. One tests for completion using aio_error(3). The return status of a completed I/O operation can be obtained aio_return(3). Asynchronous notification of I/O completion can be obtained by setting aiocbp->aio_sigevent appropriately; see sigevent(3type) for details. _POSIX_PRIORITIZED_IO , aiocbp->aio_reqprio. aiocbp->aio_lio_opcode . , . On success, 0 is returned. On error, the request is not enqueued, -1 is returned, and errno is set to indicate the error. If an error is detected only later, it will be reported via aio_return(3) (returns status -1) and aio_error(3) (error status--whatever one would have gotten in errno, such as EBADF). EAGAIN . EBADF aio_fildes , . EFBIG , , . EINVAL aio_offset, aio_reqprio aio_nbytes, . ENOSYS aio_write() . attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |aio_write() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ POSIX.1-2008. glibc 2.1. POSIX.1-2001. . . , , , . , , . - aiocb . . aio_cancel(3), aio_error(3), aio_fsync(3), aio_read(3), aio_return(3), aio_suspend(3), lio_listio(3), aio(7) Dmitry Bolkhovskikh Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . aio_write(3)