Cancels outstanding asynchronous I/O requests for the file descriptor
Pointer to control block from where asynchronous I/O request is generated
function cancels outstanding asynchronous I/O requests for the file descriptor
is NULL, all outstanding asynchronous I/O requests are cancelled. If
is not NULL, only the requests described by the control block pointed to by
Normal asynchronous notification occurs for cancelled requests. The request return status is set to -1, and the request error status is set to ECANCELED. The control block of requests that cannot be cancelled is not changed.
Unspecified results occur
is not NULL and the
differs from the file descriptor with which the asynchronous operation was initiated.
: When all specified requests are cancellled successfully.
: When at least one of the specified requests is still in process of being cancelled; check the status of request using
: When all specified requests were completed before cancel call was placed.
: When some error occurs. To get the correct error code, use