1AIO_ERROR(3)               Linux Programmer's Manual              AIO_ERROR(3)
2
3
4

NAME

6       aio_error - get error status of asynchronous I/O operation
7

SYNOPSIS

9       #include <aio.h>
10
11       int aio_error(const struct aiocb *aiocbp);
12
13       Link with -lrt.
14

DESCRIPTION

16       The  aio_error() function returns the error status for the asynchronous
17       I/O request with control block pointed to by aiocbp.  (See aio(7) for a
18       description of the aiocb structure.)
19

RETURN VALUE

21       This function returns one of the following:
22
23       *  EINPROGRESS, if the request has not been completed yet.
24
25       *  ECANCELED, if the request was canceled.
26
27       *  0, if the request completed successfully.
28
29       *  A  positive  error number, if the asynchronous I/O operation failed.
30          This is the same value that would have  been  stored  in  the  errno
31          variable  in  the case of a synchronous read(2), write(2), fsync(2),
32          or fdatasync(2) call.
33

ERRORS

35       EINVAL aiocbp does not point at a control block for an asynchronous I/O
36              request  of  which the return status (see aio_return(3)) has not
37              been retrieved yet.
38
39       ENOSYS aio_error() is not implemented.
40

VERSIONS

42       The aio_error() function is available since glibc 2.1.
43

ATTRIBUTES

45       For an  explanation  of  the  terms  used  in  this  section,  see  at‐
46       tributes(7).
47
48       ┌────────────────────────────────────────────┬───────────────┬─────────┐
49Interface                                   Attribute     Value   
50       ├────────────────────────────────────────────┼───────────────┼─────────┤
51aio_error()                                 │ Thread safety │ MT-Safe │
52       └────────────────────────────────────────────┴───────────────┴─────────┘
53

CONFORMING TO

55       POSIX.1-2001, POSIX.1-2008.
56

EXAMPLES

58       See aio(7).
59

SEE ALSO

61       aio_cancel(3),   aio_fsync(3),   aio_read(3),  aio_return(3),  aio_sus‐
62       pend(3), aio_write(3), lio_listio(3), aio(7)
63

COLOPHON

65       This page is part of release 5.13 of the Linux  man-pages  project.   A
66       description  of  the project, information about reporting bugs, and the
67       latest    version    of    this    page,    can     be     found     at
68       https://www.kernel.org/doc/man-pages/.
69
70
71
72                                  2021-03-22                      AIO_ERROR(3)
Impressum