Suspends the calling process until one of the asynchronous I/O operations completes.
- Pointer to a control block on which I/O is initiated
- Length ofcblistlist
- Time interval to suspend the calling process
aio_suspend()function is like a wait operation. It suspends the calling process until,
- At least one of the asynchronous I/O requests in the listcblistof lengthnhas completed
- A signal is delivered
- The time interval indicated intimeoutis notNULLand has passed.
Each item in the
cblistlist must either be
NULL(when it is ignored), or a pointer to a control block on which I/O was initiated using
0: On success
-1: On error
To get the correct error code, use