aio_return(3)

NAME
aio_return - Retrieve status of asynchronous I/O operation

SYNOPSYS
#include <errno.h>

#include <aio.h>

ssize_t aio_return (const struct aiocb *aiocbp)

DESCRIPTION
This function can be used to retrieve the return status of the operation carried out by the request described in the variable pointed to by aiocbp by aio_error is EINPROGRESS the return of this function is undefined. Once the request is finished this function can be used exactly once to retrieve the return value. Following calls might lead to undefined behavior. When the sources are compiled with _FILE_OFFSET_BITS == 64 this function is in fact aio_return64 since the LFS interface transparently replaces the normal implementation.

RETURN VALUES
The return value itself is the value which would have been returned by the read , write , or fsync call.

ERRORS
The function can return

ENOSYS
    if it is not implemented.

EINVAL
    if the aiocbp parameter does not refer to an asynchronous operation whose return status is not yet known.

SEE ALSO
aio(3), aio_cancel(3), aio_cancel64(3), aio_error(3), aio_error64(3), aio_fsync(3), aio_fsync64(3), aio_init(3), aio_read(3), aio_read64(3), aio_return64(3), aio_suspend(3), aio_suspend64(3), aio_write(3), aio_write64(3), errno(3),