Searched refs:revents (Results 1 – 10 of 10) sorted by relevance
| /xnu-8019.80.24/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 | 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-8019.80.24/bsd/skywalk/channel/ |
| H A D | channel.c | 604 int revents; in filt_chtouch() local 635 revents = ch_event(ch, events, NULL, knote_get_kq(kn)->kq_p, NULL, TRUE, in filt_chtouch() 639 if (revents & POLLERR) { in filt_chtouch() 648 return (events & revents) != 0; in filt_chtouch() 686 int revents; in filt_chprocess() local 697 revents = ch_event(ch, events, NULL, knote_get_kq(kn)->kq_p, &result, in filt_chprocess() 700 if (revents & POLLERR) { in filt_chprocess() 712 trigger_event = (events & revents) != 0; in filt_chprocess() 771 int revents; in filt_chrwattach() local 818 revents = events; in filt_chrwattach() [all …]
|
| H A D | channel_syscalls.c | 64 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-8019.80.24/bsd/sys/ |
| H A D | poll.h | 99 short revents; member
|
| /xnu-8019.80.24/bsd/kern/ |
| H A D | sys_generic.c | 1964 fds[i].revents = 0; in poll_nocancel() 2015 fds[i].revents = POLLNVAL; in poll_nocancel() 2018 fds[i].revents = 0; in poll_nocancel() 2078 short prev_revents = fds->revents; in poll_callback() 2083 fds->revents |= POLLHUP; in poll_callback() 2086 fds->revents |= POLLERR; in poll_callback() 2091 if (fds->revents & POLLHUP) { in poll_callback() 2099 fds->revents |= (fds->events & mask); in poll_callback() 2103 if (!(fds->revents & POLLHUP)) { in poll_callback() 2104 fds->revents |= (fds->events & (POLLOUT | POLLWRNORM | POLLWRBAND)); in poll_callback() [all …]
|
| H A D | uipc_socket.c | 6548 int revents = 0; in sopoll() local 6556 revents |= events & (POLLIN | POLLRDNORM); in sopoll() 6562 revents |= events & (POLLOUT | POLLWRNORM); in sopoll() 6568 revents |= events & (POLLPRI | POLLRDBAND); in sopoll() 6572 if (revents == 0) { in sopoll() 6593 return revents; in sopoll()
|
| /xnu-8019.80.24/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 | 1990 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-8019.80.24/bsd/net/ |
| H A D | necp_client.c | 777 u_int revents = 0; in necp_fd_poll() local 784 revents |= want_rx; in necp_fd_poll() 802 revents |= want_rx; in necp_fd_poll() 807 return revents; in necp_fd_poll() 925 int revents = 0; in necpop_select() local 948 revents = necp_fd_poll(fd_data, events, wql, procp, 0); in necpop_select() 951 return (events & revents) ? 1 : 0; in necpop_select() 976 int revents; in necp_fd_knrprocess() local 982 revents = necp_fd_poll(fd_data, POLLIN, NULL, current_proc(), 1); in necp_fd_knrprocess() 983 res = ((revents & POLLIN) != 0); in necp_fd_knrprocess() [all …]
|