Home
last modified time | relevance | path

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

/xnu-8792.41.9/tests/
H A Dpoll.c30 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 Duipc_sosendcheck.c63 if (!(pfd[0].revents & POLLOUT)) { in do_send()
H A Dpoll_select_kevent_paired_fds.c567 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-8792.41.9/bsd/skywalk/channel/
H A Dchannel.c595 int revents; in filt_chtouch() local
626 revents = ch_event(ch, events, NULL, knote_get_kq(kn)->kq_p, NULL, TRUE, in filt_chtouch()
630 if (revents & POLLERR) { in filt_chtouch()
639 return (events & revents) != 0; in filt_chtouch()
677 int revents; in filt_chprocess() local
688 revents = ch_event(ch, events, NULL, knote_get_kq(kn)->kq_p, &result, in filt_chprocess()
691 if (revents & POLLERR) { in filt_chprocess()
703 trigger_event = (events & revents) != 0; in filt_chprocess()
762 int revents; in filt_chrwattach() local
809 revents = events; in filt_chrwattach()
[all …]
H A Dchannel_syscalls.c64 int revents = 0, events = 0; in chop_select() local
90 revents = ch_select(ch, events, wql, vfs_context_proc(ctx)); in chop_select()
91 return (events & revents) ? 1 : 0; in chop_select()
/xnu-8792.41.9/bsd/sys/
H A Dpoll.h99 short revents; member
/xnu-8792.41.9/bsd/kern/
H A Dsys_generic.c1749 fds[i].revents = 0; in poll_nocancel()
1800 fds[i].revents = POLLNVAL; in poll_nocancel()
1803 fds[i].revents = 0; in poll_nocancel()
1863 short prev_revents = fds->revents; in poll_callback()
1868 fds->revents |= POLLHUP; in poll_callback()
1871 fds->revents |= POLLERR; in poll_callback()
1876 if (fds->revents & POLLHUP) { in poll_callback()
1884 fds->revents |= (fds->events & mask); in poll_callback()
1888 if (!(fds->revents & POLLHUP)) { in poll_callback()
1889 fds->revents |= (fds->events & (POLLOUT | POLLWRNORM | POLLWRBAND)); in poll_callback()
[all …]
H A Duipc_socket.c6605 int revents = 0; in sopoll() local
6613 revents |= events & (POLLIN | POLLRDNORM); in sopoll()
6619 revents |= events & (POLLOUT | POLLWRNORM); in sopoll()
6625 revents |= events & (POLLPRI | POLLRDBAND); in sopoll()
6629 if (revents == 0) { in sopoll()
6650 return revents; in sopoll()
/xnu-8792.41.9/bsd/security/audit/
H A Daudit_pipe.c1061 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 Daudit_session.c1990 int revents; in audit_sdev_poll() local
1992 revents = 0; in audit_sdev_poll()
1999 revents |= events & (POLLIN | POLLRDNORM); in audit_sdev_poll()
2005 return revents; in audit_sdev_poll()
/xnu-8792.41.9/bsd/net/
H A Dnecp_client.c806 u_int revents = 0; in necp_fd_poll() local
813 revents |= want_rx; in necp_fd_poll()
831 revents |= want_rx; in necp_fd_poll()
836 return revents; in necp_fd_poll()
954 int revents = 0; in necpop_select() local
977 revents = necp_fd_poll(fd_data, events, wql, procp, 0); in necpop_select()
980 return (events & revents) ? 1 : 0; in necpop_select()
1005 int revents; in necp_fd_knrprocess() local
1011 revents = necp_fd_poll(fd_data, POLLIN, NULL, current_proc(), 1); in necp_fd_knrprocess()
1012 res = ((revents & POLLIN) != 0); in necp_fd_knrprocess()
[all …]