Lines Matching defs:pfd
92 struct pollfd pfd;
101 pfd.fd = fd;
102 pfd.events = POLLIN;
105 if ((res = poll(&pfd, 1, 0)) < 0)
107 report(num++, "0", 0, pfd.revents, res, 0);
123 if ((res = poll(&pfd, 1, 0)) < 0)
125 report(num++, "1", 0, pfd.revents, res, 0);
131 if ((res = poll(&pfd, 1, 0)) < 0)
133 report(num++, "2", POLLIN, pfd.revents, res, 1);
136 if ((res = poll(&pfd, 1, 0)) < 0)
138 report(num++, "2a", 0, pfd.revents, res, 0);
144 if ((res = poll(&pfd, 1, 0)) < 0)
146 report(num++, "3", POLLHUP, pfd.revents, res, 1);
159 if ((res = poll(&pfd, 1, 0)) < 0)
161 report(num++, "4", 0, pfd.revents, res, 0);
167 if ((res = poll(&pfd, 1, 0)) < 0)
169 report(num++, "5", POLLIN, pfd.revents, res, 1);
185 if ((res = poll(&pfd, 1, 0)) < 0)
187 report(num++, "6", POLLIN | POLLHUP, pfd.revents, res, 1);
190 if ((res = poll(&pfd, 1, 0)) < 0)
192 report(num++, "6a", POLLHUP, pfd.revents, res, 1);
201 pfd.fd = fd2;
202 if ((res = poll(&pfd, 1, 0)) < 0)
204 report(num++, "6b", POLLHUP, pfd.revents, res, 1);
205 pfd.fd = fd;
206 if ((res = poll(&pfd, 1, 0)) < 0)
208 report(num++, "6c", POLLHUP, pfd.revents, res, 1);
210 if ((res = poll(&pfd, 1, 0)) < 0)
212 report(num++, "6d", POLLHUP, pfd.revents, res, 1);