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

NAME

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

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

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

ERRORS

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

EXAMPLES

51       None.
52

APPLICATION USAGE

54       None.
55

RATIONALE

57       None.
58

FUTURE DIRECTIONS

60       None.
61

SEE ALSO

63       aio_cancel(),  aio_error(),   aio_fsync(),   aio_read(),   aio_write(),
64       close(), exec, exit(), fork(), lio_listio(), lseek(), read()
65
66       The Base Definitions volume of POSIX.1‐2017, <aio.h>
67
69       Portions  of  this text are reprinted and reproduced in electronic form
70       from IEEE Std 1003.1-2017, Standard for Information Technology --  Por‐
71       table  Operating System Interface (POSIX), The Open Group Base Specifi‐
72       cations Issue 7, 2018 Edition, Copyright (C) 2018 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       Any  typographical  or  formatting  errors that appear in this page are
80       most likely to have been introduced during the conversion of the source
81       files  to  man page format. To report such errors, see https://www.ker
82       nel.org/doc/man-pages/reporting_bugs.html .
83
84
85
86IEEE/The Open Group                  2017                       AIO_RETURN(3P)
Impressum