aio_error.3: Wording improvements in RETURN VALUE

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2010-10-02 15:36:35 +02:00
parent 2b014d760d
commit ba9e24aa69
1 changed files with 16 additions and 14 deletions

View File

@ -41,25 +41,27 @@ for a description of the
.I aiocb .I aiocb
structure.) structure.)
.SH "RETURN VALUE" .SH "RETURN VALUE"
This function returns This function returns one of the following:
.B EINPROGRESS .IP * 3
.BR EINPROGRESS ,
if the request has not been if the request has not been
completed yet. completed yet.
It returns .IP *
.B ECANCELED .BR ECANCELED ,
if the request was canceled. if the request was canceled.
It returns 0 if the request completed successfully. .IP *
Otherwise an error value is returned, the same value that would have 0, if the request completed successfully.
been stored in the .IP *
A positive error, if the asynchronous I/O operation failed.
This is the same value that would have been stored in the
.I errno .I errno
variable in case of a synchronous variable in the case of a synchronous
.IR read , .BR read (2),
.IR write , .BR write (2),
.IR fsync , .BR fsync (2),
or or
.I fdatasync .BR fdatasync (2)
request. call.
On error, the error value is returned.
.SH ERRORS .SH ERRORS
.TP .TP
.B EINVAL .B EINVAL