Lines Matching refs:pfd
54 struct pollfd *pfd;
117 pfd = &pollfd[i];
118 if ((pfd->fd = open(psinfofile, O_RDONLY)) >= 0) {
125 pfd->events = POLLPRI;
126 pfd->revents = 0;
144 pfd = &pollfd[i];
145 if (pfd->fd < 0 || (pfd->revents & ~POLLPRI) == 0) {
150 pfd->events = 0;
151 pfd->revents = 0;
157 if (pfd->revents & POLLHUP) {
160 if (pread(pfd->fd, &psinfo,
171 if (pfd->revents & POLLNVAL)
174 if (pfd->revents & ~(POLLPRI|POLLHUP|POLLNVAL))
179 (void) close(pfd->fd);
180 pfd->fd = -1;