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

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

31       If the asynchronous I/O operation has completed  successfully,  then  0
32       shall  be  returned. If the asynchronous operation has completed unsuc‐
33       cessfully, then the error status, as  described  for  read(),  write(),
34       fdatasync(),  and  fsync(),  shall be returned. If the asynchronous I/O
35       operation has not yet completed, then [EINPROGRESS] shall be returned.
36
37       If the aio_error() function fails, it shall return -1 and set errno  to
38       indicate the error.
39

ERRORS

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

EXAMPLES

49       None.
50

APPLICATION USAGE

52       None.
53

RATIONALE

55       None.
56

FUTURE DIRECTIONS

58       None.
59

SEE ALSO

61       aio_cancel(), aio_fsync(), aio_read(), aio_return(), aio_write(),
62       close(), exec, exit(), fork(), lio_listio(), lseek(), read()
63
64       The Base Definitions volume of POSIX.1‐2017, <aio.h>
65
67       Portions  of  this text are reprinted and reproduced in electronic form
68       from IEEE Std 1003.1-2017, Standard for Information Technology --  Por‐
69       table  Operating System Interface (POSIX), The Open Group Base Specifi‐
70       cations Issue 7, 2018 Edition, Copyright (C) 2018 by the  Institute  of
71       Electrical  and  Electronics Engineers, Inc and The Open Group.  In the
72       event of any discrepancy between this version and the original IEEE and
73       The  Open Group Standard, the original IEEE and The Open Group Standard
74       is the referee document. The original Standard can be  obtained  online
75       at http://www.opengroup.org/unix/online.html .
76
77       Any  typographical  or  formatting  errors that appear in this page are
78       most likely to have been introduced during the conversion of the source
79       files  to  man page format. To report such errors, see https://www.ker
80       nel.org/doc/man-pages/reporting_bugs.html .
81
82
83
84IEEE/The Open Group                  2017                        AIO_ERROR(3P)
Impressum