acancel(2)
NAME
acancel − cancel an asynchronous I/O request
SYNOPSIS
int acancel (id)
int id;
DESCRIPTION
Id is an identifier for an asynchronous I/O request obtained from a aread or awrite call. acancel cancels the specified asynchronous I/O request. The normal asynchronous I/O completion operations (see aread(2) and awrite(2)) will be performed if the asynchronous I/O request is successfully canceled.
acancel will fail if one or more of the following are true:
[EINVAL] Id is not an identifier for a pending asynchronous I/O request.
[ENODEV] The concept of canceling pending I/O requests is not supported for the file.
[EALREADY] The I/O operation could not be canceled.
RETURN VALUE
Upon successful completion, a value of 0 is returned to the calling process. Otherwise, a value of −1 is returned and errno is set to indicate the error.
SEE ALSO
aread(2), await(2), awrite(2).
CX/UX Programmer’s Reference Manual