Searched refs:cpfds (Results 1 – 5 of 5) sorted by relevance
/curl/lib/ |
H A D | select.c | 405 DEBUGASSERT(cpfds); in Curl_pollfds_init() 406 memset(cpfds, 0, sizeof(*cpfds)); in Curl_pollfds_init() 415 DEBUGASSERT(cpfds); in Curl_pollfds_cleanup() 417 free(cpfds->pfds); in Curl_pollfds_cleanup() 419 memset(cpfds, 0, sizeof(*cpfds)); in Curl_pollfds_cleanup() 431 memcpy(new_fds, cpfds->pfds, cpfds->count * sizeof(struct pollfd)); in cpfds_increase() 454 if(cpfds->n >= cpfds->count) { in cpfds_add_sock() 458 cpfds->pfds[cpfds->n].fd = sock; in cpfds_add_sock() 459 cpfds->pfds[cpfds->n].events = events; in cpfds_add_sock() 460 ++cpfds->n; in cpfds_add_sock() [all …]
|
H A D | select.h | 121 void Curl_pollfds_init(struct curl_pollfds *cpfds, 125 void Curl_pollfds_cleanup(struct curl_pollfds *cpfds); 127 CURLcode Curl_pollfds_add_ps(struct curl_pollfds *cpfds, 130 CURLcode Curl_pollfds_add_sock(struct curl_pollfds *cpfds,
|
H A D | conncache.c | 891 struct curl_pollfds *cpfds) in cpool_add_pollfds() argument 908 result = Curl_pollfds_add_ps(cpfds, &ps); in cpool_add_pollfds() 910 Curl_pollfds_cleanup(cpfds); in cpool_add_pollfds() 920 struct curl_pollfds *cpfds) in Curl_cpool_add_pollfds() argument 924 result = cpool_add_pollfds(cpool, cpfds); in Curl_cpool_add_pollfds() 1118 struct curl_pollfds cpfds; in cpool_shutdown_wait() local 1121 Curl_pollfds_init(&cpfds, a_few_on_stack, NUM_POLLS_ON_STACK); in cpool_shutdown_wait() 1123 result = cpool_add_pollfds(cpool, &cpfds); in cpool_shutdown_wait() 1127 Curl_poll(cpfds.pfds, cpfds.n, CURLMIN(timeout_ms, 1000)); in cpool_shutdown_wait() 1130 Curl_pollfds_cleanup(&cpfds); in cpool_shutdown_wait()
|
H A D | multi.c | 1258 struct curl_pollfds cpfds; local 1316 for(i = 0; i < cpfds.n; i++) { 1318 if(cpfds.pfds[i].events & POLLIN) 1320 if(cpfds.pfds[i].events & POLLPRI) 1322 if(cpfds.pfds[i].events & POLLOUT) { 1355 if(cpfds.n || use_wakeup) { 1357 if(cpfds.n) { 1362 pollrc = Curl_poll(cpfds.pfds, cpfds.n, 0); 1366 pollrc = Curl_poll(cpfds.pfds, cpfds.n, timeout_ms); /* wait... */ 1472 if(extrawait && !cpfds.n) { [all …]
|
H A D | conncache.h | 187 struct curl_pollfds *cpfds);
|
Completed in 21 milliseconds