diff options
Diffstat (limited to 'src/aio/aio_cancel.c')
-rw-r--r-- | src/aio/aio_cancel.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/aio/aio_cancel.c b/src/aio/aio_cancel.c deleted file mode 100644 index 16fc431f..00000000 --- a/src/aio/aio_cancel.c +++ /dev/null @@ -1,19 +0,0 @@ -#include <aio.h> -#include <pthread.h> -#include <errno.h> -#include "libc.h" - -int aio_cancel(int fd, struct aiocb *cb) -{ - if (!cb) { - /* FIXME: for correctness, we should return AIO_ALLDONE - * if there are no outstanding aio operations on this - * file descriptor, but that would require making aio - * much slower, and seems to have little advantage since - * we don't support cancellation anyway. */ - return AIO_NOTCANCELED; - } - return cb->__err==EINPROGRESS ? AIO_NOTCANCELED : AIO_ALLDONE; -} - -LFS64(aio_cancel); |