1AIO_ERROR(3P)              POSIX Programmer's Manual             AIO_ERROR(3P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       aio_error - retrieve errors status for an  asynchronous  I/O  operation
13       (REALTIME)
14

SYNOPSIS

16       #include <aio.h>
17
18       int aio_error(const struct aiocb *aiocbp);
19
20

DESCRIPTION

22       The  aio_error() function shall return the error status associated with
23       the aiocb structure referenced by the aiocbp argument. The error status
24       for  an asynchronous I/O operation is the errno value that would be set
25       by the corresponding read(), write(),   fdatasync(),  or fsync() opera‐
26       tion.  If  the  operation  has not yet completed, then the error status
27       shall be equal to [EINPROGRESS].
28

RETURN VALUE

30       If the asynchronous I/O operation has completed  successfully,  then  0
31       shall  be  returned. If the asynchronous operation has completed unsuc‐
32       cessfully, then the error status, as  described  for  read(),  write(),
33       fdatasync(),   and fsync(), shall be returned.  If the asynchronous I/O
34       operation has not yet completed, then [EINPROGRESS] shall be returned.
35

ERRORS

37       The aio_error() function may fail if:
38
39       EINVAL The aiocbp argument does not refer to an asynchronous  operation
40              whose return status has not yet been retrieved.
41
42
43       The following sections are informative.
44

EXAMPLES

46       None.
47

APPLICATION USAGE

49       The  aio_error()  function is part of the Asynchronous Input and Output
50       option and need not be available on all implementations.
51

RATIONALE

53       None.
54

FUTURE DIRECTIONS

56       None.
57

SEE ALSO

59       aio_cancel(),  aio_fsync(),  aio_read(),   aio_return(),   aio_write(),
60       close(),  exec(),  exit(),  fork(), lio_listio(), lseek(), read() , the
61       Base Definitions volume of IEEE Std 1003.1-2001, <aio.h>
62
64       Portions of this text are reprinted and reproduced in  electronic  form
65       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
66       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
67       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
68       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
69       event of any discrepancy between this version and the original IEEE and
70       The Open Group Standard, the original IEEE and The Open Group  Standard
71       is  the  referee document. The original Standard can be obtained online
72       at http://www.opengroup.org/unix/online.html .
73
74
75
76IEEE/The Open Group                  2003                        AIO_ERROR(3P)
Impressum