/sysdeps/generic/ |
A D | hp-timing.h | 37 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 D | settimeofday.c | 26 __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 D | gettimeofday.c | 32 __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 D | tst-gettimeofday-clobber.c | 30 struct timeval tv; in do_test() local 31 gettimeofday (&tv, NULL); in do_test()
|
A D | test-errno-linux.c | 147 struct timeval tv; in do_test() local 200 fails |= test_wrp (EINVAL, select, -1, &rs, &ws, &es, &tv); in do_test()
|
/sysdeps/pthread/ |
A D | tst-robust3.c | 10 struct timeval tv; \ 11 gettimeofday (&tv, NULL); \ 14 tmo.tv_sec = tv.tv_sec + 3600; \
|
A D | tst-cond9.c | 48 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 D | tst-sem10.c | 37 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 D | tst-cond5.c | 37 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 D | tst-cancel14.c | 58 struct timeval tv; in tf() local 59 (void) gettimeofday (&tv, NULL); in tf() 62 TIMEVAL_TO_TIMESPEC (&tv, &ts); in tf()
|
A D | tst-cancel15.c | 60 struct timeval tv; in tf() local 61 (void) gettimeofday (&tv, NULL); in tf() 64 TIMEVAL_TO_TIMESPEC (&tv, &ts); in tf()
|
A D | tst-kill2.c | 58 struct timeval tv; in tf() local 59 (void) gettimeofday (&tv, NULL); in tf() 61 TIMEVAL_TO_TIMESPEC (&tv, &ts); in tf()
|
A D | tst-kill3.c | 73 struct timeval tv; in tf() local 74 (void) gettimeofday (&tv, NULL); in tf() 76 TIMEVAL_TO_TIMESPEC (&tv, &ts); in tf()
|
A D | tst-cond20.c | 44 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 D | tst-cond15.c | 56 struct timeval tv; in tf() local 57 gettimeofday (&tv, NULL); in tf() 59 TIMEVAL_TO_TIMESPEC (&tv, &ts); in tf()
|
A D | tst-cond6.c | 146 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 D | tst-cond8.c | 129 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 D | getitimer.c | 66 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 D | clock_settime.c | 31 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 D | setitimer.c | 41 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 D | clock_gettime.c | 40 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 D | tempname.c | 89 struct __timespec64 tv; in random_bits() local 90 __clock_gettime64 (CLOCK_MONOTONIC, &tv); in random_bits() 91 var ^= tv.tv_nsec; in random_bits()
|