Home
last modified time | relevance | path

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

/xnu-10063.141.1/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-10063.141.1/bsd/skywalk/channel/
H A Dchannel.c594 int revents; in filt_chtouch() local
625 revents = ch_event(ch, events, NULL, knote_get_kq(kn)->kq_p, NULL, TRUE, in filt_chtouch()
629 if (revents & POLLERR) { in filt_chtouch()
638 return (events & revents) != 0; in filt_chtouch()
676 int revents; in filt_chprocess() local
687 revents = ch_event(ch, events, NULL, knote_get_kq(kn)->kq_p, &result, in filt_chprocess()
690 if (revents & POLLERR) { in filt_chprocess()
702 trigger_event = (events & revents) != 0; in filt_chprocess()
761 int revents; in filt_chrwattach() local
808 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-10063.141.1/bsd/sys/
H A Dpoll.h99 short revents; member
/xnu-10063.141.1/bsd/kern/
H A Dsys_generic.c1739 fds[i].revents = 0; in poll_nocancel()
1790 fds[i].revents = POLLNVAL; in poll_nocancel()
1793 fds[i].revents = 0; in poll_nocancel()
1856 short prev_revents = fds->revents; in poll_callback()
1861 fds->revents |= POLLHUP; in poll_callback()
1864 fds->revents |= POLLERR; in poll_callback()
1869 if (fds->revents & POLLHUP) { in poll_callback()
1877 fds->revents |= (fds->events & mask); in poll_callback()
1881 if (!(fds->revents & POLLHUP)) { in poll_callback()
1882 fds->revents |= (fds->events & (POLLOUT | POLLWRNORM | POLLWRBAND)); in poll_callback()
[all …]
H A Duipc_socket.c6429 int revents = 0; in sopoll() local
6437 revents |= events & (POLLIN | POLLRDNORM); in sopoll()
6443 revents |= events & (POLLOUT | POLLWRNORM); in sopoll()
6449 revents |= events & (POLLPRI | POLLRDBAND); in sopoll()
6453 if (revents == 0) { in sopoll()
6474 return revents; in sopoll()
/xnu-10063.141.1/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.c1966 int revents; in audit_sdev_poll() local
1968 revents = 0; in audit_sdev_poll()
1975 revents |= events & (POLLIN | POLLRDNORM); in audit_sdev_poll()
1981 return revents; in audit_sdev_poll()
/xnu-10063.141.1/bsd/net/
H A Dnecp_client.c826 u_int revents = 0; in necp_fd_poll() local
833 revents |= want_rx; in necp_fd_poll()
851 revents |= want_rx; in necp_fd_poll()
856 return revents; in necp_fd_poll()
974 int revents = 0; in necpop_select() local
997 revents = necp_fd_poll(fd_data, events, wql, procp, 0); in necpop_select()
1000 return (events & revents) ? 1 : 0; in necpop_select()
1025 int revents; in necp_fd_knrprocess() local
1031 revents = necp_fd_poll(fd_data, POLLIN, NULL, current_proc(), 1); in necp_fd_knrprocess()
1032 res = ((revents & POLLIN) != 0); in necp_fd_knrprocess()
[all …]