1AIO_RETURN(3P) POSIX Programmer's Manual AIO_RETURN(3P)
2
3
4
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
12 aio_return - retrieve return status of an asynchronous I/O operation
13 (REALTIME)
14
16 #include <aio.h>
17
18 ssize_t aio_return(struct aiocb *aiocbp);
19
20
22 The aio_return() function shall return the return status associated
23 with the aiocb structure referenced by the aiocbp argument. The return
24 status for an asynchronous I/O operation is the value that would be
25 returned by the corresponding read(), write(), or fsync() function
26 call. If the error status for the operation is equal to [EINPROGRESS],
27 then the return status for the operation is undefined. The aio_return()
28 function may be called exactly once to retrieve the return status of a
29 given asynchronous operation; thereafter, if the same aiocb structure
30 is used in a call to aio_return() or aio_error(), an error may be
31 returned. When the aiocb structure referred to by aiocbp is used to
32 submit another asynchronous operation, then aio_return() may be suc‐
33 cessfully used to retrieve the return status of that operation.
34
36 If the asynchronous I/O operation has completed, then the return sta‐
37 tus, as described for read(), write(), and fsync(), shall be returned.
38 If the asynchronous I/O operation has not yet completed, the results of
39 aio_return() are undefined.
40
42 The aio_return() function may fail if:
43
44 EINVAL The aiocbp argument does not refer to an asynchronous operation
45 whose return status has not yet been retrieved.
46
47
48 The following sections are informative.
49
51 None.
52
54 The aio_return() function is part of the Asynchronous Input and Output
55 option and need not be available on all implementations.
56
58 None.
59
61 None.
62
64 aio_cancel(), aio_error(), aio_fsync(), aio_read(), aio_write(),
65 close(), exec(), exit(), fork(), lio_listio(), lseek(), read() , the
66 Base Definitions volume of IEEE Std 1003.1-2001, <aio.h>
67
69 Portions of this text are reprinted and reproduced in electronic form
70 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
71 -- Portable Operating System Interface (POSIX), The Open Group Base
72 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
73 Electrical and Electronics Engineers, Inc and The Open Group. In the
74 event of any discrepancy between this version and the original IEEE and
75 The Open Group Standard, the original IEEE and The Open Group Standard
76 is the referee document. The original Standard can be obtained online
77 at http://www.opengroup.org/unix/online.html .
78
79
80
81IEEE/The Open Group 2003 AIO_RETURN(3P)