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.
18

RETURN VALUE

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

ERRORS

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

CONFORMING TO

33       POSIX.1-2001.
34

SEE ALSO

36       aio_cancel(3),   aio_fsync(3),   aio_read(3),  aio_return(3),  aio_sus‐
37       pend(3), aio_write(3)
38

COLOPHON

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)
Impressum