Searched refs:CLOCK_REALTIME (Results 1 - 25 of 234) sorted by relevance

12345678910

/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/
H A D6-1-buildonly.c9 Test that CLOCK_REALTIME is defined
14 #ifndef CLOCK_REALTIME
15 #error CLOCK_REALTIME not defined
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/
H A Dhelpers.h17 if (clock_gettime(CLOCK_REALTIME, tpget) != 0) {
27 if (clock_settime(CLOCK_REALTIME, &tpset) != 0) {
H A D1-1.c10 * The clock_id chosen for this test is CLOCK_REALTIME.
34 /* Check that we're root...can't call clock_settime with CLOCK_REALTIME otherwise */
39 if (clock_getres(CLOCK_REALTIME, &tpres) != 0) {
49 if (clock_settime(CLOCK_REALTIME, &tpset) == 0) {
50 if (clock_gettime(CLOCK_REALTIME, &tpget) == -1) {
H A D7-1.c8 * Test that if clock_settime() changes the time for CLOCK_REALTIME,
9 * then any threads blocked on clock_nanosleep() for the CLOCK_REALTIME
41 /* Check that we're root...can't call clock_settime with CLOCK_REALTIME otherwise */
47 if (clock_gettime(CLOCK_REALTIME, &tsT0) != 0) {
61 if (clock_nanosleep(CLOCK_REALTIME, flags, &tsT1, NULL) != 0) {
66 if (clock_gettime(CLOCK_REALTIME, &tsT2) != 0) {
93 if (clock_settime(CLOCK_REALTIME, &tsT0) != 0) {
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/
H A Dclock_gettime.c9 clock_gettime(CLOCK_REALTIME, &ts);
/external/autotest/client/site_tests/security_AltSyscall/src/
H A Dclock_adjtime.c20 ret = clock_adjtime(CLOCK_REALTIME, &buf);
25 ret = clock_adjtime(CLOCK_REALTIME, NULL);
34 ret = clock_adjtime(CLOCK_REALTIME, &buf);
/external/ltp/testcases/kernel/syscalls/futex/
H A Dfutex_wait_bitset02.c40 tst_timer_check(CLOCK_REALTIME);
45 verify_futex_wait_bitset(DEFAULT_TIMEOUT_US, CLOCK_REALTIME);
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_nanosleep/
H A D1-1.c23 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) {
30 if (clock_nanosleep(CLOCK_REALTIME, 0, &tssleep, NULL) != 0) {
35 if (clock_gettime(CLOCK_REALTIME, &tsafter) == -1) {
H A D2-1.c29 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) {
39 if (clock_nanosleep(CLOCK_REALTIME, flags, &tssleep, NULL) != 0) {
44 if (clock_gettime(CLOCK_REALTIME, &tsafter) == -1) {
H A D1-4.c25 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) {
34 clock_nanosleep(CLOCK_REALTIME, 0, &tssleep, NULL);
50 if (clock_gettime(CLOCK_REALTIME, &tsafter) != 0) {
H A D2-3.c27 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) {
42 clock_nanosleep(CLOCK_REALTIME, flags, &tssleep, NULL);
58 if (clock_gettime(CLOCK_REALTIME, &tsafter) != 0) {
H A D3-1.c30 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) {
40 if (clock_nanosleep(CLOCK_REALTIME, flags, &tssleep, NULL) != 0) {
45 if (clock_gettime(CLOCK_REALTIME, &tsafter) == -1) {
/external/ltp/testcases/open_posix_testsuite/functional/timers/clocks/
H A Dtwopsetclock.c16 * The clock_id chosen for this test is CLOCK_REALTIME.
36 if (clock_gettime(CLOCK_REALTIME, &tsreset) != 0) {
47 if (clock_settime(CLOCK_REALTIME, &tschild) != 0) {
50 if (clock_gettime(CLOCK_REALTIME, &tpget) == -1) {
61 if (clock_settime(CLOCK_REALTIME, &tsparent) != 0) {
73 if (clock_gettime(CLOCK_REALTIME, &tpget) == -1) {
84 if (clock_settime(CLOCK_REALTIME, &tsreset) != 0) {
H A Dinvaliddates.c11 * Test for CLOCK_REALTIME. (N/A for CLOCK_MONOTONIC as that clock
40 if (clock_gettime(CLOCK_REALTIME, &tsreset) != 0) {
51 if (clock_settime(CLOCK_REALTIME, &tpset) == 0) {
52 if (clock_gettime(CLOCK_REALTIME, &tpget) == -1) {
79 if (clock_settime(CLOCK_REALTIME, &tsreset) != 0) {
85 if (clock_settime(CLOCK_REALTIME, &tsreset) != 0) {
/external/ltp/testcases/kernel/timers/clock_settime/
H A Dclock_settime02.c98 TEST(ltp_syscall(__NR_clock_settime, CLOCK_REALTIME, &spec));
115 if (ltp_syscall(__NR_clock_gettime, CLOCK_REALTIME, &saved) < 0)
124 if (clock_settime(CLOCK_REALTIME, &saved) < 0) {
H A Dclock_settime03.c33 CLOCK_REALTIME,
37 CLOCK_REALTIME,
38 CLOCK_REALTIME,
39 CLOCK_REALTIME,
100 CLOCK_REALTIME,
162 if (ltp_syscall(__NR_clock_gettime, CLOCK_REALTIME, &saved) < 0)
/external/strace/xlat/
H A Dclocknames.h2 #if !(defined(CLOCK_REALTIME) || (defined(HAVE_DECL_CLOCK_REALTIME) && HAVE_DECL_CLOCK_REALTIME))
3 # define CLOCK_REALTIME 0 macro
42 XLAT(CLOCK_REALTIME),
/external/kernel-headers/original/uapi/linux/
H A Dtime.h48 #define CLOCK_REALTIME 0 macro
66 #define CLOCKS_MASK (CLOCK_REALTIME | CLOCK_MONOTONIC)
/external/ltp/testcases/kernel/timers/include/
H A Dcommon_timers.h18 CLOCK_REALTIME,
44 CLOCK_TO_STR(CLOCK_REALTIME);
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/
H A D1-1.c21 if (clock_gettime(CLOCK_REALTIME, &tsbefore) == -1) {
33 if (clock_gettime(CLOCK_REALTIME, &tsafter) == -1) {
/external/vboot_reference/tests/
H A Dtimer_utils.c9 clock_gettime(CLOCK_REALTIME, &ct->start_time);
13 clock_gettime(CLOCK_REALTIME, &ct->end_time);
/external/linux-kselftest/android/include/sys/
H A Dtimeb.h17 int err = clock_gettime(CLOCK_REALTIME, &ts);
/external/ltp/android/include/sys/
H A Dtimeb.h17 int err = clock_gettime(CLOCK_REALTIME, &ts);
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/
H A D1-1.c10 * The clock chosen for this test is CLOCK_REALTIME.
26 if (clock_getres(CLOCK_REALTIME, &res) == 0) {
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/
H A D1-1.c9 clock_id (the clock_id chosen for this test is CLOCK_REALTIME).
22 if (clock_gettime(CLOCK_REALTIME, &tp) == 0) {

Completed in 477 milliseconds

12345678910