aio_error - retrieve errors status for an asynchronous I/O operation (REALTIME)
#include <aio.h>
int aio_error(const struct aiocb *aiocbp);
The aio_error() function shall return 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(), write(), fdatasync(), or fsync() operation. If the operation has not yet completed, then the error status shall be equal to [EINPROGRESS].
If the asynchronous I/O operation has completed successfully, then 0 shall be returned. If the asynchronous operation has completed unsuccessfully, then the error status, as described for read(), write(), fdatasync(), and fsync(), shall be returned. If the asynchronous I/O operation has not yet completed, then [EINPROGRESS] shall be returned.
The aio_error() function may fail if:
The following sections are informative.
The aio_error() function is part of the Asynchronous Input and Output option and need not be available on all implementations.
aio_cancel() , aio_fsync() , aio_read() , aio_return() , aio_write() , close() , exec() , exit() , fork() , lio_listio() , lseek() , read() , the Base Definitions volume of IEEE Std 1003.1-2001, <aio.h>
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |