/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/ |
H A D | 6-1-buildonly.c | 9 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 D | helpers.h | 17 if (clock_gettime(CLOCK_REALTIME, tpget) != 0) { 27 if (clock_settime(CLOCK_REALTIME, &tpset) != 0) {
|
H A D | 1-1.c | 10 * 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 D | 7-1.c | 8 * 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 D | clock_gettime.c | 9 clock_gettime(CLOCK_REALTIME, &ts);
|
/external/autotest/client/site_tests/security_AltSyscall/src/ |
H A D | clock_adjtime.c | 20 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 D | futex_wait_bitset02.c | 40 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 D | 1-1.c | 23 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 D | 2-1.c | 29 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 D | 1-4.c | 25 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 D | 2-3.c | 27 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 D | 3-1.c | 30 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 D | twopsetclock.c | 16 * 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 D | invaliddates.c | 11 * 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 D | clock_settime02.c | 98 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 D | clock_settime03.c | 33 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 D | clocknames.h | 2 #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 D | time.h | 48 #define CLOCK_REALTIME 0 macro 66 #define CLOCKS_MASK (CLOCK_REALTIME | CLOCK_MONOTONIC)
|
/external/ltp/testcases/kernel/timers/include/ |
H A D | common_timers.h | 18 CLOCK_REALTIME, 44 CLOCK_TO_STR(CLOCK_REALTIME);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/ |
H A D | 1-1.c | 21 if (clock_gettime(CLOCK_REALTIME, &tsbefore) == -1) { 33 if (clock_gettime(CLOCK_REALTIME, &tsafter) == -1) {
|
/external/vboot_reference/tests/ |
H A D | timer_utils.c | 9 clock_gettime(CLOCK_REALTIME, &ct->start_time); 13 clock_gettime(CLOCK_REALTIME, &ct->end_time);
|
/external/linux-kselftest/android/include/sys/ |
H A D | timeb.h | 17 int err = clock_gettime(CLOCK_REALTIME, &ts);
|
/external/ltp/android/include/sys/ |
H A D | timeb.h | 17 int err = clock_gettime(CLOCK_REALTIME, &ts);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/ |
H A D | 1-1.c | 10 * 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 D | 1-1.c | 9 clock_id (the clock_id chosen for this test is CLOCK_REALTIME). 22 if (clock_gettime(CLOCK_REALTIME, &tp) == 0) {
|