| /xnu-11417.140.69/tests/ |
| H A D | poll.c | 30 struct pollfd pfd = { .fd = 0, .events = 0, .revents = 0 }; 71 T_QUIET; T_EXPECT_TRUE(pfd[0].revents & POLLNVAL, 75 pfd[0].fd = file; pfd[0].revents = 0; 76 pfd[1].fd = dir; pfd[1].revents = 0; 79 T_QUIET; T_EXPECT_TRUE(pfd[0].revents & POLLIN, "file should be readable"); 80 T_QUIET; T_EXPECT_TRUE(pfd[1].revents & POLLNVAL, 84 pfd[0].fd = dir; pfd[0].revents = 0; 85 pfd[1].fd = file; pfd[1].revents = 0; 88 T_QUIET; T_EXPECT_TRUE(pfd[0].revents & POLLNVAL, 90 T_QUIET; T_EXPECT_TRUE(pfd[1].revents & POLLIN, "file should be readable"); [all …]
|
| H A D | uipc_sosendcheck.c | 63 if (!(pfd[0].revents & POLLOUT)) { in do_send()
|
| H A D | poll_select_kevent_paired_fds.c | 567 fds[0].revents = 0; in read_from_fd() 574 T_QUIET; T_ASSERT_FALSE(fds[0].revents & POLLERR, in read_from_fd() 576 T_QUIET; T_ASSERT_FALSE(fds[0].revents & POLLNVAL, in read_from_fd()
|
| /xnu-11417.140.69/tests/skywalk/ |
| H A D | skt_shutdown.c | 100 fds.revents = sock_fds.revents = 0; in skt_shutdown_common() 105 sock_fds.revents); in skt_shutdown_common() 110 assert((sock_fds.revents & POLLHUP) != 0); in skt_shutdown_common() 115 " revents(0x%x)\n", error, fds.events, fds.revents); in skt_shutdown_common() 121 assert(fds.revents == sock_fds.revents); in skt_shutdown_common() 267 fds.revents = sock_fds.revents = 0; in skt_shutdown_common() 272 sock_fds.revents); in skt_shutdown_common() 277 assert((sock_fds.revents & POLLHUP) != 0); in skt_shutdown_common() 282 " revents(0x%x)\n", error, fds.events, fds.revents); in skt_shutdown_common() 288 assert(fds.revents == sock_fds.revents); in skt_shutdown_common()
|
| H A D | skt_badring.c | 105 fds.revents = 0; in skt_badringtx_common() 117 …T_LOG("events 0x%x revents 0x%x check 0x%x\n", fds.events, fds.revents, (POLLWRNORM | POLLWRBAND |… in skt_badringtx_common() 118 assert(fds.revents == POLLNVAL); in skt_badringtx_common() 224 fds.revents = 0; in skt_badringrx_common() 236 T_LOG("events 0x%x revents 0x%x\n", fds.events, fds.revents); in skt_badringrx_common() 237 assert(fds.revents == POLLNVAL); in skt_badringrx_common()
|
| H A D | skt_oneslot.c | 102 fds.revents = 0; in skt_oneslot_common() 108 assert(fds.revents == POLLWRNORM); in skt_oneslot_common() 165 fds.revents = 0; in skt_oneslot_common() 171 assert(fds.revents == POLLRDNORM); in skt_oneslot_common()
|
| H A D | skt_shutdown2.c | 101 fds.revents = 0; in skt_shutdown2_common() 107 assert(fds.revents == (POLLRDNORM | POLLHUP)); in skt_shutdown2_common()
|
| H A D | skt_nslots.c | 149 assert(fds.revents == POLLWRNORM); in skt_nslots_common() 219 assert(fds.revents == POLLRDNORM); in skt_nslots_common()
|
| H A D | skywalk_test_utils.c | 1036 assert(fds.revents == POLLWRNORM); in sktc_pump_ring_nslots_poll() 1039 assert(fds.revents == POLLRDNORM); in sktc_pump_ring_nslots_poll()
|
| /xnu-11417.140.69/bsd/skywalk/channel/ |
| H A D | channel.c | 600 int revents; in filt_chtouch() local 631 revents = ch_event(ch, events, NULL, knote_get_kq(kn)->kq_p, NULL, TRUE, in filt_chtouch() 635 if (revents & POLLERR) { in filt_chtouch() 644 return (events & revents) != 0; in filt_chtouch() 687 int revents; in filt_chprocess() local 698 revents = ch_event(ch, events, NULL, knote_get_kq(kn)->kq_p, &result, in filt_chprocess() 701 if (revents & POLLERR) { in filt_chprocess() 713 trigger_event = (events & revents) != 0; in filt_chprocess() 772 int revents; in filt_chrwattach() local 819 revents = events; in filt_chrwattach() [all …]
|
| H A D | channel_syscalls.c | 76 int revents = 0, events = 0; in chop_select() local 102 revents = ch_select(ch, events, wql, vfs_context_proc(ctx)); in chop_select() 103 return (events & revents) ? 1 : 0; in chop_select()
|
| /xnu-11417.140.69/bsd/sys/ |
| H A D | poll.h | 99 short revents; member
|
| /xnu-11417.140.69/bsd/kern/ |
| H A D | sys_generic.c | 1738 fds[i].revents = 0; in poll_nocancel() 1789 fds[i].revents = POLLNVAL; in poll_nocancel() 1792 fds[i].revents = 0; in poll_nocancel() 1855 short prev_revents = fds->revents; in poll_callback() 1860 fds->revents |= POLLHUP; in poll_callback() 1863 fds->revents |= POLLERR; in poll_callback() 1868 if (fds->revents & POLLHUP) { in poll_callback() 1876 fds->revents |= (fds->events & mask); in poll_callback() 1880 if (!(fds->revents & POLLHUP)) { in poll_callback() 1881 fds->revents |= (fds->events & (POLLOUT | POLLWRNORM | POLLWRBAND)); in poll_callback() [all …]
|
| H A D | uipc_socket.c | 6524 int revents = 0; in sopoll() local 6532 revents |= events & (POLLIN | POLLRDNORM); in sopoll() 6538 revents |= events & (POLLOUT | POLLWRNORM); in sopoll() 6544 revents |= events & (POLLPRI | POLLRDBAND); in sopoll() 6548 if (revents == 0) { in sopoll() 6569 return revents; in sopoll()
|
| /xnu-11417.140.69/bsd/security/audit/ |
| H A D | audit_pipe.c | 1061 int revents; in audit_pipe_poll() local 1063 revents = 0; in audit_pipe_poll() 1070 revents |= events & (POLLIN | POLLRDNORM); in audit_pipe_poll() 1076 return revents; in audit_pipe_poll()
|
| H A D | audit_session.c | 1960 int revents; in audit_sdev_poll() local 1962 revents = 0; in audit_sdev_poll() 1969 revents |= events & (POLLIN | POLLRDNORM); in audit_sdev_poll() 1975 return revents; in audit_sdev_poll()
|
| /xnu-11417.140.69/bsd/net/ |
| H A D | necp_client.c | 926 u_int revents = 0; in necp_fd_poll() local 933 revents |= want_rx; in necp_fd_poll() 951 revents |= want_rx; in necp_fd_poll() 956 return revents; in necp_fd_poll() 1074 int revents = 0; in necpop_select() local 1097 revents = necp_fd_poll(fd_data, events, wql, procp, 0); in necpop_select() 1100 return (events & revents) ? 1 : 0; in necpop_select() 1125 int revents; in necp_fd_knrprocess() local 1131 revents = necp_fd_poll(fd_data, POLLIN, NULL, current_proc(), 1); in necp_fd_knrprocess() 1132 res = ((revents & POLLIN) != 0); in necp_fd_knrprocess() [all …]
|