/freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_poll.c | 173 pfds[0].revents = -1; 174 pfds[1].revents = -1; 177 ATF_REQUIRE_EQ_MSG(pfds[0].revents, 0, "got: %d", pfds[0].revents); 178 ATF_REQUIRE_EQ_MSG(pfds[1].revents, -1, "got: %d", pfds[1].revents); 181 pfds[0].revents = -1; 182 pfds[1].revents = -1; 185 ATF_REQUIRE_EQ_MSG(pfds[0].revents, -1, "got: %d", pfds[0].revents); [all...] |
/freebsd-11-stable/tools/regression/poll/ |
H A D | sockpoll.c | 109 report(num++, "initial 0", POLLOUT, pfd0.revents); 112 report(num++, "initial 1", POLLOUT, pfd1.revents); 117 report(num++, "after large write", 0, pfd0.revents); 120 report(num++, "other side after large write", POLLIN | POLLOUT, pfd1.revents); 124 report(num++, "other side after close", POLLIN | POLLHUP, pfd1.revents); 129 report(num++, "other side after reading input", POLLHUP, pfd1.revents); 138 report(num++, "after shutdown(SHUT_WR)", POLLOUT, pfd0.revents); 141 report(num++, "other side after shutdown(SHUT_WR)", POLLIN | POLLOUT, pfd1.revents); 153 report(num++, "other side after reading EOF", POLLIN | POLLOUT, pfd1.revents); 158 report(num++, "after data from other side", POLLIN | POLLOUT, pfd0.revents); [all...] |
H A D | pipepoll.c | 107 report(num++, "0", 0, pfd.revents, res, 0); 125 report(num++, "1", 0, pfd.revents, res, 0); 133 report(num++, "2", POLLIN, pfd.revents, res, 1); 138 report(num++, "2a", 0, pfd.revents, res, 0); 146 report(num++, "3", POLLHUP, pfd.revents, res, 1); 161 report(num++, "4", 0, pfd.revents, res, 0); 169 report(num++, "5", POLLIN, pfd.revents, res, 1); 187 report(num++, "6", POLLIN | POLLHUP, pfd.revents, res, 1); 192 report(num++, "6a", POLLHUP, pfd.revents, res, 1); 204 report(num++, "6b", POLLHUP, pfd.revents, re [all...] |
/freebsd-11-stable/crypto/openssh/openbsd-compat/ |
H A D | bsd-poll.h | 37 short revents; member in struct:pollfd
|
H A D | bsd-poll.c | 35 * and POLLERR flags in revents. 95 fds[i].revents = 0; 99 fds[i].revents |= POLLIN; 102 fds[i].revents |= POLLOUT; 105 fds[i].revents |= POLLERR;
|
/freebsd-11-stable/lib/libc/gen/ |
H A D | recvmmsg.c | 52 pfd[0].revents = 0; 58 if (pfd[0].revents & POLLNVAL) { 62 if ((pfd[0].revents & ev) == 0) {
|
/freebsd-11-stable/tools/tools/netmap/ |
H A D | bridge.c | 286 pollfd[0].revents = pollfd[1].revents = 0; 292 pollfd[1].revents = POLLOUT; 298 pollfd[0].revents = POLLOUT; 321 pollfd[0].revents, 326 pollfd[1].revents, 333 if (pollfd[0].revents & POLLERR) { 338 if (pollfd[1].revents & POLLERR) { 343 if (pollfd[0].revents & POLLOUT) 346 if (pollfd[1].revents [all...] |
/freebsd-11-stable/sys/sys/ |
H A D | poll.h | 48 short revents; /* events found on return */ member in struct:pollfd 53 * copied to revents on return.
|
/freebsd-11-stable/lib/libdevdctl/ |
H A D | consumer.cc | 238 fds->revents = 0; 245 if ((fds->revents & POLLERR) != 0) 249 if ((fds->revents & POLLHUP) != 0) 253 return ((fds->revents & POLLIN) != 0);
|
/freebsd-11-stable/tools/regression/netinet/tcpfullwindowrst/ |
H A D | tcpfullwindowrsttest.c | 114 if (pfd[0].revents & POLLOUT) { 121 if (pfd[1].revents & POLLOUT) {
|
/freebsd-11-stable/cddl/usr.sbin/zfsd/ |
H A D | zfsd.cc | 346 fds[0].revents = 0; 349 fds[1].revents = 0; 360 if ((fds[0].revents & POLLIN) != 0) 363 if ((fds[1].revents & POLLIN) != 0) { 383 if ((fds[0].revents & POLLERR) != 0) { 388 if ((fds[0].revents & POLLHUP) != 0) {
|
/freebsd-11-stable/sys/dev/snp/ |
H A D | snp.c | 298 int revents; local 304 revents = 0; 311 revents |= events & (POLLIN | POLLRDNORM); 316 if (revents == 0) 319 return (revents);
|
/freebsd-11-stable/contrib/sendmail/libmilter/ |
H A D | libmilter.h | 184 (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)
|
H A D | worker.c | 439 pfd[nfd].revents = 0; 489 pfd[nfd].revents = 0; 531 if (pfd[i].revents == 0) 546 pfd[i].events, pfd[i].revents)); 549 while ((pfd[i].revents & MI_POLL_RD_FLAGS) != 0 559 if ((pfd[i].revents & ~MI_POLL_RD_FLAGS) != 0)
|
/freebsd-11-stable/contrib/netbsd-tests/lib/librumphijack/ |
H A D | h_client.c | 113 if (pfd[1].revents != POLLNVAL || pfd[0].revents != 0) 114 errx(EXIT_FAILURE, "poll unexpected revents");
|
/freebsd-11-stable/usr.bin/talk/ |
H A D | io.c | 127 if (fds[1].revents & POLLIN) { 138 if (fds[0].revents & POLLIN) {
|
/freebsd-11-stable/contrib/bmake/ |
H A D | job.h | 97 short revents; member in struct:emul_pollfd
|
/freebsd-11-stable/contrib/ofed/infiniband-diags/src/ |
H A D | rdma-ndd.c | 328 fds[0].revents = 0; 332 fds[1].revents = 0; 340 if (fds[0].revents != 0) 343 if (fds[1].revents != 0)
|
/freebsd-11-stable/sys/net/ |
H A D | netmap_legacy.h | 236 int revents; member in struct:_POLL_REQUEST_DATA
|
/freebsd-11-stable/contrib/libpcap/testprogs/ |
H A D | selpolltest.c | 291 if (fd.revents & POLLIN) 295 if (fd.revents & POLLERR) 299 if (fd.revents & POLLHUP) 303 if (fd.revents & POLLNVAL)
|
/freebsd-11-stable/tests/sys/audit/ |
H A D | utils.c | 160 if (fd[0].revents & POLLIN) { 165 "unknown event %#x", fd[0].revents);
|
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ |
H A D | mlfk_ipl.c | 436 int revents; local 441 revents = 0; 451 revents |= events & (POLLIN | POLLRDNORM); 456 revents |= events & (POLLIN | POLLRDNORM); 460 revents |= events & (POLLIN | POLLRDNORM); 462 revents |= events & (POLLOUT | POLLWRNORM); 470 if ((revents == 0) && ((events & (POLLIN|POLLRDNORM)) != 0)) 474 return revents;
|
/freebsd-11-stable/sys/fs/fuse/ |
H A D | fuse_device.c | 179 int error, revents = 0; local 189 revents |= events & (POLLIN | POLLRDNORM); 195 revents |= events & (POLLOUT | POLLWRNORM); 197 return (revents);
|
/freebsd-11-stable/contrib/netbsd-tests/kernel/kqueue/write/ |
H A D | t_ttypty.c | 82 (void)printf("tty: returned from poll - %d\n", pfd.revents);
|
/freebsd-11-stable/sys/kern/ |
H A D | subr_log.c | 183 int revents = 0; local 188 revents |= events & (POLLIN | POLLRDNORM); 193 return (revents);
|