Lines Matching defs:pfd
71 struct pollfd pfd[2];
73 pfd[0].fd = s->fd;
74 pfd[0].events = POLLOUT;
75 pfd[0].revents = 0;
76 pfd[1].fd = s->abort_fd[0];
77 pfd[1].events = POLLIN;
78 pfd[1].revents = 0;
81 ret = poll(pfd, 2, timeout);
92 if (pfd[1].revents) {
98 if (pfd[0].revents) {
99 if (pfd[0].revents & POLLOUT) {
123 struct pollfd pfd[2];
125 pfd[0].fd = s->fd;
126 pfd[0].events = POLLIN;
127 pfd[0].revents = 0;
128 pfd[1].fd = s->abort_fd[0];
129 pfd[1].events = POLLIN;
130 pfd[1].revents = 0;
133 ret = poll(pfd, 2, timeout);
144 if (pfd[1].revents) {
150 if (pfd[0].revents) {
151 if (pfd[0].revents & POLLIN) {
168 struct pollfd pfd[2];
170 pfd[0].fd = s->fd;
171 pfd[0].events = POLLIN;
172 pfd[0].revents = 0;
173 pfd[1].fd = s->abort_fd[0];
174 pfd[1].events = POLLIN;
175 pfd[1].revents = 0;
178 ret = poll(pfd, 2, timeout);
189 if (pfd[1].revents) {
195 if (pfd[0].revents) {
196 if (pfd[0].revents & POLLIN) {
214 struct pollfd pfd[2];
216 pfd[0].fd = s->fd;
217 pfd[0].events = POLLOUT;
218 pfd[0].revents = 0;
219 pfd[1].fd = s->abort_fd[0];
220 pfd[1].events = POLLIN;
221 pfd[1].revents = 0;
224 ret = poll(pfd, 2, timeout);
235 if (pfd[1].revents) {
241 if (pfd[0].revents) {
242 if (pfd[0].revents & POLLOUT) {