epollop           113 third_party/libevent/epoll.c 	struct epollop *epollop;
epollop           128 third_party/libevent/epoll.c 	if (!(epollop = calloc(1, sizeof(struct epollop))))
epollop           131 third_party/libevent/epoll.c 	epollop->epfd = epfd;
epollop           134 third_party/libevent/epoll.c 	epollop->events = malloc(INITIAL_NEVENTS * sizeof(struct epoll_event));
epollop           135 third_party/libevent/epoll.c 	if (epollop->events == NULL) {
epollop           136 third_party/libevent/epoll.c 		free(epollop);
epollop           139 third_party/libevent/epoll.c 	epollop->nevents = INITIAL_NEVENTS;
epollop           141 third_party/libevent/epoll.c 	epollop->fds = calloc(INITIAL_NFILES, sizeof(struct evepoll));
epollop           142 third_party/libevent/epoll.c 	if (epollop->fds == NULL) {
epollop           143 third_party/libevent/epoll.c 		free(epollop->events);
epollop           144 third_party/libevent/epoll.c 		free(epollop);
epollop           147 third_party/libevent/epoll.c 	epollop->nfds = INITIAL_NFILES;
epollop           151 third_party/libevent/epoll.c 	return (epollop);
epollop           157 third_party/libevent/epoll.c 	struct epollop *epollop = arg;
epollop           159 third_party/libevent/epoll.c 	if (max >= epollop->nfds) {
epollop           163 third_party/libevent/epoll.c 		nfds = epollop->nfds;
epollop           167 third_party/libevent/epoll.c 		fds = realloc(epollop->fds, nfds * sizeof(struct evepoll));
epollop           172 third_party/libevent/epoll.c 		epollop->fds = fds;
epollop           173 third_party/libevent/epoll.c 		memset(fds + epollop->nfds, 0,
epollop           174 third_party/libevent/epoll.c 		    (nfds - epollop->nfds) * sizeof(struct evepoll));
epollop           175 third_party/libevent/epoll.c 		epollop->nfds = nfds;
epollop           184 third_party/libevent/epoll.c 	struct epollop *epollop = arg;
epollop           185 third_party/libevent/epoll.c 	struct epoll_event *events = epollop->events;
epollop           198 third_party/libevent/epoll.c 	res = epoll_wait(epollop->epfd, events, epollop->nevents, timeout);
epollop           219 third_party/libevent/epoll.c 		if (fd < 0 || fd >= epollop->nfds)
epollop           221 third_party/libevent/epoll.c 		evep = &epollop->fds[fd];
epollop           245 third_party/libevent/epoll.c 	if (res == epollop->nevents && epollop->nevents < MAX_NEVENTS) {
epollop           248 third_party/libevent/epoll.c 		int new_nevents = epollop->nevents * 2;
epollop           251 third_party/libevent/epoll.c 		new_events = realloc(epollop->events,
epollop           254 third_party/libevent/epoll.c 			epollop->events = new_events;
epollop           255 third_party/libevent/epoll.c 			epollop->nevents = new_nevents;
epollop           266 third_party/libevent/epoll.c 	struct epollop *epollop = arg;
epollop           275 third_party/libevent/epoll.c 	if (fd >= epollop->nfds) {
epollop           277 third_party/libevent/epoll.c 		if (epoll_recalc(ev->ev_base, epollop, fd) == -1)
epollop           280 third_party/libevent/epoll.c 	evep = &epollop->fds[fd];
epollop           299 third_party/libevent/epoll.c 	if (epoll_ctl(epollop->epfd, op, ev->ev_fd, &epev) == -1)
epollop           314 third_party/libevent/epoll.c 	struct epollop *epollop = arg;
epollop           324 third_party/libevent/epoll.c 	if (fd >= epollop->nfds)
epollop           326 third_party/libevent/epoll.c 	evep = &epollop->fds[fd];
epollop           356 third_party/libevent/epoll.c 	if (epoll_ctl(epollop->epfd, op, fd, &epev) == -1)
epollop           365 third_party/libevent/epoll.c 	struct epollop *epollop = arg;
epollop           368 third_party/libevent/epoll.c 	if (epollop->fds)
epollop           369 third_party/libevent/epoll.c 		free(epollop->fds);
epollop           370 third_party/libevent/epoll.c 	if (epollop->events)
epollop           371 third_party/libevent/epoll.c 		free(epollop->events);
epollop           372 third_party/libevent/epoll.c 	if (epollop->epfd >= 0)
epollop           373 third_party/libevent/epoll.c 		close(epollop->epfd);
epollop           375 third_party/libevent/epoll.c 	memset(epollop, 0, sizeof(struct epollop));
epollop           376 third_party/libevent/epoll.c 	free(epollop);