Lines Matching refs:pfd
348 #define WAIT_FD(i) (pfd[i].fd)
355 struct pollfd *pfd = NULL;
368 pfd = (struct pollfd *) malloc(PFD_STEP * sizeof(struct pollfd));
369 if (pfd == NULL)
439 pfd[nfd].fd = RD_PIPE;
440 pfd[nfd].events = MI_POLL_RD_FLAGS;
441 pfd[nfd].revents = 0;
471 realloc(pfd, new);
474 pfd = tpfd;
489 pfd[nfd].fd = ctx->ctx_sd;
490 pfd[nfd].events = MI_POLL_RD_FLAGS;
491 pfd[nfd].revents = 0;
502 r = poll(pfd, nfd, POLL_TIMEOUT);
533 if (pfd[i].revents == 0)
536 POOL_LEV_DPRINTF(4, ("%s event on pfd[%d/%d]=%d ",
548 pfd[i].events, pfd[i].revents));
551 while ((pfd[i].revents & MI_POLL_RD_FLAGS) != 0
561 if ((pfd[i].revents & ~MI_POLL_RD_FLAGS) != 0)
583 if (ctx->ctx_sd == pfd[i].fd)
612 if (pfd != NULL)
613 free(pfd);