1io_wantread(3) Library Functions Manual io_wantread(3)
2
3
4
6 io_wantread - signal that you want to read from a descriptor
7
9 #include <io.h>
10
11 void io_wantread(int64 fd);
12
14 io_wantread tells the next io_wait() that you want to read from this
15 descriptor. Call io_dontwantread() again if you change your mind.
16
17 The next time you call io_wait(), it will look whether this descriptor
18 becomes readable, too. You can then use io_canread() to check whether
19 the descriptor has become readable.
20
21 You have to have called io_fd on the descriptor first (io_pipe and
22 io_socketpair do this for you). Waiting on descriptors only works for
23 sockets, fifos and pipes. It may also work on devices and TTYs, but
24 that is platform dependent -- you should not rely on that.
25
27 io_wait(3), io_canread(3), io_wantread(3), io_fd(3)
28
29
30
31 io_wantread(3)