Lines Matching defs:pollfds
39 struct lws_pollfd *pollfds;
76 if (pollfds[n].fd == fd)
77 return &pollfds[n];
113 count_pollfds = (int)((pfd - pollfds) + 1);
567 pollfds = malloc((unsigned int)max_poll_elements * sizeof (struct lws_pollfd));
569 if (pollfds == NULL || fd_lookup == NULL) {
570 lwsl_err("Out of memory pollfds=%d\n", max_poll_elements);
574 pollfds[n].fd = LWS_SOCK_INVALID;
696 n = poll(pollfds, (nfds_t)count_pollfds, n);
702 if (pollfds[n].revents)
709 &pollfds[n]) < 0)