Lines Matching refs:pfds
391 struct pollfd pfds[2];
429 pfds[0].fd = STDIN_FILENO;
430 pfds[0].events = POLLIN;
431 pfds[1].fd = fd;
432 pfds[1].events = POLLIN;
436 ret = poll(pfds, 2, -1);
441 if (pfds[0].revents & POLLHUP) {
445 if (pfds[1].revents & POLLHUP) {
450 if (pfds[0].revents & POLLIN) {
455 if (pfds[1].revents & POLLIN) {