Lines Matching defs:events
144 #define SELTD_PENDING 0x0001 /* We have pending events. */
858 poll_no_poll(int events)
867 if (events & ~POLLSTANDARD)
870 return (events & (POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM));
1206 * Set the appropriate output bits given a mask of fired events and the
1210 selsetbits(fd_mask **ibits, fd_mask **obits, int idx, fd_mask bit, int events)
1217 if ((events & select_flags[msk]) == 0)
1312 /* Compute the list of events we're interested in. */
1517 fd->revents = fo_poll(fp, fd->events, td->td_ucred, td);
1591 fds->revents = fo_poll(fp, fds->events,
1632 * allows the caller to specify a socket to wait for events on. It returns
1633 * 0 if any events matched and an error otherwise. There is no way to
1634 * determine which events fired.
1637 selsocket(struct socket *so, int events, struct timeval *tvp, struct thread *td)
1671 error = sopoll(so, events, NULL, td);
1672 /* error here is actually the ready events. */