diff --git a/include/aio.h b/include/aio.h index cf94964f87b69619613af7fc984562c95d9a8cad..ce7b4260ece14448108104df844972bd828d6098 100644 --- a/include/aio.h +++ b/include/aio.h @@ -41,8 +41,8 @@ struct aiocb { #define LIO_WAIT 0 #define LIO_NOWAIT 1 -ssize_t aio_read(struct aiocb *); -ssize_t aio_write(struct aiocb *); +int aio_read(struct aiocb *); +int aio_write(struct aiocb *); int aio_error(const struct aiocb *); ssize_t aio_return(struct aiocb *); int aio_cancel(int, struct aiocb *); diff --git a/src/aio/aio_readwrite.c b/src/aio/aio_readwrite.c index 27168f25538621a806482eefa3d77f10a9d20276..adb5688a7b0e39f087fcbace55a32de1aa2e32d2 100644 --- a/src/aio/aio_readwrite.c +++ b/src/aio/aio_readwrite.c @@ -91,13 +91,13 @@ static int new_req(struct aiocb *cb) return ret; } -ssize_t aio_read(struct aiocb *cb) +int aio_read(struct aiocb *cb) { cb->aio_lio_opcode = LIO_READ; return new_req(cb); } -ssize_t aio_write(struct aiocb *cb) +int aio_write(struct aiocb *cb) { cb->aio_lio_opcode = LIO_WRITE; return new_req(cb);