User and Reference Guide for the Intel® C++ Compiler 14.0
Returns error status for asynchronous I/O requests.
int aio_error(const struct aiocb *aiocbp); |
*aiocbp |
pointer to control block from where asynchronous I/O request is generated |
The aio_error() function returns the error status for the asynchronous I/O request in the control block, which is pointed to by aiocbp.
EINPROGRESS: when asynchronous I/O request is not completed
ECANCELED: when asynchronous I/O request is cancelled
0: on success
Error value: on error
To get the correct error value/code, use errno. This is the same error value returned when an error occurs during a ReadFile(), WriteFile(), or a FlushFileBuffers() operation.