AIO_ERROR(3) Library Functions Manual AIO_ERROR(3)

aio_errorretrieve errors status for an asynchronous I/O operation (REALTIME)

#include <aio.h>

int aio_error(const struct aiocb *aiocbp);

The aio_error() function returns the error status associated with the aiocb structure referenced by the aiocbp argument. The error status for an asynchronous I/O operation is the errno value that would be set by the corresponding read(3) , write(3) , or fsync(3) operation. If the operation has not yet completed, then the error status will be equal to EINPROGRESS.

If the asynchronous I/O operation has completed successfully, then 0 is returned. If the asynchronous operation has completed unsuccessfully, then the error status, as described for read(3) , write(3) , and fsync(3) , is returned. If the asynchronous I/O operation has not yet completed, then EINPROGRESS is returned.

The aio_error() function will fail if:

The aio_error() function is not supported by this implementation.

The function may fail if:

The aiocbp argument does not refer to an asynchronous operation whose return status has not yet been retrieved.

None.

None.

None.

aio_read(3) , aio_write(3) , aio_fsync(3) , lio_listio(3) , aio_return(3) , aio_cancel(3) , read(3) , lseek(3) , close(3) , _exit(3) , exec(3) , fork(3) .

Derived from the POSIX Realtime Extension (1003.1b-1993/1003.1i-1995)

February 1997 posix.fail