Lines Matching refs:r
72 int r = 0; in Curl_wait_ms() local
95 r = select(0, NULL, NULL, NULL, curlx_mstotv(&pending_tv, timeout_ms)); in Curl_wait_ms()
98 if(r) { in Curl_wait_ms()
99 if((r == -1) && (SOCKERRNO == EINTR)) in Curl_wait_ms()
101 r = 0; in Curl_wait_ms()
103 r = -1; in Curl_wait_ms()
105 return r; in Curl_wait_ms()
192 int r; in Curl_socket_check() local
225 r = Curl_poll(pfd, (unsigned int)num, timeout_ms); in Curl_socket_check()
226 if(r <= 0) in Curl_socket_check()
227 return r; in Curl_socket_check()
229 r = 0; in Curl_socket_check()
233 r |= CURL_CSELECT_IN; in Curl_socket_check()
235 r |= CURL_CSELECT_ERR; in Curl_socket_check()
240 r |= CURL_CSELECT_IN2; in Curl_socket_check()
242 r |= CURL_CSELECT_ERR; in Curl_socket_check()
247 r |= CURL_CSELECT_OUT; in Curl_socket_check()
249 r |= CURL_CSELECT_ERR; in Curl_socket_check()
252 return r; in Curl_socket_check()
280 int r; in Curl_poll() local
313 r = poll(ufds, nfds, pending_ms); in Curl_poll()
314 if(r <= 0) { in Curl_poll()
315 if((r == -1) && (SOCKERRNO == EINTR)) in Curl_poll()
317 r = 0; in Curl_poll()
318 return r; in Curl_poll()
361 r = our_select(maxfd, &fds_read, &fds_write, &fds_err, timeout_ms); in Curl_poll()
362 if(r <= 0) { in Curl_poll()
363 if((r == -1) && (SOCKERRNO == EINTR)) in Curl_poll()
365 r = 0; in Curl_poll()
366 return r; in Curl_poll()
369 r = 0; in Curl_poll()
393 r++; in Curl_poll()
398 return r; in Curl_poll()