Lines Matching full:pfd
348 #define WAIT_FD(i) (pfd[i].fd)
355 struct pollfd *pfd = NULL; local
368 pfd = (struct pollfd *) malloc(PFD_STEP * sizeof(struct pollfd));
369 if (pfd == NULL)
437 pfd[nfd].fd = RD_PIPE;
438 pfd[nfd].events = MI_POLL_RD_FLAGS;
439 pfd[nfd].revents = 0;
469 realloc(pfd, new);
472 pfd = tpfd;
487 pfd[nfd].fd = ctx->ctx_sd;
488 pfd[nfd].events = MI_POLL_RD_FLAGS;
489 pfd[nfd].revents = 0;
500 r = poll(pfd, nfd, POLL_TIMEOUT);
531 if (pfd[i].revents == 0)
534 POOL_LEV_DPRINTF(4, ("%s event on pfd[%d/%d]=%d ",
546 pfd[i].events, pfd[i].revents));
549 while ((pfd[i].revents & MI_POLL_RD_FLAGS) != 0
559 if ((pfd[i].revents & ~MI_POLL_RD_FLAGS) != 0)
581 if (ctx->ctx_sd == pfd[i].fd)
610 if (pfd != NULL)
611 free(pfd);