6 int aio_cancel(int fd, struct aiocb *cb)
9 /* FIXME: for correctness, we should return AIO_ALLDONE
10 * if there are no outstanding aio operations on this
11 * file descriptor, but that would require making aio
12 * much slower, and seems to have little advantage since
13 * we don't support cancellation anyway. */
14 return AIO_NOTCANCELED;
16 return cb->__err==EINPROGRESS ? AIO_NOTCANCELED : AIO_ALLDONE;