Lines Matching refs:ufds

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