1 /* test to build and run so that we know if we have poll that works on
2 * stdin and /dev/zero -- which is hopefully a sufficient sample to weed
3 * out crappy versions like that on Darwin.
14 fds.events = POLLIN|POLLPRI;
16 if (!((1 == poll(&fds, 1, -1)) && ((POLLIN|POLLPRI) & fds.revents)))
19 fds.fd = open("/dev/zero", O_RDONLY);
20 fds.events = POLLIN|POLLPRI;
22 if (!((1 == poll(&fds, 1, -1)) && ((POLLIN|POLLPRI) & fds.revents)))