Lines Matching refs:pfd
71 struct pollfd pfd[2];
86 memset(pfd, 0, sizeof(pfd));
87 pfd[0].events = pfd[1].events = POLLIN;
130 pfd[1].fd = fds[1];
136 xpoll(pfd, 1+(active && yy<height), then-now);
137 if (pfd[0].revents&POLLIN) {
144 if (pfd[0].revents&POLLHUP) xexit();
146 if (pfd[1].revents&POLLIN) len = read(fds[1], toybuf, sizeof(toybuf)-1);
147 if (pfd[1].revents&POLLHUP) active = 0;