Lines Matching full:pfd
91 struct pollfd pfd; in child() local
100 pfd.fd = fd; in child()
101 pfd.events = POLLIN; in child()
104 if ((res = poll(&pfd, 1, 0)) < 0) in child()
106 report(num++, "0", 0, pfd.revents, res, 0); in child()
122 if ((res = poll(&pfd, 1, 0)) < 0) in child()
124 report(num++, "1", 0, pfd.revents, res, 0); in child()
130 if ((res = poll(&pfd, 1, 0)) < 0) in child()
132 report(num++, "2", POLLIN, pfd.revents, res, 1); in child()
135 if ((res = poll(&pfd, 1, 0)) < 0) in child()
137 report(num++, "2a", 0, pfd.revents, res, 0); in child()
143 if ((res = poll(&pfd, 1, 0)) < 0) in child()
145 report(num++, "3", POLLHUP, pfd.revents, res, 1); in child()
158 if ((res = poll(&pfd, 1, 0)) < 0) in child()
160 report(num++, "4", 0, pfd.revents, res, 0); in child()
166 if ((res = poll(&pfd, 1, 0)) < 0) in child()
168 report(num++, "5", POLLIN, pfd.revents, res, 1); in child()
184 if ((res = poll(&pfd, 1, 0)) < 0) in child()
186 report(num++, "6", POLLIN | POLLHUP, pfd.revents, res, 1); in child()
189 if ((res = poll(&pfd, 1, 0)) < 0) in child()
191 report(num++, "6a", POLLHUP, pfd.revents, res, 1); in child()
200 pfd.fd = fd2; in child()
201 if ((res = poll(&pfd, 1, 0)) < 0) in child()
203 report(num++, "6b", POLLHUP, pfd.revents, res, 1); in child()
204 pfd.fd = fd; in child()
205 if ((res = poll(&pfd, 1, 0)) < 0) in child()
207 report(num++, "6c", POLLHUP, pfd.revents, res, 1); in child()
209 if ((res = poll(&pfd, 1, 0)) < 0) in child()
211 report(num++, "6d", POLLHUP, pfd.revents, res, 1); in child()