Lines Matching refs:pollfds
90 ctx->pollfds = NULL; in evCreate()
779 fds = &(ctx->pollfds[ctx->firstfd]); in pselect()
791 if (ctx->pollfds[i].fd < 0) in pselect()
816 void *pollfds, *fdTable; in evPollfdRealloc() local
827 pollfds = realloc(ctx->pollfds, maxnfds * sizeof(*ctx->pollfds)); in evPollfdRealloc()
828 if (pollfds != NULL) in evPollfdRealloc()
829 ctx->pollfds = pollfds; in evPollfdRealloc()
834 if (pollfds == NULL || fdTable == NULL) { in evPollfdRealloc()
841 ctx->pollfds[i].fd = -1; in evPollfdRealloc()
842 ctx->pollfds[i].events = 0; in evPollfdRealloc()
858 return (&(ctx->pollfds[fd].events)); in __fd_eventfield()
860 return (&(ctx->pollfds[fd].revents)); in __fd_eventfield()
892 if ((ctx->pollfds[fd].events & ~POLLHUP) == 0) { in __fd_clr()
893 ctx->pollfds[fd].fd = -1; in __fd_clr()
896 ctx->pollfds[ctx->fdMax].fd < 0) in __fd_clr()
900 ctx->pollfds[ctx->firstfd].fd < 0) in __fd_clr()
923 if ((ctx->pollfds[fd].events & ~POLLHUP) != 0) { in __fd_set()
924 ctx->pollfds[fd].fd = fd; in __fd_set()