Patch to support waiting for AIO operations' completion. User is able to submit multiple AIO requests and wait for their completion using libevent, thus eliminating disk IO waits in asynchronous applications.
Supported platforms: FreeBSD/kqeueue. On other platforms signal notification should work, provided POSIX AIO is available. However the signal notification should be less performant, than AIO with native notification methods.
As an example asynchronous gzipper is implemented (see aio-test.c).
Please look forward for further patches to AIO support.