]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/aio_return.3
Many pages: Add '\" t' comment where necessary
[thirdparty/man-pages.git] / man3 / aio_return.3
CommitLineData
a1eaacb1 1'\" t
fea681da
MK
2.\" Copyright (c) 2003 Andries Brouwer (aeb@cwi.nl)
3.\"
e4a74ca8 4.\" SPDX-License-Identifier: GPL-2.0-or-later
fea681da 5.\"
4c1c5274 6.TH aio_return 3 (date) "Linux man-pages (unreleased)"
fea681da
MK
7.SH NAME
8aio_return \- get return status of asynchronous I/O operation
a42212d0
AC
9.SH LIBRARY
10Real-time library
8fc3b2cf 11.RI ( librt ", " \-lrt )
fea681da 12.SH SYNOPSIS
c7db92b9 13.nf
fea681da 14.B "#include <aio.h>"
68e4db0a 15.PP
fea681da 16.BI "ssize_t aio_return(struct aiocb *" aiocbp );
c7db92b9 17.fi
fea681da
MK
18.SH DESCRIPTION
19The
e511ffb6 20.BR aio_return ()
fea681da
MK
21function returns the final return status for the asynchronous I/O request
22with control block pointed to by
23.IR aiocbp .
2b014d76
MK
24(See
25.BR aio (7)
26for a description of the
27.I aiocb
28structure.)
dd3568a1 29.PP
fea681da 30This function should be called only once for any given request, after
a2ef1094 31.BR aio_error (3)
2f0af33b
MK
32returns something other than
33.BR EINPROGRESS .
47297adb 34.SH RETURN VALUE
fea681da
MK
35If the asynchronous I/O operation has completed, this function returns
36the value that would have been returned in case of a synchronous
898d27b4
MK
37.BR read (2),
38.BR write (2),
aa0da2b9 39.BR fsync (2),
fea681da 40or
898d27b4
MK
41.BR fdatasync (2),
42call.
f6a4078b 43On error, \-1 is returned, and \fIerrno\fP is set to indicate the error.
847e0d88 44.PP
898d27b4
MK
45If the asynchronous I/O operation has not yet completed,
46the return value and effect of
47.BR aio_return ()
48are undefined.
fea681da
MK
49.SH ERRORS
50.TP
51.B EINVAL
52.I aiocbp
53does not point at a control block for an asynchronous I/O request
54of which the return status has not been retrieved yet.
aea038d6
MK
55.TP
56.B ENOSYS
57.BR aio_return ()
58is not implemented.
793514ae
MK
59.SH VERSIONS
60The
61.BR aio_return ()
62function is available since glibc 2.1.
0b0a32b8 63.SH ATTRIBUTES
4bdf6cc9
MK
64For an explanation of the terms used in this section, see
65.BR attributes (7).
c466875e
MK
66.ad l
67.nh
4bdf6cc9
MK
68.TS
69allbox;
c466875e 70lbx lb lb
4bdf6cc9
MK
71l l l.
72Interface Attribute Value
73T{
0b0a32b8 74.BR aio_return ()
4bdf6cc9
MK
75T} Thread safety MT-Safe
76.TE
c466875e
MK
77.hy
78.ad
79.sp 1
3113c7f3 80.SH STANDARDS
793514ae 81POSIX.1-2001, POSIX.1-2008.
a14af333 82.SH EXAMPLES
b44bee16
MK
83See
84.BR aio (7).
47297adb 85.SH SEE ALSO
fea681da
MK
86.BR aio_cancel (3),
87.BR aio_error (3),
88.BR aio_fsync (3),
89.BR aio_read (3),
90.BR aio_suspend (3),
25fa6c3d 91.BR aio_write (3),
cd587df6 92.BR lio_listio (3),
25fa6c3d 93.BR aio (7)