Lines Matching defs:pollfds
1067 struct pollfd pollfds[FD_MAX];
1142 memset(pollfds, 0, sizeof(pollfds));
1143 pollfds[FD_ARP].fd = fd;
1144 pollfds[FD_ARP].events = POLLIN;
1145 pollfds[FD_IFACE].fd = iface_fd;
1146 pollfds[FD_IFACE].events = POLLIN;
1147 pollfds[FD_SIGNAL].fd = daemon_signal_fd();
1148 pollfds[FD_SIGNAL].events = POLLIN;
1328 while ((r = poll(pollfds, FD_MAX, timeout)) < 0 && errno == EINTR)
1340 if (pollfds[FD_ARP].revents) {
1342 if (pollfds[FD_ARP].revents == POLLERR) {
1350 pollfds[FD_ARP].fd = fd;
1354 assert(pollfds[FD_ARP].revents == POLLIN);
1365 pollfds[FD_IFACE].revents) {
1367 assert(pollfds[FD_IFACE].revents == POLLIN);
1374 pollfds[FD_SIGNAL].revents) {
1377 assert(pollfds[FD_SIGNAL].revents == POLLIN);