Home
last modified time | relevance | path

Searched refs:CLOCK_REALTIME (Results 1 – 25 of 247) sorted by relevance

12345678910

/external/ltp/testcases/kernel/timers/leapsec/
Dleapsec_timer.c127 clock_gettime(CLOCK_REALTIME, &now); in test_hrtimer_early_expiration()
133 r = clock_nanosleep(CLOCK_REALTIME, TIMER_ABSTIME, &target, NULL); in test_hrtimer_early_expiration()
139 clock_gettime(CLOCK_REALTIME, &now); in test_hrtimer_early_expiration()
153 clock_gettime(CLOCK_REALTIME, &now); in run_leapsec()
167 if (clock_settime(CLOCK_REALTIME, &now) < 0) in run_leapsec()
190 clock_gettime(CLOCK_REALTIME, &now); in run_leapsec()
197 if (clock_settime(CLOCK_REALTIME, &start) < 0) in run_leapsec()
213 clock_gettime(CLOCK_REALTIME, &now); in cleanup()
216 clock_settime(CLOCK_REALTIME, &now); in cleanup()
/external/ltp/testcases/open_posix_testsuite/functional/timers/clocks/
Dtwopsetclock.c36 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()
Dinvaliddates.c40 if (clock_gettime(CLOCK_REALTIME, &tsreset) != 0) { in main()
51 if (clock_settime(CLOCK_REALTIME, &tpset) == 0) { in main()
52 if (clock_gettime(CLOCK_REALTIME, &tpget) == -1) { in main()
79 if (clock_settime(CLOCK_REALTIME, &tsreset) != 0) { in main()
85 if (clock_settime(CLOCK_REALTIME, &tsreset) != 0) { in main()
/external/strace/tests-m32/
Dclock_nanosleep.c66 if (syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, &req.ts, NULL)) in main()
73 assert(syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, in main()
78 assert(syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, in main()
95 assert(syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, in main()
119 assert(syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, in main()
130 assert(syscall(__NR_clock_gettime, CLOCK_REALTIME, &req.ts) == 0); in main()
138 assert(syscall(__NR_clock_nanosleep, CLOCK_REALTIME, TIMER_ABSTIME, in main()
Dtimer_create.c44 syscall(__NR_timer_create, CLOCK_REALTIME, NULL, NULL); in main()
55 syscall(__NR_timer_create, CLOCK_REALTIME, &sev, NULL); in main()
65 if (syscall(__NR_timer_create, CLOCK_REALTIME, &sev, &tid[0])) in main()
89 if (syscall(__NR_timer_create, CLOCK_REALTIME, &sev, &tid[2])) in main()
/external/strace/tests-mx32/
Dclock_nanosleep.c66 if (syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, &req.ts, NULL)) in main()
73 assert(syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, in main()
78 assert(syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, in main()
95 assert(syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, in main()
119 assert(syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, in main()
130 assert(syscall(__NR_clock_gettime, CLOCK_REALTIME, &req.ts) == 0); in main()
138 assert(syscall(__NR_clock_nanosleep, CLOCK_REALTIME, TIMER_ABSTIME, in main()
Dtimer_create.c44 syscall(__NR_timer_create, CLOCK_REALTIME, NULL, NULL); in main()
55 syscall(__NR_timer_create, CLOCK_REALTIME, &sev, NULL); in main()
65 if (syscall(__NR_timer_create, CLOCK_REALTIME, &sev, &tid[0])) in main()
89 if (syscall(__NR_timer_create, CLOCK_REALTIME, &sev, &tid[2])) in main()
/external/strace/tests/
Dclock_nanosleep.c66 if (syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, &req.ts, NULL)) in main()
73 assert(syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, in main()
78 assert(syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, in main()
95 assert(syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, in main()
119 assert(syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, in main()
130 assert(syscall(__NR_clock_gettime, CLOCK_REALTIME, &req.ts) == 0); in main()
138 assert(syscall(__NR_clock_nanosleep, CLOCK_REALTIME, TIMER_ABSTIME, in main()
Dtimer_create.c44 syscall(__NR_timer_create, CLOCK_REALTIME, NULL, NULL); in main()
55 syscall(__NR_timer_create, CLOCK_REALTIME, &sev, NULL); in main()
65 if (syscall(__NR_timer_create, CLOCK_REALTIME, &sev, &tid[0])) in main()
89 if (syscall(__NR_timer_create, CLOCK_REALTIME, &sev, &tid[2])) in main()
/external/ltp/testcases/kernel/timers/clock_settime/
Dclock_settime03.c33 CLOCK_REALTIME,
37 CLOCK_REALTIME,
38 CLOCK_REALTIME,
39 CLOCK_REALTIME,
100 CLOCK_REALTIME, in main()
162 if (ltp_syscall(__NR_clock_gettime, CLOCK_REALTIME, &saved) < 0) in setup()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/
D10-1.c45 #ifdef CLOCK_REALTIME in main()
47 if (clock_gettime(CLOCK_REALTIME, &ts) != 0) { in main()
67 #ifdef CLOCK_REALTIME in main()
68 if (clock_gettime(CLOCK_REALTIME, &ts_2) != 0) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/
D8-1.c45 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()
D7-1.c47 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()
D7-2.c46 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()
D4-1.c80 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()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_settime/
D6-1.c72 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()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/
D2-1.c118 #ifdef CLOCK_REALTIME in f1()
120 rc = clock_gettime(CLOCK_REALTIME, &ts); in f1()
144 #ifdef CLOCK_REALTIME in f1()
145 rc = clock_gettime(CLOCK_REALTIME, &ts); in f1()
/external/linux-kselftest/tools/testing/selftests/timers/
Dleap-a-day.c164 clock_gettime(CLOCK_REALTIME, &now); in test_hrtimer_failure()
166 clock_nanosleep(CLOCK_REALTIME, TIMER_ABSTIME, &target, NULL); in test_hrtimer_failure()
167 clock_gettime(CLOCK_REALTIME, &now); in test_hrtimer_failure()
243 clock_gettime(CLOCK_REALTIME, &ts); in main()
296 if (timer_create(CLOCK_REALTIME, &se, &tm1) == -1) { in main()
311 while (clock_nanosleep(CLOCK_REALTIME, TIMER_ABSTIME, &ts, NULL)) in main()
/external/autotest/client/site_tests/security_AltSyscall/src/
Dclock_adjtime.c20 ret = clock_adjtime(CLOCK_REALTIME, &buf); in main()
25 ret = clock_adjtime(CLOCK_REALTIME, NULL); in main()
34 ret = clock_adjtime(CLOCK_REALTIME, &buf); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_nanosleep/
D1-1.c23 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()
D2-1.c29 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) { in main()
39 if (clock_nanosleep(CLOCK_REALTIME, flags, &tssleep, NULL) != 0) { in main()
44 if (clock_gettime(CLOCK_REALTIME, &tsafter) == -1) { in main()
D3-1.c30 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) { in main()
40 if (clock_nanosleep(CLOCK_REALTIME, flags, &tssleep, NULL) != 0) { in main()
45 if (clock_gettime(CLOCK_REALTIME, &tsafter) == -1) { in main()
D1-4.c25 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) { in main()
34 clock_nanosleep(CLOCK_REALTIME, 0, &tssleep, NULL); in main()
50 if (clock_gettime(CLOCK_REALTIME, &tsafter) != 0) { in main()
D2-3.c27 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) { in main()
42 clock_nanosleep(CLOCK_REALTIME, flags, &tssleep, NULL); in main()
58 if (clock_gettime(CLOCK_REALTIME, &tsafter) != 0) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/
D3-1.c60 #ifdef CLOCK_REALTIME in fn_rd()
62 clock_gettime(CLOCK_REALTIME, &ts); in fn_rd()
90 #ifdef CLOCK_REALTIME in fn_rd()
91 clock_gettime(CLOCK_REALTIME, &ts); in fn_rd()

12345678910