System Interface Guide

aiowait(3)

A call to aiowait(3) blocks the calling process until at least one outstanding asynchronous I/O operation is completed. The timeout parameter points to a maximum interval to wait for I/O completion. A timeout value of zero specifies that no wait is wanted. aiowait(3) returns a pointer to the aio_result_t structure for the completed operation.