Lines Matching refs:pollfd
41 struct pollfd pollfd[2];
45 pollfd[0].fd = uffd;
46 pollfd[0].events = POLLIN;
47 pollfd[1].fd = pipefd;
48 pollfd[1].events = POLLIN;
50 r = poll(pollfd, 2, -1);
64 if (pollfd[0].revents & POLLERR) {
69 if (pollfd[1].revents & POLLIN) {
70 r = read(pollfd[1].fd, &tmp_chr, 1);
76 if (!(pollfd[0].revents & POLLIN))