|| Linux Programmer's Manual
NAME aio_error - get error status of asynchronous I/O operation
int aio_error(const struct aiocb *
aio_error() function returns the error status for the asynchronous I/O request with control block pointed to by
aio(7) for a description of the
This function returns one of the following:
EINPROGRESS, if the request has not been completed yet.
ECANCELED, if the request was canceled.
0, if the request completed successfully.
A positive error number, if the asynchronous I/O operation failed. This is the same value that would have been stored in the
errno variable in the case of a synchronous
aiocbp does not point at a control block for an asynchronous I/O request of which the return status (see
aio_return(3)) has not been retrieved yet.
aio_error() is not implemented.
aio_error() function is available since glibc 2.1.
Multithreading (see pthreads(7)) The
aio_error() function is thread-safe.
CONFORMING TO POSIX.1-2001, POSIX.1-2008.
COLOPHON This page is part of release 3.53 of the Linux
man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/.