aio_error(3P4)
NAME
aio_error − retrieve error status of asynchronous I/O operation
SYNOPSIS
#include <aio.h>
int aio_error(aiocbp)
struct aiocb ∗aiocbp;
DESCRIPTION
The aio_error() function returns the error status for the asynchronous I/O operation associated with aiocbp. The error status for an asynchronous I/O operation is the errno value that would be set by the corresponding read(2), write(2) or fsync(2) operation. If the operation has not yet completed, then the error status is [EINPROGRESS]. This function should be used to determine that an asynchronous operation has completed before calling aio_return(3P4).
RETURN VALUE
If the asynchronous I/O operation has completed successfully, then 0 is returned.
If the asynchronous I/O operation has completed unsuccessfully, then the error status as described for read(2), write(2), and fsync(2) is returned.
If the asynchronous I/O operation has not yet completed, then EINPROGRESS is returned.
FILES
/usr/include/aio.h
SEE ALSO
aio_read(3P4), aio_write(3P4), aio_fsync(3P4), aio_return(3P4), aio_cancel(3P4), aio_suspend(3P4), lio_listio(3P4), "CX/UX Programmer’s Guide"
WARNING
The interface to aio_error() is based on IEEE Draft Standard P1003.4/D12. This is an unapproved draft, subject to change. Use of information contained in this unapproved draft is at your own risk. This interface will change to reflect any changes made by future drafts of POSIX 1003.4.
CX/UX Programmer’s Reference Manual