Lines Matching refs:i

279   unsigned int i;  in Curl_poll()  local
283 for(i = 0; i < nfds; i++) { in Curl_poll()
284 if(ufds[i].fd != CURL_SOCKET_BAD) { in Curl_poll()
321 for(i = 0; i < nfds; i++) { in Curl_poll()
322 if(ufds[i].fd == CURL_SOCKET_BAD) in Curl_poll()
324 if(ufds[i].revents & POLLHUP) in Curl_poll()
325 ufds[i].revents |= POLLIN; in Curl_poll()
326 if(ufds[i].revents & POLLERR) in Curl_poll()
327 ufds[i].revents |= POLLIN|POLLOUT; in Curl_poll()
337 for(i = 0; i < nfds; i++) { in Curl_poll()
338 ufds[i].revents = 0; in Curl_poll()
339 if(ufds[i].fd == CURL_SOCKET_BAD) in Curl_poll()
341 VERIFY_SOCK(ufds[i].fd); in Curl_poll()
342 if(ufds[i].events & (POLLIN|POLLOUT|POLLPRI| in Curl_poll()
344 if(ufds[i].fd > maxfd) in Curl_poll()
345 maxfd = ufds[i].fd; in Curl_poll()
346 if(ufds[i].events & (POLLRDNORM|POLLIN)) in Curl_poll()
347 FD_SET(ufds[i].fd, &fds_read); in Curl_poll()
348 if(ufds[i].events & (POLLWRNORM|POLLOUT)) in Curl_poll()
349 FD_SET(ufds[i].fd, &fds_write); in Curl_poll()
350 if(ufds[i].events & (POLLRDBAND|POLLPRI)) in Curl_poll()
351 FD_SET(ufds[i].fd, &fds_err); in Curl_poll()
370 for(i = 0; i < nfds; i++) { in Curl_poll()
371 ufds[i].revents = 0; in Curl_poll()
372 if(ufds[i].fd == CURL_SOCKET_BAD) in Curl_poll()
374 if(FD_ISSET(ufds[i].fd, &fds_read)) { in Curl_poll()
375 if(ufds[i].events & POLLRDNORM) in Curl_poll()
376 ufds[i].revents |= POLLRDNORM; in Curl_poll()
377 if(ufds[i].events & POLLIN) in Curl_poll()
378 ufds[i].revents |= POLLIN; in Curl_poll()
380 if(FD_ISSET(ufds[i].fd, &fds_write)) { in Curl_poll()
381 if(ufds[i].events & POLLWRNORM) in Curl_poll()
382 ufds[i].revents |= POLLWRNORM; in Curl_poll()
383 if(ufds[i].events & POLLOUT) in Curl_poll()
384 ufds[i].revents |= POLLOUT; in Curl_poll()
386 if(FD_ISSET(ufds[i].fd, &fds_err)) { in Curl_poll()
387 if(ufds[i].events & POLLRDBAND) in Curl_poll()
388 ufds[i].revents |= POLLRDBAND; in Curl_poll()
389 if(ufds[i].events & POLLPRI) in Curl_poll()
390 ufds[i].revents |= POLLPRI; in Curl_poll()
392 if(ufds[i].revents) in Curl_poll()
443 int i; in cpfds_add_sock() local
446 for(i = (int)cpfds->n - 1; i >= 0; --i) { in cpfds_add_sock()
447 if(sock == cpfds->pfds[i].fd) { in cpfds_add_sock()
448 cpfds->pfds[i].events |= events; in cpfds_add_sock()
473 size_t i; in Curl_pollfds_add_ps() local
477 for(i = 0; i < ps->num; i++) { in Curl_pollfds_add_ps()
479 if(ps->actions[i] & CURL_POLL_IN) in Curl_pollfds_add_ps()
481 if(ps->actions[i] & CURL_POLL_OUT) in Curl_pollfds_add_ps()
484 if(cpfds_add_sock(cpfds, ps->sockets[i], events, TRUE)) in Curl_pollfds_add_ps()
505 int i; in cwfds_add_sock() local
508 for(i = (int)cwfds->n - 1; i >= 0; --i) { in cwfds_add_sock()
509 if(sock == cwfds->wfds[i].fd) { in cwfds_add_sock()
510 cwfds->wfds[i].events |= events; in cwfds_add_sock()
527 size_t i; in Curl_waitfds_add_ps() local
531 for(i = 0; i < ps->num; i++) { in Curl_waitfds_add_ps()
533 if(ps->actions[i] & CURL_POLL_IN) in Curl_waitfds_add_ps()
535 if(ps->actions[i] & CURL_POLL_OUT) in Curl_waitfds_add_ps()
538 if(cwfds_add_sock(cwfds, ps->sockets[i], events)) in Curl_waitfds_add_ps()