Lines Matching refs:pfd
351 pa_poll (struct pollfd *pfd, nfds_t nfd, int timeout)
384 if (!pfd && nfd)
419 if (pfd[i].fd < 0)
422 if (pfd[i].events & (POLLIN | POLLRDNORM))
423 FD_SET (pfd[i].fd, &rfds);
428 if (pfd[i].events & (POLLOUT | POLLWRNORM | POLLWRBAND))
429 FD_SET (pfd[i].fd, &wfds);
430 if (pfd[i].events & (POLLPRI | POLLRDBAND))
431 FD_SET (pfd[i].fd, &efds);
432 if (pfd[i].fd >= maxfd
433 && (pfd[i].events & (POLLIN | POLLOUT | POLLPRI
437 maxfd = pfd[i].fd;
454 if (pfd[i].fd < 0)
455 pfd[i].revents = 0;
458 int happened = compute_revents (pfd[i].fd, pfd[i].events,
462 pfd[i].revents = happened;
491 int sought = pfd[i].events;
492 pfd[i].revents = 0;
493 if (pfd[i].fd < 0)
499 h = HandleFromFd (pfd[i].fd);
531 pfd[i].revents = windows_compute_revents (h, &sought);
534 if (pfd[i].revents)
595 if (pfd[i].fd < 0)
597 if (!(pfd[i].events & (POLLIN | POLLRDNORM |
601 h = (HANDLE) HandleFromFd (pfd[i].fd);
608 if (!pa_is_fd_nonblock(pfd[i].fd))
609 pa_make_fd_block(pfd[i].fd);
621 happened = windows_compute_revents_socket ((SOCKET) h, pfd[i].events,
627 int sought = pfd[i].events;
632 if ((pfd[i].revents |= happened) != 0)