Lines Matching defs:pollfd
73 struct pollfd pollfd[2] = {};
113 pollfd[POLL_SOCKET].fd = fd;
114 pollfd[POLL_SOCKET].events = POLLIN;
115 pollfd[POLL_INOTIFY].fd = notify;
116 pollfd[POLL_INOTIFY].events = POLLIN;
139 j = poll(pollfd, notify >= 0 ? 2 : 1, sleep_for);
151 if (notify >= 0 && pollfd[POLL_INOTIFY].revents != 0)
154 if (pollfd[POLL_SOCKET].revents == 0)
513 struct pollfd pollfd[_FD_MAX] = {};
536 pollfd[FD_INOTIFY].fd = notify;
537 pollfd[FD_INOTIFY].events = POLLIN;
538 pollfd[FD_SIGNAL].fd = signal_fd;
539 pollfd[FD_SIGNAL].events = POLLIN;
546 if (poll(pollfd, _FD_MAX, -1) < 0) {
553 if (pollfd[FD_INOTIFY].revents != 0)
556 if (pollfd[FD_SIGNAL].revents != 0)