The
aio_return() system call returns the final status of the asynchronous I/O request associated with the structure pointed to by
aiocbp.
The
aio_return() system call should only be called once, to obtain the final status of an asynchronous I/O operation once it has completed (
aio_error(3) returns something other than
EINPROGRESS).