Lines Matching defs:pollfds
31 static struct pollfd *pollfds = NULL; /* Array of poll descriptors */
133 if (pollfds[i].fd == fd)
138 if (pollfds[i].fd == -1) {
139 pollfds[i].fd = fd;
146 newfds = realloc(pollfds, new_num * sizeof (struct pollfd));
156 pollfds = newfds;
170 if (pollfds[i].fd == fd) {
171 pollfds[i].fd = -1;
2133 if (poll(pollfds, pollfd_num, -1) < 0) {
2140 if ((pollfds[i].fd == -1) ||
2141 !(pollfds[i].revents & POLLIN))
2143 if (pollfds[i].fd == eventpipe_read) {
2147 if (pollfds[i].fd == rtsock_v4 ||
2148 pollfds[i].fd == rtsock_v6) {
2155 if (pollfds[i].fd == pii->pii_probe_sock) {
2166 pollfds[i].fd == dlpi_fd(pi->pi_dh)) {
2173 if (pollfds[i].fd == lsock_v4)
2175 else if (pollfds[i].fd == lsock_v6)