ASTATUS(2-SVR3) RISC/os Reference Manual ASTATUS(2-SVR3)
NAME
astatus - get asynchronous I/O completion status
SYNOPSIS
#include <sys/aio.h>
int astatus(aiohandlet handle, struct aiocb *aiocb);
DESCRIPTION
astatus returns the completion status block for the asyn-
chronous I/O operation associated with the handle argument.
The aiocb argument is a pointer to an asynchronous I/O com-
pletion block.
RETURNS
astatus returns EINPROGRESS if the requested I/O is in pro-
gress; otherwise it returns errno, which is also stored
inside the completion block.
ERRORS
If any of the following conditions occur, astatus returns -1
and sets errno to the corresponding value:
[EINVAL] The handle argument is not a valid asynchro-
nous I/O handle.
[EFAULT] The aiocb handle points to a piece of unac-
cessible memory.
SEE ALSO
acancel(2), aread(2), areadv(2), await(2), awrite(2), awri-
tev(2), listio(2), aio(5).
Printed 11/19/92 Page 1