Home
last modified time | relevance | path

Searched refs:revents (Results 1 – 25 of 126) sorted by relevance

123456

/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/
Dt_poll.c173 pfds[0].revents = -1; in ATF_TC_BODY()
174 pfds[1].revents = -1; in ATF_TC_BODY()
177 ATF_REQUIRE_EQ_MSG(pfds[0].revents, 0, "got: %d", pfds[0].revents); in ATF_TC_BODY()
178 ATF_REQUIRE_EQ_MSG(pfds[1].revents, -1, "got: %d", pfds[1].revents); in ATF_TC_BODY()
181 pfds[0].revents = -1; in ATF_TC_BODY()
182 pfds[1].revents = -1; in ATF_TC_BODY()
185 ATF_REQUIRE_EQ_MSG(pfds[0].revents, -1, "got: %d", pfds[0].revents); in ATF_TC_BODY()
186 ATF_REQUIRE_EQ_MSG(pfds[1].revents, POLLOUT, "got: %d",\ in ATF_TC_BODY()
187 pfds[1].revents); in ATF_TC_BODY()
190 pfds[0].revents = -1; in ATF_TC_BODY()
[all …]
/freebsd-10-stable/tools/regression/poll/
Dsockpoll.c109 report(num++, "initial 0", POLLOUT, pfd0.revents); in main()
112 report(num++, "initial 1", POLLOUT, pfd1.revents); in main()
117 report(num++, "after large write", 0, pfd0.revents); in main()
120 report(num++, "other side after large write", POLLIN | POLLOUT, pfd1.revents); in main()
124 report(num++, "other side after close", POLLIN | POLLHUP, pfd1.revents); in main()
129 report(num++, "other side after reading input", POLLHUP, pfd1.revents); in main()
138 report(num++, "after shutdown(SHUT_WR)", POLLOUT, pfd0.revents); in main()
141 report(num++, "other side after shutdown(SHUT_WR)", POLLIN | POLLOUT, pfd1.revents); in main()
153 report(num++, "other side after reading EOF", POLLIN | POLLOUT, pfd1.revents); in main()
158 report(num++, "after data from other side", POLLIN | POLLOUT, pfd0.revents); in main()
[all …]
Dpipepoll.c107 report(num++, "0", 0, pfd.revents, res, 0); in child()
125 report(num++, "1", 0, pfd.revents, res, 0); in child()
133 report(num++, "2", POLLIN, pfd.revents, res, 1); in child()
138 report(num++, "2a", 0, pfd.revents, res, 0); in child()
146 report(num++, "3", POLLHUP, pfd.revents, res, 1); in child()
161 report(num++, "4", 0, pfd.revents, res, 0); in child()
169 report(num++, "5", POLLIN, pfd.revents, res, 1); in child()
187 report(num++, "6", POLLIN | POLLHUP, pfd.revents, res, 1); in child()
192 report(num++, "6a", POLLHUP, pfd.revents, res, 1); in child()
204 report(num++, "6b", POLLHUP, pfd.revents, res, 1); in child()
[all …]
/freebsd-10-stable/tools/tools/netmap/
Dbridge.c262 pollfd[0].revents = pollfd[1].revents = 0; in main()
279 pollfd[0].revents, in main()
284 pollfd[1].revents, in main()
291 if (pollfd[0].revents & POLLERR) { in main()
296 if (pollfd[1].revents & POLLERR) { in main()
301 if (pollfd[0].revents & POLLOUT) { in main()
306 if (pollfd[1].revents & POLLOUT) { in main()
/freebsd-10-stable/crypto/openssh/openbsd-compat/
Dbsd-poll.c97 fds[i].revents = 0; in poll()
101 fds[i].revents |= POLLIN; in poll()
104 fds[i].revents |= POLLOUT; in poll()
107 fds[i].revents |= POLLERR; in poll()
/freebsd-10-stable/contrib/ipfilter/
Dmlfk_ipl.c347 int revents; in ipfpoll() local
352 revents = 0; in ipfpoll()
361 revents |= events & (POLLIN | POLLRDNORM); in ipfpoll()
366 revents |= events & (POLLIN | POLLRDNORM); in ipfpoll()
370 revents |= events & (POLLIN | POLLRDNORM); in ipfpoll()
372 revents |= events & (POLLOUT | POLLWRNORM); in ipfpoll()
380 if ((revents == 0) && ((events & (POLLIN|POLLRDNORM)) != 0)) in ipfpoll()
383 return revents; in ipfpoll()
/freebsd-10-stable/sys/dev/random/
Drandomdev.c150 int revents = 0; in random_poll() local
154 revents = events & (POLLIN | POLLRDNORM); in random_poll()
156 revents = (*random_adaptor->poll)(events, td); in random_poll()
158 return (revents); in random_poll()
Drandomdev_soft.c212 int revents = 0; in randomdev_poll() local
217 revents = events & (POLLIN | POLLRDNORM); in randomdev_poll()
222 return (revents); in randomdev_poll()
/freebsd-10-stable/sys/contrib/ipfilter/netinet/
Dmlfk_ipl.c331 int revents; in ipfpoll() local
336 revents = 0; in ipfpoll()
345 revents |= events & (POLLIN | POLLRDNORM); in ipfpoll()
350 revents |= events & (POLLIN | POLLRDNORM); in ipfpoll()
354 revents |= events & (POLLIN | POLLRDNORM); in ipfpoll()
356 revents |= events & (POLLOUT | POLLWRNORM); in ipfpoll()
364 if ((revents == 0) && ((events & (POLLIN|POLLRDNORM)) != 0)) in ipfpoll()
367 return revents; in ipfpoll()
/freebsd-10-stable/sys/dev/snp/
Dsnp.c298 int revents; in snp_poll() local
304 revents = 0; in snp_poll()
311 revents |= events & (POLLIN | POLLRDNORM); in snp_poll()
316 if (revents == 0) in snp_poll()
319 return (revents); in snp_poll()
/freebsd-10-stable/contrib/sendmail/libmilter/
Dlibmilter.h184 (rds).revents = 0
189 (wrs).revents = 0
192 (((rds).revents & (POLLERR | POLLHUP | POLLNVAL)) != 0)
195 (((wrs).revents & MI_POLL_WR_FLAGS) != 0)
198 (((rds).revents & MI_POLL_RD_FLAGS) != 0)
Dworker.c441 pfd[nfd].revents = 0;
491 pfd[nfd].revents = 0;
533 if (pfd[i].revents == 0)
548 pfd[i].events, pfd[i].revents));
551 while ((pfd[i].revents & MI_POLL_RD_FLAGS) != 0
561 if ((pfd[i].revents & ~MI_POLL_RD_FLAGS) != 0)
/freebsd-10-stable/contrib/libpcap/tests/
Dselpolltest.c209 if (fd.revents & POLLIN) in main()
213 if (fd.revents & POLLERR) in main()
217 if (fd.revents & POLLHUP) in main()
221 if (fd.revents & POLLNVAL) in main()
/freebsd-10-stable/sys/kern/
Dsys_procdesc.c450 int revents; in procdesc_poll() local
452 revents = 0; in procdesc_poll()
456 revents |= POLLHUP; in procdesc_poll()
457 if (revents == 0) { in procdesc_poll()
462 return (revents); in procdesc_poll()
Dsubr_log.c183 int revents = 0; in logpoll() local
188 revents |= events & (POLLIN | POLLRDNORM); in logpoll()
193 return (revents); in logpoll()
Dsys_generic.c1483 fd->revents = POLLNVAL; in pollrescan()
1492 fd->revents = fo_poll(fp, fd->events, td->td_ucred, td); in pollrescan()
1493 if (fd->revents != 0) in pollrescan()
1515 error = copyout(&fds->revents, &ufds->revents,
1516 sizeof(ufds->revents));
1519 if (fds->revents != 0)
1544 fds->revents = POLLNVAL;
1547 fds->revents = 0;
1558 fds->revents = POLLNVAL;
1566 fds->revents = fo_poll(fp, fds->events,
[all …]
/freebsd-10-stable/sys/fs/fuse/
Dfuse_device.c179 int error, revents = 0; in fuse_device_poll() local
189 revents |= events & (POLLIN | POLLRDNORM); in fuse_device_poll()
195 revents |= events & (POLLOUT | POLLWRNORM); in fuse_device_poll()
197 return (revents); in fuse_device_poll()
/freebsd-10-stable/contrib/netcat/
Dnetcat.c877 if (pfd[n].revents & (POLLERR|POLLNVAL)) { in readwrite()
883 pfd[POLL_STDIN].revents & POLLHUP && in readwrite()
884 ! (pfd[POLL_STDIN].revents & POLLIN)) in readwrite()
888 pfd[POLL_NETIN].revents & POLLHUP && in readwrite()
889 ! (pfd[POLL_NETIN].revents & POLLIN)) in readwrite()
892 if (pfd[POLL_NETOUT].revents & POLLHUP) { in readwrite()
898 if (pfd[POLL_STDOUT].revents & POLLHUP) in readwrite()
911 if (pfd[POLL_STDIN].revents & POLLIN && stdinbufpos < BUFSIZE) { in readwrite()
925 if (pfd[POLL_NETOUT].revents & POLLOUT && stdinbufpos > 0) { in readwrite()
938 if (pfd[POLL_NETIN].revents & POLLIN && netinbufpos < BUFSIZE) { in readwrite()
[all …]
/freebsd-10-stable/contrib/apr/poll/unix/
Dpoll.c128 aprset[i].rtnevents = get_revent(pollset[i].revents); in apr_poll()
275 if (pollset->p->pollset[i].revents != 0) { in impl_pollset_poll()
288 get_revent(pollset->p->pollset[i].revents); in impl_pollset_poll()
427 if (pollcb->pollset.ps[i].revents != 0) { in impl_pollcb_poll()
429 pollfd->rtnevents = get_revent(pollcb->pollset.ps[i].revents); in impl_pollcb_poll()
/freebsd-10-stable/tools/regression/netinet/tcpfullwindowrst/
Dtcpfullwindowrsttest.c114 if (pfd[0].revents & POLLOUT) { in main()
121 if (pfd[1].revents & POLLOUT) { in main()
/freebsd-10-stable/contrib/netbsd-tests/lib/librumphijack/
Dh_client.c113 if (pfd[1].revents != POLLNVAL || pfd[0].revents != 0) in main()
/freebsd-10-stable/sys/dev/cmx/
Dcmx.c647 int revents = 0; in cmx_poll() local
657 revents = events & (POLLOUT | POLLWRNORM); in cmx_poll()
660 revents |= events & (POLLIN | POLLRDNORM); in cmx_poll()
676 DEBUG_printf(sc->dev, "success (revents=%b)\n", revents, POLLBITS); in cmx_poll()
678 return revents; in cmx_poll()
/freebsd-10-stable/crypto/openssh/regress/
Dnetcat.c840 if (pfd[n].revents & (POLLERR|POLLNVAL)) { in readwrite()
846 pfd[POLL_STDIN].revents & POLLHUP && in readwrite()
847 ! (pfd[POLL_STDIN].revents & POLLIN)) in readwrite()
851 pfd[POLL_NETIN].revents & POLLHUP && in readwrite()
852 ! (pfd[POLL_NETIN].revents & POLLIN)) in readwrite()
855 if (pfd[POLL_NETOUT].revents & POLLHUP) { in readwrite()
861 if (pfd[POLL_STDOUT].revents & POLLHUP) in readwrite()
874 if (pfd[POLL_STDIN].revents & POLLIN && stdinbufpos < BUFSIZE) { in readwrite()
888 if (pfd[POLL_NETOUT].revents & POLLOUT && stdinbufpos > 0) { in readwrite()
901 if (pfd[POLL_NETIN].revents & POLLIN && netinbufpos < BUFSIZE) { in readwrite()
[all …]
/freebsd-10-stable/contrib/netbsd-tests/kernel/
Dt_pty.c208 pfd.revents = 0; in child_spawn()
219 if ((pfd.revents & POLLERR) != 0) in child_spawn()
221 if ((pfd.revents & POLLIN) != 0) { in child_spawn()
/freebsd-10-stable/sys/x86/acpica/
Dacpi_apm.c391 int revents; in apmpoll() local
393 revents = 0; in apmpoll()
397 revents |= events & (POLLIN | POLLRDNORM); in apmpoll()
401 return (revents); in apmpoll()

123456