aio_error(2)							System Calls Manual						      aio_error(2)

NAME
aio_error() - return error status of an asynchronous I/O operation SYNOPSIS
DESCRIPTION
The function returns the error status of the asynchronous I/O operation that was initiated with the and referenced by The error status for an asynchronous I/O operation is the value set by the corresponding or function. To use this function, link in the realtime library by specifying on the compiler or linker command line. RETURN VALUE
If the is invalid or if no asynchronous I/O operation is enqueued for the returns and is set to indicate the error. If the operation has been queued but not completed, returns Otherwise, returns the error status of the referenced See aio_read(2), read(2), aio_write(2), write(2), aio_fsync(2), fsync(2), and lio_listio(2) for relevant error values. ERRORS
If detects one of the following error conditions, is set to the indicated value: [EINVAL] There was no asynchronous I/O operation enqueued for the referenced EXAMPLES
The following code sequence illustrates using to retrieve the error status of an operation. SEE ALSO
aio_cancel(2), aio_fsync(2), aio_read(2), aio_return(2), aio_suspend(2), aio_write(2), fsync(2), lio_listio(2), read(2), write(2), aio(5). STANDARDS CONFORMANCE
aio_error(2)