Lines Matching refs:pollfd
179 struct pollfd pollfd;
182 pollfd.fd = wl_display_get_fd(display.display);
183 pollfd.events = POLLIN;
184 pollfd.revents = 0;
189 if (!(pollfd.events & POLLOUT)) {
205 pollfd.events |= POLLOUT; /* need to wait until we can flush */
207 pollfd.events &= ~POLLOUT; /* successfully flushed */
209 if (poll(&pollfd, 1, -1) == -1)
212 if (pollfd.revents & (POLLERR | POLLHUP))
215 if (pollfd.events & POLLOUT) {
216 if (!(pollfd.revents & POLLOUT))
218 pollfd.events &= ~POLLOUT;
221 if (pollfd.revents & POLLIN) {
231 pollfd.events |= POLLOUT; /* need to wait until we can flush */
233 pollfd.events &= ~POLLOUT; /* successfully flushed */