AIOCANCEL(3) Library Functions Manual AIOCANCEL(3)
aiocancel - cancel an asynchronous operation
aiocancel() cancels the asynchronous operation associated with the
result buffer pointed to by resultp. It may not be possible to immedi-
ately cancel an operation which is in progress and in this case, aio-
cancel() will not wait to cancel it.
Upon successful completion, aiocancel() will return 0 and the requested
operation will be canceled. The application will not receive the SIGIO
completion signal for an asynchronous operation which is successfully
0 on success.
-1 on failure and sets errno to indicate the error.
aiocancel() will fail if any of the following are true:
EACCES The parameter resultp does not correspond to an out-
standing asynchronous operation.
The operation could not be cancelled.
EFAULT The parameter resultp points to an address that is out-
side of the address space of the requesting process.
21 January 1990 AIOCANCEL(3)