1AIO_ERROR(3) Linux Programmer's Manual AIO_ERROR(3)
2
3
4
6 aio_error - get error status of asynchronous I/O operation
7
9 #include <aio.h>
10
11 int aio_error(const struct aiocb *aiocbp);
12
13 Link with -lrt.
14
16 The aio_error() function returns the error status for the asynchronous
17 I/O request with control block pointed to by aiocbp.
18
20 This function returns EINPROGRESS if the request has not been completed
21 yet. It returns ECANCELED if the request was canceled. It returns 0
22 if the request completed successfully. Otherwise an error value is
23 returned, the same value that would have been stored in the errno vari‐
24 able in case of a synchronous read, write, fsync, or fdatasync request.
25 On error, the error value is returned.
26
28 EINVAL aiocbp does not point at a control block for an asynchronous I/O
29 request of which the return status (see aio_return(3)) has not
30 been retrieved yet.
31
33 POSIX.1-2001.
34
36 aio_cancel(3), aio_fsync(3), aio_read(3), aio_return(3), aio_sus‐
37 pend(3), aio_write(3)
38
40 This page is part of release 3.25 of the Linux man-pages project. A
41 description of the project, and information about reporting bugs, can
42 be found at http://www.kernel.org/doc/man-pages/.
43
44
45
46 2003-11-14 AIO_ERROR(3)