Home
last modified time | relevance | path

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

/bionic/libc/upstream-netbsd/libc/gen/
Dutime.c52 struct timeval tv[2], *tvp; in utime() local
59 tv[0].tv_sec = times->actime; in utime()
60 tv[1].tv_sec = times->modtime; in utime()
61 tv[0].tv_usec = tv[1].tv_usec = 0; in utime()
62 tvp = tv; in utime()
/bionic/libc/bionic/
Dpselect.c38 struct timeval tv, *tv_timeout = NULL; in pselect() local
44 tv_timeout = &tv; in pselect()
45 tv.tv_sec = timeout->tv_sec; in pselect()
46 tv.tv_usec = (timeout->tv_nsec + 999)/1000; // round up in pselect()
47 if (tv.tv_usec >= 1000000) { in pselect()
48 tv.tv_sec += 1; in pselect()
49 tv.tv_usec -= 1000000; in pselect()
Dftime.c32 struct timeval tv; in ftime() local
35 if (gettimeofday (&tv, &tz) < 0) in ftime()
38 tb->time = tv.tv_sec; in ftime()
39 tb->millitm = (tv.tv_usec + 500) / 1000; in ftime()
Darc4random.c106 struct timeval tv; in arc4_stir() member
127 gettimeofday(&rdat.tv, NULL); in arc4_stir()
/bionic/libm/upstream-freebsd/lib/msun/src/
Ds_exp2f.c96 double tv, twopk, u, z; in exp2f() local
130 tv = exp2ft[i0]; in exp2f()
131 u = tv * z; in exp2f()
132 tv = tv + u * (P1 + z * P2) + u * (z * z) * (P3 + z * P4); in exp2f()
135 return (tv * twopk); in exp2f()
/bionic/libc/netbsd/resolv/
Dres_random.c182 struct timeval tv; in res_initid() local
226 gettimeofday(&tv, NULL); in res_initid()
227 ru_reseed = tv.tv_sec + RU_OUT; in res_initid()
234 struct timeval tv; in res_randomid() local
238 gettimeofday(&tv, NULL); in res_randomid()
239 if (ru_counter >= RU_MAX || tv.tv_sec > ru_reseed) in res_randomid()
Dres_send.c1317 struct timeval tv, *tvp; in pselect() local
1322 tvp = &tv; in pselect()
1323 tv = evTimeVal(*tsp); in pselect()
1332 *tsp = evTimeSpec(tv); in pselect()
Dres_cache.c368 struct timeval tv; in _time_now() local
370 gettimeofday( &tv, NULL ); in _time_now()
371 return tv.tv_sec; in _time_now()
/bionic/libc/upstream-netbsd/libc/isc/
Dev_timers.c167 evTimeSpec(struct timeval tv) { in evTimeSpec() argument
170 ts.tv_sec = tv.tv_sec; in evTimeSpec()
171 ts.tv_nsec = tv.tv_usec * 1000; in evTimeSpec()
177 struct timeval tv; in evTimeVal() local
179 tv.tv_sec = ts.tv_sec; in evTimeVal()
180 tv.tv_usec = (suseconds_t)(ts.tv_nsec / 1000); in evTimeVal()
181 return (tv); in evTimeVal()
/bionic/libc/kernel/common/linux/
Dktime.h35 } tv; member
/bionic/libc/include/
Dtime.h43 extern char *strtotimeval(const char *str, struct timeval *tv);