Lines Matching refs:pfd
425 struct pollfd * pfd = (struct pollfd *)calloc(sizeof(struct pollfd),
427 if (!pfd)
430 pfd[0].fd = sndmonitor.intpipe[0];
431 pfd[0].events = POLLPRI|POLLIN;
437 pfd[i].fd = s->fd;
438 pfd[i].events = POLLPRI;
444 pfd[i].fd = d->fd;
445 pfd[i].events = POLLPRI;
450 if (poll(pfd, num_poll_fds, -1) < 0) {
471 if (READY_TO_READ(&pfd[0])) {
473 read(pfd[0].fd, buf, 1);
476 } else if (ERROR_IN_FD(&pfd[0])) {
482 pfd[0].revents);
483 pfd[0].fd *= -1;
489 if (READY_TO_READ(&pfd[i]))
491 else if (ERROR_IN_FD(&pfd[i])) {
497 pfd[i].revents);
498 pfd[i].fd *= -1;
505 if (READY_TO_READ(&pfd[i]))
507 else if (ERROR_IN_FD(&pfd[i])) {
513 pfd[i].revents);
514 pfd[i].fd *= -1;