Lines Matching full:events
67 struct kevent *events; member
119 kqueueop->events = malloc(NEVENT * sizeof(struct kevent)); in kq_init()
120 if (kqueueop->events == NULL) { in kq_init()
133 * stick an error in events[0]. If kqueue is broken, then in kq_init()
137 kqueueop->changes, 1, kqueueop->events, NEVENT, NULL) != 1 || in kq_init()
138 kqueueop->events[0].ident != -1 || in kq_init()
139 kqueueop->events[0].flags != EV_ERROR) { in kq_init()
142 free(kqueueop->events); in kq_init()
176 newresult = realloc(kqop->events, in kq_insert()
187 kqop->events = newresult; in kq_insert()
213 struct kevent *events = kqop->events; in kq_dispatch() local
221 events, kqop->nevents, &ts); in kq_dispatch()
237 if (events[i].flags & EV_ERROR) { in kq_dispatch()
250 if (events[i].data == EBADF || in kq_dispatch()
251 events[i].data == EINVAL || in kq_dispatch()
252 events[i].data == ENOENT) in kq_dispatch()
254 errno = events[i].data; in kq_dispatch()
258 ev = (struct event *)events[i].udata; in kq_dispatch()
260 if (events[i].filter == EVFILT_READ) { in kq_dispatch()
262 } else if (events[i].filter == EVFILT_WRITE) { in kq_dispatch()
264 } else if (events[i].filter == EVFILT_SIGNAL) { in kq_dispatch()
275 ev->ev_events & EV_SIGNAL ? events[i].data : 1); in kq_dispatch()
407 if (kqop->events) in kq_dealloc()
408 free(kqop->events); in kq_dealloc()