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

DESCRIPTION

15       The  aio_error() function returns the error status for the asynchronous
16       I/O request with control block pointed to by aiocbp.
17

RETURN VALUE

19       This function returns EINPROGRESS if the request has not been completed
20       yet.  It  returns ECANCELED if the request was cancelled.  It returns 0
21       if the request completed successfully.  Otherwise  an  error  value  is
22       returned, the same value that would have been stored in the errno vari‐
23       able in case of a synchronous read, write, fsync, or fdatasync request.
24       On error, the error value is returned.
25

ERRORS

27       EINVAL aiocbp does not point at a control block for an asynchronous I/O
28              request of which the return status (see aio_return(3))  has  not
29              been retrieved yet.
30

CONFORMING TO

32       POSIX.1-2001
33

SEE ALSO

35       aio_cancel(3),   aio_fsync(3),   aio_read(3),  aio_return(3),  aio_sus‐
36       pend(3), aio_write(3)
37
38
39
40                                  2003-11-14                      AIO_ERROR(3)
Impressum