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   Multithreading (see pthreads(7))
46       The aio_error() function is thread-safe.
47

CONFORMING TO

49       POSIX.1-2001, POSIX.1-2008.
50

EXAMPLE

52       See aio(7).
53

SEE ALSO

55       aio_cancel(3),  aio_fsync(3),  aio_read(3),   aio_return(3),   aio_sus‐
56       pend(3), aio_write(3), lio_listio(3), aio(7)
57

COLOPHON

59       This  page  is  part of release 3.53 of the Linux man-pages project.  A
60       description of the project, and information about reporting  bugs,  can
61       be found at http://www.kernel.org/doc/man-pages/.
62
63
64
65                                  2013-07-04                      AIO_ERROR(3)
Impressum