Lines Matching refs:pfd
304 #define WAIT_FD(i) (pfd[i].fd)
311 struct pollfd *pfd = NULL;
324 pfd = (struct pollfd *) malloc(PFD_STEP * sizeof(struct pollfd));
325 if (pfd == NULL)
395 pfd[nfd].fd = RD_PIPE;
396 pfd[nfd].events = MI_POLL_RD_FLAGS;
397 pfd[nfd].revents = 0;
427 realloc(pfd, new);
430 pfd = tpfd;
445 pfd[nfd].fd = ctx->ctx_sd;
446 pfd[nfd].events = MI_POLL_RD_FLAGS;
447 pfd[nfd].revents = 0;
458 rfd = poll(pfd, nfd, POLL_TIMEOUT);
488 if (pfd[i].revents == 0)
491 POOL_LEV_DPRINTF(4, ("%s event on pfd[%d/%d]=%d ",
503 pfd[i].events, pfd[i].revents));
505 if ((pfd[i].revents & MI_POLL_RD_FLAGS) != 0)
518 if ((pfd[i].revents & ~MI_POLL_RD_FLAGS) != 0)
535 if (ctx->ctx_sd == pfd[i].fd)
565 if (pfd != NULL)
566 free(pfd);