Home
last modified time | relevance | path

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

12345678910

/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/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/kernel/timers/clock_settime/
Dclock_settime03.c32 CLOCK_REALTIME,
36 CLOCK_REALTIME,
37 CLOCK_REALTIME,
38 CLOCK_REALTIME,
103 CLOCK_REALTIME, in main()
165 if (ltp_syscall(__NR_clock_gettime, CLOCK_REALTIME, &saved) < 0) in setup()
Dclock_settime02.c98 TEST(ltp_syscall(__NR_clock_settime, CLOCK_REALTIME, &spec)); in main()
115 if (ltp_syscall(__NR_clock_gettime, CLOCK_REALTIME, &saved) < 0) in setup()
124 if (clock_settime(CLOCK_REALTIME, &saved) < 0) { in cleanup()
/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/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/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()
D1-1.c39 if (clock_getres(CLOCK_REALTIME, &tpres) != 0) { in main()
49 if (clock_settime(CLOCK_REALTIME, &tpset) == 0) { in main()
50 if (clock_gettime(CLOCK_REALTIME, &tpget) == -1) { 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/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/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()
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()
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()
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()

12345678910