1 .\" Copyright (c) 2003 Andries Brouwer (aeb@cwi.nl)
3 .\" SPDX-License-Identifier: GPL-2.0-or-later
5 .TH AIO_ERROR 3 2021-03-22 GNU "Linux Programmer's Manual"
7 aio_error \- get error status of asynchronous I/O operation
10 .RI ( librt ", " \-lrt )
15 .BI "int aio_error(const struct aiocb *" aiocbp );
20 function returns the error status for the asynchronous I/O request
21 with control block pointed to by
25 for a description of the
29 This function returns one of the following:
32 if the request has not been
36 if the request was canceled.
38 0, if the request completed successfully.
40 A positive error number, if the asynchronous I/O operation failed.
41 This is the same value that would have been stored in the
43 variable in the case of a synchronous
54 does not point at a control block for an asynchronous I/O request
55 of which the return status (see
57 has not been retrieved yet.
65 function is available since glibc 2.1.
67 For an explanation of the terms used in this section, see
75 Interface Attribute Value
78 T} Thread safety MT-Safe
84 POSIX.1-2001, POSIX.1-2008.