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