Lines Matching refs:pfd
464 struct pollfd *pfd; /* Current pollfd structure */
535 pfd = realloc(cupsd_pollfds, allocfds * sizeof(struct pollfd));
537 pfd = malloc(allocfds * sizeof(struct pollfd));
539 if (!pfd)
548 cupsd_pollfds = pfd;
556 for (fdptr = (_cupsd_fd_t *)cupsArrayFirst(cupsd_fds), pfd = cupsd_pollfds;
558 fdptr = (_cupsd_fd_t *)cupsArrayNext(cupsd_fds), pfd ++)
560 pfd->fd = fdptr->fd;
561 pfd->events = 0;
564 pfd->events |= POLLIN;
567 pfd->events |= POLLOUT;
582 for (pfd = cupsd_pollfds; count > 0; pfd ++, count --)
584 if (!pfd->revents)
587 if ((fdptr = find_fd(pfd->fd)) == NULL)
592 if (fdptr->read_cb && (pfd->revents & (POLLIN | POLLERR | POLLHUP)))
596 (pfd->revents & (POLLOUT | POLLERR | POLLHUP)))