Home | History | Annotate | Download | only in lib

Lines Matching full:ufds

386 int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms)
403 if(ufds) {
405 if(ufds[i].fd != CURL_SOCKET_BAD) {
433 r = poll(ufds, nfds, pending_ms);
454 if(ufds[i].fd == CURL_SOCKET_BAD)
456 if(ufds[i].revents & POLLHUP)
457 ufds[i].revents |= POLLIN;
458 if(ufds[i].revents & POLLERR)
459 ufds[i].revents |= (POLLIN|POLLOUT);
470 ufds[i].revents = 0;
471 if(ufds[i].fd == CURL_SOCKET_BAD)
473 VERIFY_SOCK(ufds[i].fd);
474 if(ufds[i].events & (POLLIN|POLLOUT|POLLPRI|
476 if(ufds[i].fd > maxfd)
477 maxfd = ufds[i].fd;
478 if(ufds[i].events & (POLLRDNORM|POLLIN))
479 FD_SET(ufds[i].fd, &fds_read);
480 if(ufds[i].events & (POLLWRNORM|POLLOUT))
481 FD_SET(ufds[i].fd, &fds_write);
482 if(ufds[i].events & (POLLRDBAND|POLLPRI))
483 FD_SET(ufds[i].fd, &fds_err);
542 ufds[i].revents = 0;
543 if(ufds[i].fd == CURL_SOCKET_BAD)
545 if(FD_ISSET(ufds[i].fd, &fds_read))
546 ufds[i].revents |= POLLIN;
547 if(FD_ISSET(ufds[i].fd, &fds_write))
548 ufds[i].revents |= POLLOUT;
549 if(FD_ISSET(ufds[i].fd, &fds_err))
550 ufds[i].revents |= POLLPRI;
551 if(ufds[i].revents != 0)