1 .\" Copyright (c) 2003 Andries Brouwer (aeb@cwi.nl)
3 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
9 .\" The GNU General Public License's references to "object code"
10 .\" and "executables" are to be interpreted as the output of any
11 .\" document formatting or typesetting system, including
12 .\" intermediate and printed output.
14 .\" This manual is distributed in the hope that it will be useful,
15 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
16 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 .\" GNU General Public License for more details.
19 .\" You should have received a copy of the GNU General Public
20 .\" License along with this manual; if not, see
21 .\" <http://www.gnu.org/licenses/>.
24 .TH AIO_ERROR 3 2021-03-22 "" "Linux Programmer's Manual"
26 aio_error \- get error status of asynchronous I/O operation
31 .BI "int aio_error(const struct aiocb *" aiocbp );
33 Link with \fI\-lrt\fP.
38 function returns the error status for the asynchronous I/O request
39 with control block pointed to by
43 for a description of the
47 This function returns one of the following:
50 if the request has not been
54 if the request was canceled.
56 0, if the request completed successfully.
58 A positive error number, if the asynchronous I/O operation failed.
59 This is the same value that would have been stored in the
61 variable in the case of a synchronous
72 does not point at a control block for an asynchronous I/O request
73 of which the return status (see
75 has not been retrieved yet.
83 function is available since glibc 2.1.
85 For an explanation of the terms used in this section, see
93 Interface Attribute Value
96 T} Thread safety MT-Safe
102 POSIX.1-2001, POSIX.1-2008.