Lines Matching defs:POLL
47 #include <sys/poll.h>
501 /* poll(2) or rump_sys_poll(3) */
512 r = poll(fds, nfds, timeout);
1137 #define POLL(pfd, nfd, timeout) \
1148 DPRINTFF(line, "poll(%s, %d, %d)", buf, nfd, timeout);
2911 * Whether poll() succeeds with specified mode.
2949 r = POLL(&pfd, 1, 100);
2955 * - poll() with one nfds returns >1. It's strange.
2960 * Otherwise, poll() returned 0 or 1.
2991 * Poll(OUT) when buffer is empty.
3009 r = POLL(&pfd, 1, 0);
3018 * Poll(OUT) when buffer is full.
3056 /* Do poll */
3060 r = POLL(&pfd, 1, 0);
3070 * Poll(OUT) when buffer is full but hiwat sets lower than full.
3116 /* Do poll */
3120 r = POLL(&pfd, 1, 0);
3131 * XXX poll(2) on NetBSD7 is really incomplete and weird. I don't test it.
3147 XP_SKIP("NetBSD7's poll() is too incomplete to test.");
3211 r = POLL(&pfd, 1, 0);
3229 /* Check poll() up to 2sec */
3231 r = POLL(&pfd, 1, 2000);
3252 * poll(2) must not be affected by playback of other descriptors.
3346 r = POLL(pfd, 1, 0);
3364 r = POLL(pfd, 2, time);
3431 r = POLL(&pfd, 1, 1000);
3434 * poll-ing /dev/audioctl always fails.
3440 * poll-ing /dev/{audio,sound} will succeed when recorded
3463 * poll(2) must not be affected by other recording descriptors even if
3508 r = POLL(&pfd, 1, 0);
3521 /* Poll()ing playback descriptor with POLLIN should not raise */
3522 r = POLL(&pfd, 1, 1000);
3526 /* Poll()ing recording descriptor with POLLIN should raise */
3528 r = POLL(&pfd, 1, 0);
3581 /* If the filter can be set, try kevent(poll) */
7091 * poll(2) for /dev/audioctl should never raise.
7092 * I'm not sure about consistency between poll(2) and kqueue(2) but
7109 r = POLL(&pfd, 1, 100);
7119 * I'm not sure about consistency between poll(2) and kqueue(2) but