diff options
Diffstat (limited to 'src/libaio.h')
-rw-r--r-- | src/libaio.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libaio.h b/src/libaio.h index 48569e0..d979c33 100644 --- a/src/libaio.h +++ b/src/libaio.h @@ -104,12 +104,12 @@ typedef void (*io_callback_t)(io_context_t ctx, struct iocb *iocb, long res, lon extern int io_queue_init(int maxevents, io_context_t *ctxp); extern int io_queue_grow(io_context_t ctx, int new_maxevents); extern int io_queue_release(io_context_t ctx); -extern int io_queue_wait(io_context_t ctx, struct timespec *timeout); +extern int io_queue_wait(io_context_t ctx, const struct timespec *timeout); extern int io_queue_run(io_context_t ctx); extern int io_submit(io_context_t ctx, long nr, struct iocb *ios[]); extern int io_cancel(io_context_t ctx, struct iocb *iocb); -extern int io_getevents(io_context_t ctx_id, long nr, struct io_event *events, struct timespec *timeout); +extern int io_getevents(io_context_t ctx_id, long nr, struct io_event *events, const struct timespec *timeout); static inline void io_set_callback(struct iocb *iocb, io_callback_t cb) |