Lines Matching refs:pfd
75 struct pollfd pfd[6];
82 pfd[0].fd = ctl4;
83 pfd[0].events = POLLIN;
84 pfd[1].fd = ctl6;
85 pfd[1].events = POLLIN;
87 pfd[2].fd = port4;
88 pfd[2].events = POLLIN;
90 pfd[2].fd = -1;
92 pfd[3].fd = port6;
93 pfd[3].events = POLLIN;
95 pfd[3].fd = -1;
98 pfd[4].fd = wport4;
99 pfd[4].events = POLLIN;
101 pfd[4].fd = -1;
103 pfd[5].fd = wport4;
104 pfd[5].events = POLLIN;
106 pfd[5].fd = -1;
108 pfd[4].fd = pfd[5].fd = -1;
109 pfd[4].events = pfd[5].events = 0;
111 error = poll(pfd, (unsigned int)(sizeof(pfd) / sizeof(pfd[0])),
125 if (pfd[1].revents & POLLIN)
142 if (pfd[0].revents & POLLIN)
159 if (0 <= port4 && 0 <= port6 && (pfd[2].revents & POLLIN))
165 if (pfd[2].revents & POLLIN)
185 if (0 <= port4 && 0 <= port6 && (pfd[3].revents & POLLIN))
191 if (pfd[3].revents & POLLIN)
212 if (wport4 && (pfd[4].revents & POLLIN))
219 if (wport4 && (pfd[5].revents & POLLIN))
238 struct pollfd pfd[1];
242 pfd[0].fd = wport4;
243 pfd[0].events = POLLIN;
245 if (poll(pfd, (unsigned int)(sizeof(pfd) / sizeof(pfd[0])),
284 struct pollfd pfd[1];
288 pfd[0].fd = wport6;
289 pfd[0].events = POLLIN;
291 if (poll(pfd, (unsigned int)(sizeof(pfd) / sizeof(pfd[0])),