devpollop 91 third_party/libevent/devpoll.c devpoll_commit(struct devpollop *devpollop) devpollop 97 third_party/libevent/devpoll.c if (pwrite(devpollop->dpfd, devpollop->changes, devpollop 98 third_party/libevent/devpoll.c sizeof(struct pollfd) * devpollop->nchanges, 0) == -1) devpollop 101 third_party/libevent/devpoll.c devpollop->nchanges = 0; devpollop 106 third_party/libevent/devpoll.c devpoll_queue(struct devpollop *devpollop, int fd, int events) { devpollop 109 third_party/libevent/devpoll.c if (devpollop->nchanges >= devpollop->nevents) { devpollop 114 third_party/libevent/devpoll.c if (devpoll_commit(devpollop) != 0) devpollop 118 third_party/libevent/devpoll.c pfd = &devpollop->changes[devpollop->nchanges++]; devpollop 131 third_party/libevent/devpoll.c struct devpollop *devpollop; devpollop 137 third_party/libevent/devpoll.c if (!(devpollop = calloc(1, sizeof(struct devpollop)))) devpollop 147 third_party/libevent/devpoll.c free(devpollop); devpollop 151 third_party/libevent/devpoll.c devpollop->dpfd = dpfd; devpollop 154 third_party/libevent/devpoll.c devpollop->events = calloc(nfiles, sizeof(struct pollfd)); devpollop 155 third_party/libevent/devpoll.c if (devpollop->events == NULL) { devpollop 156 third_party/libevent/devpoll.c free(devpollop); devpollop 160 third_party/libevent/devpoll.c devpollop->nevents = nfiles; devpollop 162 third_party/libevent/devpoll.c devpollop->fds = calloc(nfiles, sizeof(struct evdevpoll)); devpollop 163 third_party/libevent/devpoll.c if (devpollop->fds == NULL) { devpollop 164 third_party/libevent/devpoll.c free(devpollop->events); devpollop 165 third_party/libevent/devpoll.c free(devpollop); devpollop 169 third_party/libevent/devpoll.c devpollop->nfds = nfiles; devpollop 171 third_party/libevent/devpoll.c devpollop->changes = calloc(nfiles, sizeof(struct pollfd)); devpollop 172 third_party/libevent/devpoll.c if (devpollop->changes == NULL) { devpollop 173 third_party/libevent/devpoll.c free(devpollop->fds); devpollop 174 third_party/libevent/devpoll.c free(devpollop->events); devpollop 175 third_party/libevent/devpoll.c free(devpollop); devpollop 182 third_party/libevent/devpoll.c return (devpollop); devpollop 188 third_party/libevent/devpoll.c struct devpollop *devpollop = arg; devpollop 190 third_party/libevent/devpoll.c if (max >= devpollop->nfds) { devpollop 194 third_party/libevent/devpoll.c nfds = devpollop->nfds; devpollop 198 third_party/libevent/devpoll.c fds = realloc(devpollop->fds, nfds * sizeof(struct evdevpoll)); devpollop 203 third_party/libevent/devpoll.c devpollop->fds = fds; devpollop 204 third_party/libevent/devpoll.c memset(fds + devpollop->nfds, 0, devpollop 205 third_party/libevent/devpoll.c (nfds - devpollop->nfds) * sizeof(struct evdevpoll)); devpollop 206 third_party/libevent/devpoll.c devpollop->nfds = nfds; devpollop 215 third_party/libevent/devpoll.c struct devpollop *devpollop = arg; devpollop 216 third_party/libevent/devpoll.c struct pollfd *events = devpollop->events; devpollop 221 third_party/libevent/devpoll.c if (devpollop->nchanges) devpollop 222 third_party/libevent/devpoll.c devpoll_commit(devpollop); devpollop 227 third_party/libevent/devpoll.c dvp.dp_fds = devpollop->events; devpollop 228 third_party/libevent/devpoll.c dvp.dp_nfds = devpollop->nevents; devpollop 231 third_party/libevent/devpoll.c res = ioctl(devpollop->dpfd, DP_POLL, &dvp); devpollop 252 third_party/libevent/devpoll.c assert(events[i].fd < devpollop->nfds); devpollop 253 third_party/libevent/devpoll.c evdp = &devpollop->fds[events[i].fd]; devpollop 292 third_party/libevent/devpoll.c struct devpollop *devpollop = arg; devpollop 300 third_party/libevent/devpoll.c if (fd >= devpollop->nfds) { devpollop 302 third_party/libevent/devpoll.c if (devpoll_recalc(ev->ev_base, devpollop, fd) == -1) devpollop 305 third_party/libevent/devpoll.c evdp = &devpollop->fds[fd]; devpollop 331 third_party/libevent/devpoll.c if (devpoll_queue(devpollop, fd, events) != 0) devpollop 346 third_party/libevent/devpoll.c struct devpollop *devpollop = arg; devpollop 355 third_party/libevent/devpoll.c if (fd >= devpollop->nfds) devpollop 357 third_party/libevent/devpoll.c evdp = &devpollop->fds[fd]; devpollop 372 third_party/libevent/devpoll.c if (devpoll_queue(devpollop, fd, POLLREMOVE) != 0) devpollop 383 third_party/libevent/devpoll.c devpoll_queue(devpollop, fd, POLLOUT); devpollop 387 third_party/libevent/devpoll.c devpoll_queue(devpollop, fd, POLLIN); devpollop 403 third_party/libevent/devpoll.c struct devpollop *devpollop = arg; devpollop 406 third_party/libevent/devpoll.c if (devpollop->fds) devpollop 407 third_party/libevent/devpoll.c free(devpollop->fds); devpollop 408 third_party/libevent/devpoll.c if (devpollop->events) devpollop 409 third_party/libevent/devpoll.c free(devpollop->events); devpollop 410 third_party/libevent/devpoll.c if (devpollop->changes) devpollop 411 third_party/libevent/devpoll.c free(devpollop->changes); devpollop 412 third_party/libevent/devpoll.c if (devpollop->dpfd >= 0) devpollop 413 third_party/libevent/devpoll.c close(devpollop->dpfd); devpollop 415 third_party/libevent/devpoll.c memset(devpollop, 0, sizeof(struct devpollop)); devpollop 416 third_party/libevent/devpoll.c free(devpollop);