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