Home
last modified time | relevance | path

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

/sysdeps/generic/
A Dhp-timing.h37 struct timespec tv; \
38 clock_gettime (CLOCK_MONOTONIC, &tv); \
39 (var) = (tv.tv_nsec + UINT64_C(1000000000) * tv.tv_sec); \
44 struct __timespec64 tv; \
45 __clock_gettime64 (CLOCK_MONOTONIC, &tv); \
46 (var) = (tv.tv_nsec + UINT64_C(1000000000) * tv.tv_sec); \
/sysdeps/unix/sysv/linux/
A Dsettimeofday.c26 __settimeofday64 (const struct __timeval64 *tv, const struct timezone *tz) in __settimeofday64() argument
31 if (tv != 0) in __settimeofday64()
39 struct __timespec64 ts = timeval64_to_timespec64 (*tv); in __settimeofday64()
47 __settimeofday (const struct timeval *tv, const struct timezone *tz) in libc_hidden_def()
49 if (__glibc_unlikely (tv == NULL)) in libc_hidden_def()
53 struct __timeval64 tv64 = valid_timeval_to_timeval64 (*tv); in libc_hidden_def()
A Dgettimeofday.c32 __gettimeofday_syscall (struct timeval *restrict tv, void *restrict tz) in __gettimeofday_syscall() argument
36 return INLINE_SYSCALL_CALL (gettimeofday, tv, tz); in __gettimeofday_syscall()
48 __gettimeofday (struct timeval *restrict tv, void *restrict tz)
53 return INLINE_VSYSCALL (gettimeofday, 2, tv, tz);
63 __gettimeofday64 (struct __timeval64 *restrict tv, void *restrict tz)
72 *tv = timespec64_to_timeval64 (ts64);
80 __gettimeofday (struct timeval *restrict tv, void *restrict tz)
92 *tv = valid_timeval64_to_timeval (tv64);
A Dtst-gettimeofday-clobber.c30 struct timeval tv; in do_test() local
31 gettimeofday (&tv, NULL); in do_test()
A Dtest-errno-linux.c147 struct timeval tv; in do_test() local
200 fails |= test_wrp (EINVAL, select, -1, &rs, &ws, &es, &tv); in do_test()
/sysdeps/pthread/
A Dtst-robust3.c10 struct timeval tv; \
11 gettimeofday (&tv, NULL); \
14 tmo.tv_sec = tv.tv_sec + 3600; \
A Dtst-cond9.c48 struct timeval tv; in tf() local
49 (void) gettimeofday (&tv, NULL); in tf()
52 TIMEVAL_TO_TIMESPEC (&tv, &ts); in tf()
95 struct timeval tv; in do_test() local
96 (void) gettimeofday (&tv, NULL); in do_test()
99 TIMEVAL_TO_TIMESPEC (&tv, &ts); in do_test()
A Dtst-sem10.c37 struct timeval tv; in do_test() local
38 if (gettimeofday (&tv, NULL) != 0) in do_test()
45 TIMEVAL_TO_TIMESPEC (&tv, &ts); in do_test()
A Dtst-cond5.c37 struct timeval tv; in do_test() local
65 if (gettimeofday (&tv, NULL) != 0) in do_test()
71 TIMEVAL_TO_TIMESPEC (&tv, &ts); in do_test()
A Dtst-cancel14.c58 struct timeval tv; in tf() local
59 (void) gettimeofday (&tv, NULL); in tf()
62 TIMEVAL_TO_TIMESPEC (&tv, &ts); in tf()
A Dtst-cancel15.c60 struct timeval tv; in tf() local
61 (void) gettimeofday (&tv, NULL); in tf()
64 TIMEVAL_TO_TIMESPEC (&tv, &ts); in tf()
A Dtst-kill2.c58 struct timeval tv; in tf() local
59 (void) gettimeofday (&tv, NULL); in tf()
61 TIMEVAL_TO_TIMESPEC (&tv, &ts); in tf()
A Dtst-kill3.c73 struct timeval tv; in tf() local
74 (void) gettimeofday (&tv, NULL); in tf()
76 TIMEVAL_TO_TIMESPEC (&tv, &ts); in tf()
A Dtst-cond20.c44 struct timeval tv; in tf() local
45 gettimeofday (&tv, NULL); in tf()
48 ts.tv_sec = tv.tv_sec + 3; in tf()
49 ts.tv_nsec = tv.tv_usec * 1000; in tf()
A Dtst-cond15.c56 struct timeval tv; in tf() local
57 gettimeofday (&tv, NULL); in tf()
59 TIMEVAL_TO_TIMESPEC (&tv, &ts); in tf()
A Dtst-cond6.c146 struct timeval tv; in do_test() local
160 if (gettimeofday (&tv, NULL) != 0) in do_test()
166 TIMEVAL_TO_TIMESPEC (&tv, &ts); in do_test()
A Dtst-cond8.c129 struct timeval tv; in tf2() local
130 (void) gettimeofday (&tv, NULL); in tf2()
133 TIMEVAL_TO_TIMESPEC (&tv, &ts); in tf2()
/sysdeps/mach/hurd/
A Dgetitimer.c66 time_value_t tv; in __getitimer() local
67 __host_get_time (__mach_host_self (), &tv); in __getitimer()
68 elapsed.tv_sec = tv.seconds; in __getitimer()
69 elapsed.tv_usec = tv.microseconds; in __getitimer()
A Dclock_settime.c31 time_value_t tv; in __clock_settime() local
41 TIMESPEC_TO_TIME_VALUE (&tv, ts); in __clock_settime()
42 err = __host_set_time (hostpriv, tv); in __clock_settime()
A Dsetitimer.c41 quantize_timeval (struct timeval *tv) in quantize_timeval() argument
48 tv->tv_usec = ((tv->tv_usec + (quantum - 1)) / quantum) * quantum; in quantize_timeval()
49 if (tv->tv_usec >= 1000000) in quantize_timeval()
51 ++tv->tv_sec; in quantize_timeval()
52 tv->tv_usec -= 1000000; in quantize_timeval()
249 time_value_t tv; in setitimer_locked() local
250 __host_get_time (__mach_host_self (), &tv); in setitimer_locked()
251 now.tv_sec = tv.seconds; in setitimer_locked()
252 now.tv_usec = tv.microseconds; in setitimer_locked()
/sysdeps/mach/
A Dclock_gettime.c40 time_value_t tv; in __clock_gettime() local
41 __host_get_time (__mach_host_self (), &tv); in __clock_gettime()
42 TIME_VALUE_TO_TIMESPEC (&tv, ts); in __clock_gettime()
/sysdeps/posix/
A Dtempname.c89 struct __timespec64 tv; in random_bits() local
90 __clock_gettime64 (CLOCK_MONOTONIC, &tv); in random_bits()
91 var ^= tv.tv_nsec; in random_bits()

Completed in 14 milliseconds