The
aio_cancel() system call cancels the outstanding asynchronous I/O request for the file descriptor specified in
fildes. If
aiocbp is specified, only that specific asynchronous I/O request is cancelled.
Normal asynchronous notification occurs for cancelled requests. Requests complete with an error result of
ECANCELED.