1AIO_RETURN(3P)             POSIX Programmer's Manual            AIO_RETURN(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
11

NAME

13       aio_return — retrieve return status of an asynchronous I/O operation
14

SYNOPSIS

16       #include <aio.h>
17
18       ssize_t aio_return(struct aiocb *aiocbp);
19

DESCRIPTION

21       The aio_return() function shall return  the  return  status  associated
22       with  the aiocb structure referenced by the aiocbp argument. The return
23       status for an asynchronous I/O operation is the  value  that  would  be
24       returned  by  the  corresponding  read(),  write(), or fsync() function
25       call. If the error status for the operation is equal to  [EINPROGRESS],
26       then the return status for the operation is undefined. The aio_return()
27       function may be called exactly once to retrieve the return status of  a
28       given  asynchronous  operation; thereafter, if the same aiocb structure
29       is used in a call to aio_return()  or  aio_error(),  an  error  may  be
30       returned.  When  the  aiocb  structure referred to by aiocbp is used to
31       submit another asynchronous operation, then aio_return()  may  be  suc‐
32       cessfully used to retrieve the return status of that operation.
33

RETURN VALUE

35       If  the  asynchronous I/O operation has completed, then the return sta‐
36       tus, as described for read(), write(), and fsync(), shall be  returned.
37       If the asynchronous I/O operation has not yet completed, the results of
38       aio_return() are undefined.
39
40       If the aio_return() function fails, it shall return −1 and set errno to
41       indicate the error.
42

ERRORS

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

EXAMPLES

52       None.
53

APPLICATION USAGE

55       None.
56

RATIONALE

58       None.
59

FUTURE DIRECTIONS

61       None.
62

SEE ALSO

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