Lines Matching refs:pfd
80 struct pollfd pfd[6];
92 pfd[0].fd = ctl4;
93 pfd[0].events = POLLIN;
94 pfd[1].fd = ctl6;
95 pfd[1].events = POLLIN;
97 pfd[2].fd = port4;
98 pfd[2].events = POLLIN;
100 pfd[2].fd = -1;
102 pfd[3].fd = port6;
103 pfd[3].events = POLLIN;
105 pfd[3].fd = -1;
108 pfd[4].fd = wport4;
109 pfd[4].events = POLLIN;
111 pfd[4].fd = -1;
113 pfd[5].fd = wport4;
114 pfd[5].events = POLLIN;
116 pfd[5].fd = -1;
118 pfd[4].fd = pfd[5].fd = -1;
119 pfd[4].events = pfd[5].events = 0;
164 error = poll(pfd, sizeof(pfd)/sizeof(pfd[0]), tv.tv_sec * 1000);
185 if (pfd[1].revents & POLLIN)
206 if (pfd[0].revents & POLLIN)
227 if (0 <= port4 && 0 <= port6 && (pfd[2].revents & POLLIN))
237 if (pfd[2].revents & POLLIN)
256 if (0 <= port4 && 0 <= port6 && (pfd[3].revents & POLLIN))
266 if (pfd[3].revents & POLLIN)
286 if (wport4 && (pfd[4].revents & POLLIN))
297 if (wport4 && (pfd[5].revents & POLLIN))
320 struct pollfd pfd[1];
329 pfd[0].fd = wport4;
330 pfd[0].events = POLLIN;
341 if (poll(pfd, sizeof(pfd)/sizeof(pfd[0]), timeout.tv_sec * 1000) == 0 ||
384 struct pollfd pfd[1];
393 pfd[0].fd = wport6;
394 pfd[0].events = POLLIN;
405 if (poll(pfd, sizeof(pfd)/sizeof(pfd[0]), timeout.tv_sec * 1000) == 0 ||