1io_wait(3) Library Functions Manual io_wait(3)
2
3
4
6 io_wait - wait for events
7
9 #include <io.h>
10
11 void io_wait();
12
14 io_wait() checks the descriptors that the program is interested in to
15 see whether any of them are ready. If none of them are ready, io_wait()
16 tries to pause until one of them is ready, so that it does not take
17 time away from other programs running on the same computer.
18
19 io_wait pays attention to timeouts: if a descriptor reaches its time‐
20 out, and the program is interested in reading or writing that descrip‐
21 tor, io_wait will return promptly.
22
23 Under some circumstances, io_wait will return even though no interest‐
24 ing descriptors are ready. Do not assume that a descriptor is ready
25 merely because io_wait has returned.
26
27 io_wait is not interrupted by the delivery of a signal. Programs that
28 expect interruption are unreliable: they will block if the same signal
29 is delivered a moment before io_wait. The correct way to handle signals
30 is with the self-pipe trick.
31
33 io_waituntil(3), io_check(3), io_wantread(3), io_wantwrite(3), io_fd(3)
34
35
36
37 io_wait(3)