Home
last modified time | relevance | path

Searched refs:tv (Results 1 – 19 of 19) sorted by relevance

/curl/lib/
H A Dtimediff.c39 if(!tv) in curlx_mstotv()
54 tv->tv_sec = (time_t)tv_sec; in curlx_mstotv()
55 tv->tv_usec = (suseconds_t)tv_usec; in curlx_mstotv()
62 tv->tv_sec = (long)tv_sec; in curlx_mstotv()
63 tv->tv_usec = (long)tv_usec; in curlx_mstotv()
70 tv->tv_sec = (int)tv_sec; in curlx_mstotv()
71 tv->tv_usec = (int)tv_usec; in curlx_mstotv()
75 tv->tv_sec = 0; in curlx_mstotv()
76 tv->tv_usec = 0; in curlx_mstotv()
79 return tv; in curlx_mstotv()
[all …]
H A Dtimediff.h45 struct timeval *curlx_mstotv(struct timeval *tv, timediff_t ms);
50 timediff_t curlx_tvtoms(struct timeval *tv);
H A Dcurl_rtmp.c46 #define SET_RCVTIMEO(tv,s) int tv = s*1000 argument
48 #define SET_RCVTIMEO(tv,s) int tv = s*1000 argument
50 #define SET_RCVTIMEO(tv,s) struct timeval tv = {s,0} argument
235 SET_RCVTIMEO(tv, 10); in rtmp_connect()
252 (char *)&tv, sizeof(tv)); in rtmp_connect()
H A Dopenldap.c733 struct timeval tv = {0, 0}; in oldap_connecting() local
739 rc = ldap_result(li->ld, li->msgid, LDAP_MSG_ONE, &tv, &msg); in oldap_connecting()
988 struct timeval tv = {0, 0}; in oldap_recv() local
999 rc = ldap_result(li->ld, lr->msgid, LDAP_MSG_ONE, &tv, &msg); in oldap_recv()
H A Dasyn-ares.c470 struct timeval *tvp, tv, store; in Curl_resolver_wait_resolv() local
483 tvp = ares_timeout((ares_channel)data->state.async.resolver, &store, &tv); in Curl_resolver_wait_resolv()
H A Dmulti.c3069 struct curltime *tv = &d->state.expiretime; local
3092 tv->tv_sec = 0;
3093 tv->tv_usec = 0;
3098 memcpy(tv, &node->time, sizeof(*tv));
3102 multi->timetree = Curl_splayinsert(*tv, multi->timetree,
/curl/tests/libtest/
H A Dtesttrace.c94 struct timeval tv; in libtest_debug_cb() local
106 tv = tutil_tvnow(); in libtest_debug_cb()
108 epoch_offset = time(NULL) - tv.tv_sec; in libtest_debug_cb()
111 secs = epoch_offset + tv.tv_sec; in libtest_debug_cb()
114 now->tm_hour, now->tm_min, now->tm_sec, (long)tv.tv_usec); in libtest_debug_cb()
H A Dlib582.c302 struct timeval tv = {10, 0}; in test() local
311 tv.tv_sec = usTimeout / 1000000; in test()
312 tv.tv_usec = usTimeout % 1000000; in test()
315 tv.tv_sec = 0; in test()
316 tv.tv_usec = 100000; in test()
319 select_test((int)maxFd, &readSet, &writeSet, NULL, &tv); in test()
H A Dfirst.c47 struct timeval *tv) in select_wrapper() argument
60 Sleep((DWORD)curlx_tvtoms(tv)); in select_wrapper()
64 return select(nfds, rd, wr, exc, tv); in select_wrapper()
H A Dlib530.c306 struct timeval tv = {10, 0}; in testone() local
315 tv.tv_sec = usTimeout / 1000000; in testone()
316 tv.tv_usec = usTimeout % 1000000; in testone()
319 tv.tv_sec = 0; in testone()
320 tv.tv_usec = 100000; in testone()
324 select_test((int)maxFd, &readSet, &writeSet, NULL, &tv); in testone()
H A Dtest.h69 struct timeval *tv);
/curl/docs/examples/
H A Dsendrecv.c36 struct timeval tv; in wait_on_socket() local
40 tv.tv_sec = timeout_ms / 1000; in wait_on_socket()
41 tv.tv_usec = (int)(timeout_ms % 1000) * 1000; in wait_on_socket()
73 res = select((int)sockfd + 1, &infd, &outfd, &errfd, &tv); in wait_on_socket()
H A Dmulti-event.c159 struct timeval tv; in start_timeout() local
160 tv.tv_sec = timeout_ms / 1000; in start_timeout()
161 tv.tv_usec = (timeout_ms % 1000) * 1000; in start_timeout()
163 evtimer_add(timeout, &tv); in start_timeout()
H A Dhttp2-upload.c140 struct timeval tv; in my_trace() local
145 gettimeofday(&tv, NULL); in my_trace()
147 epoch_offset = time(NULL) - tv.tv_sec; in my_trace()
150 secs = epoch_offset + tv.tv_sec; in my_trace()
153 now->tm_hour, now->tm_min, now->tm_sec, (long)tv.tv_usec); in my_trace()
/curl/src/
H A Dtool_cb_dbg.c98 struct timeval tv; in tool_debug_cb() local
111 tv = tvnow(); in tool_debug_cb()
113 hms_for_sec(tv.tv_sec), (long)tv.tv_usec); in tool_debug_cb()
/curl/tests/server/
H A Dutil.c89 struct timeval tv; in logmsg() local
101 tv = tvnow(); in logmsg()
103 epoch_offset = time(NULL) - tv.tv_sec; in logmsg()
106 sec = epoch_offset + tv.tv_sec; in logmsg()
112 (long)tv.tv_usec); in logmsg()
H A Dsockfilt.c634 fd_set *exceptfds, struct timeval *tv) in select_ws() argument
652 if(tv) { in select_ws()
653 timeout_ms = (DWORD)curlx_tvtoms(tv); in select_ws()
757 tv->tv_sec = 0; in select_ws()
758 tv->tv_usec = 0; in select_ws()
760 if(select(fd + 1, &readsock, &writesock, &exceptsock, tv) == 1) { in select_ws()
/curl/lib/vquic/
H A Dcurl_osslq.c1633 struct timeval tv; in check_and_set_expiry() local
1638 SSL_get_event_timeout(ctx->tls.ossl.ssl, &tv, &is_infinite) && in check_and_set_expiry()
1640 timeoutms = curlx_tvtoms(&tv); in check_and_set_expiry()
1649 if(SSL_get_event_timeout(ctx->tls.ossl.ssl, &tv, &is_infinite)) { in check_and_set_expiry()
1650 timeoutms = curlx_tvtoms(&tv); in check_and_set_expiry()
/curl/lib/vtls/
H A Dopenssl.c1046 struct curltime tv = Curl_now(); in ossl_seed() local
1048 tv.tv_sec *= (time_t)i + 1; in ossl_seed()
1049 tv.tv_usec *= (int)i + 2; in ossl_seed()
1050 tv.tv_sec ^= ((Curl_now().tv_sec + (time_t)Curl_now().tv_usec) * in ossl_seed()
1052 tv.tv_usec ^= (int) ((Curl_now().tv_sec + (time_t)Curl_now().tv_usec) * in ossl_seed()
1054 memcpy(&randb[i * sizeof(struct curltime)], &tv, in ossl_seed()

Completed in 68 milliseconds