1AIO_RETURN(3)              Linux Programmer's Manual             AIO_RETURN(3)
2
3
4

NAME

6       aio_return - get return status of asynchronous I/O operation
7

SYNOPSIS

9       #include <aio.h>
10
11       ssize_t aio_return(struct aiocb *aiocbp);
12
13

DESCRIPTION

15       The aio_return() function returns the final return status for the asyn‐
16       chronous I/O request with control block pointed to by aiocbp.
17
18       This function should be called only once for any given  request,  after
19       aio_error(3) returns something other than EINPROGRESS.
20

RETURN VALUE

22       If  the asynchronous I/O operation has completed, this function returns
23       the value that would have been returned in case of a synchronous  read,
24       write,  or fsync request.  Otherwise the return value is undefined.  On
25       error, the error value is returned.
26

ERRORS

28       EINVAL aiocbp does not point at a control block for an asynchronous I/O
29              request of which the return status has not been retrieved yet.
30

CONFORMING TO

32       POSIX.1-2001
33

SEE ALSO

35       aio_cancel(3), aio_error(3), aio_fsync(3), aio_read(3), aio_suspend(3),
36       aio_write(3)
37
38
39
40                                  2003-11-14                     AIO_RETURN(3)
Impressum