Searched refs:revents (Results 1 - 25 of 152) sorted by relevance

1234567

/freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_poll.c173 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 Dsockpoll.c109 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 Dpipepoll.c107 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 Dbsd-poll.h37 short revents; member in struct:pollfd
H A Dbsd-poll.c35 * 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 Drecvmmsg.c52 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 Dbridge.c286 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 Dpoll.h48 short revents; /* events found on return */ member in struct:pollfd
53 * copied to revents on return.
/freebsd-11-stable/lib/libdevdctl/
H A Dconsumer.cc238 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 Dtcpfullwindowrsttest.c114 if (pfd[0].revents & POLLOUT) {
121 if (pfd[1].revents & POLLOUT) {
/freebsd-11-stable/cddl/usr.sbin/zfsd/
H A Dzfsd.cc346 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 Dsnp.c298 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 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)
H A Dworker.c439 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 Dh_client.c113 if (pfd[1].revents != POLLNVAL || pfd[0].revents != 0)
114 errx(EXIT_FAILURE, "poll unexpected revents");
/freebsd-11-stable/usr.bin/talk/
H A Dio.c127 if (fds[1].revents & POLLIN) {
138 if (fds[0].revents & POLLIN) {
/freebsd-11-stable/contrib/bmake/
H A Djob.h97 short revents; member in struct:emul_pollfd
/freebsd-11-stable/contrib/ofed/infiniband-diags/src/
H A Drdma-ndd.c328 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 Dnetmap_legacy.h236 int revents; member in struct:_POLL_REQUEST_DATA
/freebsd-11-stable/contrib/libpcap/testprogs/
H A Dselpolltest.c291 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 Dutils.c160 if (fd[0].revents & POLLIN) {
165 "unknown event %#x", fd[0].revents);
/freebsd-11-stable/sys/contrib/ipfilter/netinet/
H A Dmlfk_ipl.c436 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 Dfuse_device.c179 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 Dt_ttypty.c82 (void)printf("tty: returned from poll - %d\n", pfd.revents);
/freebsd-11-stable/sys/kern/
H A Dsubr_log.c183 int revents = 0; local
188 revents |= events & (POLLIN | POLLRDNORM);
193 return (revents);

Completed in 388 milliseconds

1234567