aio_return
aio_return
Returns the final return status for the asynchronous I/O request.
Syntax
ssize_t aio_return(struct aiocb *aiocbp);
Arguments
- *aiocbp
- Pointer to control block from where asynchronous I/O request is generated
Description
The
aio_return
function returns the final return status for the asynchronous I/O request with control block pointed to by aiocbp
.Call this function only once for any given request, after
aio_error()
returns a value other than EINPROGRESS
.Returns
Return value for synchronous ReadFile()/WriteFile()/FlushFileBuffer() requests
: When asynchronous I/O operation is completedUndefined return value
: When asynchronous I/O operation is not completedError value
: When an error occursTo get the correct error code/value, use
errno
.