b53e11be8c4fc4991770f7834154c9a2e2e1888c
[m6w6/ext-psi] / m4 / posix / poll.m4
1 PSI_CHECK_POLL() {
2
3 PSI_STRUCT(struct pollfd, [
4 int fd,
5 short events,
6 short revents]
7 )
8
9 PSI_TYPE(nfds_t, uint)
10
11 PSI_CONST(POLLIN, int)
12 PSI_CONST(POLLRDNORM, int)
13 PSI_CONST(POLLRDBAND, int)
14 PSI_CONST(POLLPRI, int)
15 PSI_CONST(POLLOUT, int)
16 PSI_CONST(POLLWRNORM, int)
17 PSI_CONST(POLLRWBAND, int)
18 PSI_CONST(POLLERR, int)
19 PSI_CONST(POLLHUP, int)
20 PSI_CONST(POLLNVAL, int)
21
22 PSI_DECL(int poll, [(struct pollfd *fds, nfds_t nfds, int timeout)])
23 }