diff -rupN -X /home/daniel_nfs/dontdiff libaio-0.3.93/man/io_queue_run.3 libaio-0.3.93-io_queue_run_with_timeout/man/io_queue_run.3 --- libaio-0.3.93/man/io_queue_run.3 2002-09-26 08:55:18.000000000 -0700 +++ libaio-0.3.93-io_queue_run_with_timeout/man/io_queue_run.3 2003-07-08 17:28:55.441862077 -0700 @@ -9,16 +9,21 @@ io_queue_run \- Handle completed io requ .B #include .br .sp -.BI "int io_queue_run(io_context_t ctx );" +.BI "int io_queue_run(io_context_t ctx, struct timespec *timeout);" .sp .fi .SH DESCRIPTION .B io_queue_run -Attempts to read all the events events from -the completion queue for the aio_context specified by ctx_id. +Attempts to read all the events events from +the completion queue for the aio_context specified by ctx and calls the callbacks +setup by io_set_callback(). .SH "RETURN VALUES" +Returns the number of events handled. May return -0 if no events are available. +0 if no events are available and the timeout specified +by timeout has elapsed, where timeout == NULL specifies an infinite +timeout. Note that the timeout pointed to by timeout is relative and +will be updated if not NULL and the operation blocks. Will fail with -ENOSYS if not implemented. .SH ERRORS .TP @@ -44,7 +49,6 @@ Not implemented .BR io_prep_pwrite(3), .BR io_queue_init(3), .BR io_queue_release(3), -.BR io_queue_wait(3), .BR io_set_callback(3), .BR io_submit(3), .BR errno(3)