/third_party/musl/libc-test/src/functionalext/thread/ |
D | pthread_mutex_ext.c | 28 GetDelayedTimeByClockid(&ts, DELAY_TIME_100_MS, CLOCK_REALTIME); in PthreadClocklockOutRealTime() 29 TEST(pthread_mutex_clocklock(mtx, CLOCK_REALTIME, &ts) == ETIMEDOUT); in PthreadClocklockOutRealTime() 31 clock_gettime(CLOCK_REALTIME, &tsNow); in PthreadClocklockOutRealTime() 64 GetDelayedTimeByClockid(&ts, DELAY_TIME_100_MS, CLOCK_REALTIME); in PthreadClocklockNoOutRealTime() 65 TEST(pthread_mutex_clocklock(mtx, CLOCK_REALTIME, &ts) == 0); in PthreadClocklockNoOutRealTime() 164 GetDelayedTimeByClockid(&ts, DELAY_TIME_100_MS, CLOCK_REALTIME); in PthreadClocklockOutRealTime2() 165 clock_gettime(CLOCK_REALTIME, &tsNow); in PthreadClocklockOutRealTime2() 167 clock_settime(CLOCK_REALTIME, &tsNow); in PthreadClocklockOutRealTime2() 168 TEST(pthread_mutex_clocklock(mtx, CLOCK_REALTIME, &ts) == ETIMEDOUT); in PthreadClocklockOutRealTime2() 170 clock_gettime(CLOCK_REALTIME, &tsNow); in PthreadClocklockOutRealTime2() [all …]
|
D | pthread_cond_timedwait.c | 63 EXPECT_EQ(clock_gettime(CLOCK_REALTIME, &ts), 0); in pthread_cond_timedwait_0010() 90 EXPECT_EQ(clock_gettime(CLOCK_REALTIME, &ts), 0); in pthread_cond_timedwait_0020() 113 EXPECT_EQ(clock_gettime(CLOCK_REALTIME, &ts), 0); in pthread_cond_timedwait_time64_0010() 202 clockid_t clock_id = CLOCK_REALTIME; in pthread_cond_clockwait_0010() 249 clock_gettime(CLOCK_REALTIME, &ts); in ClockWaitTimedwait2() 253 clockid_t clock_id = CLOCK_REALTIME; in ClockWaitTimedwait2() 283 clockid_t clock_id = CLOCK_REALTIME; in ClockWaitTimeOut() 286 clock_gettime(CLOCK_REALTIME, &tsNow); in ClockWaitTimeOut() 400 clockid_t clock_id = CLOCK_REALTIME; in ClockWaitTimeMismatch() 423 clock_gettime(CLOCK_REALTIME, &ts); in ClockWaitTimeMismatch2() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/clock_gettime/ |
D | leapsec01.c | 99 SAFE_CLOCK_GETTIME(CLOCK_REALTIME, &now); in test_hrtimer_early_expiration() 105 ret = clock_nanosleep(CLOCK_REALTIME, TIMER_ABSTIME, &target, NULL); in test_hrtimer_early_expiration() 111 SAFE_CLOCK_GETTIME(CLOCK_REALTIME, &now); in test_hrtimer_early_expiration() 128 SAFE_CLOCK_GETTIME(CLOCK_REALTIME, &now); in run_leapsec() 142 SAFE_CLOCK_SETTIME(CLOCK_REALTIME, &now); in run_leapsec() 165 SAFE_CLOCK_GETTIME(CLOCK_REALTIME, &now); in run_leapsec() 172 SAFE_CLOCK_SETTIME(CLOCK_REALTIME, &start); in run_leapsec() 192 SAFE_CLOCK_GETTIME(CLOCK_REALTIME, &now); in cleanup() 195 SAFE_CLOCK_SETTIME(CLOCK_REALTIME, &now); in cleanup()
|
D | clock_gettime04.c | 29 CLOCK_REALTIME, 64 if (clk_id != CLOCK_REALTIME) in my_gettimeofday() 97 clock_getres(CLOCK_REALTIME, &res); in setup() 134 if (tv->clock_gettime == my_gettimeofday && clks[i] != CLOCK_REALTIME) in run() 186 if (variants[j].clock_gettime == my_gettimeofday && clks[i] != CLOCK_REALTIME) in run()
|
/third_party/ltp/testcases/open_posix_testsuite/functional/timers/clocks/ |
D | twopsetclock.c | 36 if (clock_gettime(CLOCK_REALTIME, &tsreset) != 0) { in main() 47 if (clock_settime(CLOCK_REALTIME, &tschild) != 0) { in main() 50 if (clock_gettime(CLOCK_REALTIME, &tpget) == -1) { in main() 61 if (clock_settime(CLOCK_REALTIME, &tsparent) != 0) { in main() 73 if (clock_gettime(CLOCK_REALTIME, &tpget) == -1) { in main() 84 if (clock_settime(CLOCK_REALTIME, &tsreset) != 0) { in main()
|
D | invaliddates.c | 38 if (clock_gettime(CLOCK_REALTIME, &tsreset) != 0) { in main() 46 if (clock_settime(CLOCK_REALTIME, &tpset) == 0) { in main() 47 if (clock_gettime(CLOCK_REALTIME, &tpget) == -1) { in main() 71 if (clock_settime(CLOCK_REALTIME, &tsreset) != 0) { in main() 77 if (clock_settime(CLOCK_REALTIME, &tsreset) != 0) { in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/ |
D | pthread_cond_test.cpp | 83 pthread_condattr_setclock(&condAttr, CLOCK_REALTIME); 103 pthread_condattr_setclock(&condAttr, CLOCK_REALTIME); 124 MakeTimeout(CLOCK_REALTIME, pthread_cond_timedwait); 177 …MakeTimeout(CLOCK_REALTIME, [](pthread_cond_t* cond, pthread_mutex_t* mutex, const timespec* timeo… in __anon6e90814a0302() 178 return pthread_cond_clockwait(cond, mutex, CLOCK_REALTIME, timeout); in __anon6e90814a0302() 181 …MakeTimeout(CLOCK_REALTIME, [](pthread_cond_t* cond, pthread_mutex_t* mutex, const timespec* timeo… in __anon6e90814a0402() 182 return pthread_cond_clockwait(cond, mutex, CLOCK_REALTIME, timeout); in __anon6e90814a0402() 211 EXPECT_EQ(CLOCK_REALTIME, clock); 224 EXPECT_EQ(0, pthread_condattr_setclock(&condAttr, CLOCK_REALTIME)); 226 EXPECT_EQ(CLOCK_REALTIME, clock);
|
D | thread_mutex_test.cpp | 183 clock_gettime(CLOCK_REALTIME, &timeSpec_); 188 clock_gettime(CLOCK_REALTIME, &timeSpec_); 203 clock_gettime(CLOCK_REALTIME, &timeSpec_); 212 clock_gettime(CLOCK_REALTIME, &ts); in __anon02ace2890302() 308 clock_gettime(CLOCK_REALTIME, &timeSpec_); 309 EXPECT_EQ(ETIMEDOUT, pthread_mutex_clocklock(&mutex_, CLOCK_REALTIME, &timeSpec_)); 311 EXPECT_EQ(EINVAL, pthread_mutex_clocklock(&mutex_, CLOCK_REALTIME, &timeSpec_)); 313 clock_gettime(CLOCK_REALTIME, &timeSpec_); 315 EXPECT_EQ(0, pthread_mutex_clocklock(&mutex_, CLOCK_REALTIME, &timeSpec_)); 358 clock_gettime(CLOCK_REALTIME, &timeSpec_); [all …]
|
/third_party/ltp/testcases/kernel/syscalls/clock_settime/ |
D | clock_settime02.c | 30 .type = CLOCK_REALTIME, 37 .type = CLOCK_REALTIME, 44 .type = CLOCK_REALTIME, 51 .type = CLOCK_REALTIME, 119 TEST(tv->clock_gettime(CLOCK_REALTIME, tst_ts_get(&spec))); in verify_clock_settime() 122 tst_clock_name(CLOCK_REALTIME)); in verify_clock_settime()
|
D | clock_settime01.c | 49 ret = tv->clock_gettime(CLOCK_REALTIME, tst_ts_get(ts)); in do_clock_gettime() 64 TEST(tv->clock_settime(CLOCK_REALTIME, tst_ts_get(change))); in verify_clock_settime() 67 tst_clock_name(CLOCK_REALTIME)); in verify_clock_settime() 85 TEST(tv->clock_settime(CLOCK_REALTIME, tst_ts_get(change))); in verify_clock_settime() 88 tst_clock_name(CLOCK_REALTIME)); in verify_clock_settime()
|
/third_party/ltp/testcases/kernel/syscalls/clock_adjtime/ |
D | clock_adjtime02.c | 87 .clktype = CLOCK_REALTIME, 92 .clktype = CLOCK_REALTIME, 99 .clktype = CLOCK_REALTIME, 106 .clktype = CLOCK_REALTIME, 139 rval = tv->clock_adjtime(CLOCK_REALTIME, tst_timex_get(txcptr)); in verify_clock_adjtime() 202 rval = tv->clock_adjtime(CLOCK_REALTIME, tst_timex_get(&saved)); in setup() 248 rval = tv->clock_adjtime(CLOCK_REALTIME, tst_timex_get(&saved)); in cleanup()
|
D | clock_adjtime01.c | 133 rval = tv->clock_adjtime(CLOCK_REALTIME, tst_timex_get(&ttxc)); in verify_clock_adjtime() 154 rval = tv->clock_adjtime(CLOCK_REALTIME, tst_timex_get(&ttxc)); in verify_clock_adjtime() 162 rval = tv->clock_adjtime(CLOCK_REALTIME, tst_timex_get(&verify)); in verify_clock_adjtime() 189 rval = tv->clock_adjtime(CLOCK_REALTIME, tst_timex_get(&saved)); in setup() 243 rval = tv->clock_adjtime(CLOCK_REALTIME, tst_timex_get(&saved)); in cleanup()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/ |
D | 10-1.c | 44 #ifdef CLOCK_REALTIME in main() 46 if (clock_gettime(CLOCK_REALTIME, &ts) != 0) { in main() 66 #ifdef CLOCK_REALTIME in main() 67 if (clock_gettime(CLOCK_REALTIME, &ts_2) != 0) { in main()
|
/third_party/rust/crates/nix/test/ |
D | test_time.rs | 14 nix::time::clock_getres(ClockId::CLOCK_REALTIME).expect("assertion failed"); in test_clock_getres() 19 clock_gettime(ClockId::CLOCK_REALTIME).expect("assertion failed"); in test_clock_gettime() 38 ClockId::CLOCK_REALTIME.res().unwrap(); in test_clock_id_res() 43 ClockId::CLOCK_REALTIME.now().unwrap(); in test_clock_id_now()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/ |
D | 8-1.c | 45 if (clock_gettime(CLOCK_REALTIME, &tsT0) != 0) { in main() 58 if (clock_nanosleep(CLOCK_REALTIME, 0, &tssleep, NULL) != 0) { in main() 63 if (clock_gettime(CLOCK_REALTIME, &tsend) != 0) { in main() 92 if (clock_settime(CLOCK_REALTIME, &tsT0) != 0) { in main()
|
D | 7-1.c | 47 if (clock_gettime(CLOCK_REALTIME, &tsT0) != 0) { in main() 61 if (clock_nanosleep(CLOCK_REALTIME, flags, &tsT1, NULL) != 0) { in main() 66 if (clock_gettime(CLOCK_REALTIME, &tsT2) != 0) { in main() 93 if (clock_settime(CLOCK_REALTIME, &tsT0) != 0) { in main()
|
D | 7-2.c | 46 if (clock_gettime(CLOCK_REALTIME, &tsT0) != 0) { in main() 63 if (clock_nanosleep(CLOCK_REALTIME, flags, &tsT1, NULL) != 0) { in main() 68 if (clock_gettime(CLOCK_REALTIME, &tsT3) != 0) { in main() 96 if (clock_settime(CLOCK_REALTIME, &tsT2) != 0) { in main()
|
D | 4-1.c | 80 if (clock_gettime(CLOCK_REALTIME, &tpT0) != 0) { in main() 85 if (timer_create(CLOCK_REALTIME, &ev, &tid) != 0) { in main() 102 if (clock_settime(CLOCK_REALTIME, &tpT0) != 0) { in main() 112 if (clock_gettime(CLOCK_REALTIME, &tpT2) != 0) { in main()
|
/third_party/ltp/testcases/kernel/syscalls/timer_create/ |
D | timer_create02.c | 53 {CLOCK_REALTIME, NULL, &timer_id, EFAULT, "invalid sigevent struct"}, 54 {CLOCK_REALTIME, &sig_ev, NULL, EFAULT, "invalid timer ID"}, 56 {CLOCK_REALTIME, &sig_ev_inv_not, &timer_id, EINVAL, "wrong sigev_notify"}, 57 {CLOCK_REALTIME, &sig_ev_inv_sig, &timer_id, EINVAL, "wrong sigev_signo"},
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_settime/ |
D | 6-1.c | 72 if (timer_create(CLOCK_REALTIME, &ev, &tid) != 0) { in main() 88 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) { in main() 103 if (clock_gettime(CLOCK_REALTIME, &tsafter) != 0) { in main() 129 if (clock_gettime(CLOCK_REALTIME, &tsafter) != 0) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/ |
D | 2-1.c | 117 #ifdef CLOCK_REALTIME in f1() 119 rc = clock_gettime(CLOCK_REALTIME, &ts); in f1() 143 #ifdef CLOCK_REALTIME in f1() 144 rc = clock_gettime(CLOCK_REALTIME, &ts); in f1()
|
/third_party/musl/libc-test/src/functionalext/supplement/thread/ |
D | pthread_rwlock_timedwrlock.c | 32 clock_gettime(CLOCK_REALTIME, &ts); in pthread_rwlock_timedwrlock_0100() 58 clock_gettime(CLOCK_REALTIME, &ts); in pthread_rwlock_timedwrlock_0200() 82 clock_gettime(CLOCK_REALTIME, &ts); in pthread_rwlock_timedwrlock_0300() 104 clock_gettime(CLOCK_REALTIME, &ts); in pthread_rwlock_timedwrlock_time64_0100()
|
D | pthread_rwlock_timedrdlock.c | 32 clock_gettime(CLOCK_REALTIME, &ts); in pthread_rwlock_timedrdlock_0100() 58 clock_gettime(CLOCK_REALTIME, &ts); in pthread_rwlock_timedrdlock_0200() 82 clock_gettime(CLOCK_REALTIME, &ts); in pthread_rwlock_timedrdlock_0300() 104 clock_gettime(CLOCK_REALTIME, &ts); in pthread_rwlock_timedrdlock_time64_0100()
|
/third_party/ltp/testcases/kernel/syscalls/clock_nanosleep/ |
D | clock_nanosleep01.c | 54 .clk_id = CLOCK_REALTIME, 63 .clk_id = CLOCK_REALTIME, 81 .clk_id = CLOCK_REALTIME, 90 .clk_id = CLOCK_REALTIME, 97 .clk_id = CLOCK_REALTIME,
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_nanosleep/ |
D | 1-1.c | 23 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) { in main() 30 if (clock_nanosleep(CLOCK_REALTIME, 0, &tssleep, NULL) != 0) { in main() 35 if (clock_gettime(CLOCK_REALTIME, &tsafter) == -1) { in main()
|