kqop 85 third_party/libevent/kqueue.c static int kq_insert (struct kqop *, struct kevent *); kqop 102 third_party/libevent/kqueue.c struct kqop *kqueueop; kqop 108 third_party/libevent/kqueue.c if (!(kqueueop = calloc(1, sizeof(struct kqop)))) kqop 167 third_party/libevent/kqueue.c kq_insert(struct kqop *kqop, struct kevent *kev) kqop 169 third_party/libevent/kqueue.c int nevents = kqop->nevents; kqop 171 third_party/libevent/kqueue.c if (kqop->nchanges == nevents) { kqop 177 third_party/libevent/kqueue.c newchange = realloc(kqop->changes, kqop 183 third_party/libevent/kqueue.c kqop->changes = newchange; kqop 185 third_party/libevent/kqueue.c newresult = realloc(kqop->events, kqop 196 third_party/libevent/kqueue.c kqop->events = newresult; kqop 198 third_party/libevent/kqueue.c kqop->nevents = nevents; kqop 201 third_party/libevent/kqueue.c memcpy(&kqop->changes[kqop->nchanges++], kev, sizeof(struct kevent)); kqop 220 third_party/libevent/kqueue.c struct kqop *kqop = arg; kqop 221 third_party/libevent/kqueue.c struct kevent *changes = kqop->changes; kqop 222 third_party/libevent/kqueue.c struct kevent *events = kqop->events; kqop 232 third_party/libevent/kqueue.c res = kevent(kqop->kq, changes, kqop->nchanges, kqop 233 third_party/libevent/kqueue.c events, kqop->nevents, ts_p); kqop 234 third_party/libevent/kqueue.c kqop->nchanges = 0; kqop 304 third_party/libevent/kqueue.c struct kqop *kqop = arg; kqop 311 third_party/libevent/kqueue.c if (TAILQ_EMPTY(&kqop->evsigevents[nsignal])) { kqop 318 third_party/libevent/kqueue.c kev.udata = PTR_TO_UDATA(&kqop->evsigevents[nsignal]); kqop 323 third_party/libevent/kqueue.c if (kevent(kqop->kq, &kev, 1, NULL, 0, &timeout) == -1) kqop 331 third_party/libevent/kqueue.c TAILQ_INSERT_TAIL(&kqop->evsigevents[nsignal], ev, kqop 350 third_party/libevent/kqueue.c if (kq_insert(kqop, &kev) == -1) kqop 365 third_party/libevent/kqueue.c if (kq_insert(kqop, &kev) == -1) kqop 377 third_party/libevent/kqueue.c struct kqop *kqop = arg; kqop 388 third_party/libevent/kqueue.c TAILQ_REMOVE(&kqop->evsigevents[nsignal], ev, ev_signal_next); kqop 389 third_party/libevent/kqueue.c if (TAILQ_EMPTY(&kqop->evsigevents[nsignal])) { kqop 398 third_party/libevent/kqueue.c if (kevent(kqop->kq, &kev, 1, NULL, 0, &timeout) == -1) kqop 416 third_party/libevent/kqueue.c if (kq_insert(kqop, &kev) == -1) kqop 428 third_party/libevent/kqueue.c if (kq_insert(kqop, &kev) == -1) kqop 440 third_party/libevent/kqueue.c struct kqop *kqop = arg; kqop 442 third_party/libevent/kqueue.c if (kqop->changes) kqop 443 third_party/libevent/kqueue.c free(kqop->changes); kqop 444 third_party/libevent/kqueue.c if (kqop->events) kqop 445 third_party/libevent/kqueue.c free(kqop->events); kqop 446 third_party/libevent/kqueue.c if (kqop->kq >= 0 && kqop->pid == getpid()) kqop 447 third_party/libevent/kqueue.c close(kqop->kq); kqop 448 third_party/libevent/kqueue.c memset(kqop, 0, sizeof(struct kqop)); kqop 449 third_party/libevent/kqueue.c free(kqop);