HomeSort by relevance Sort by last modified time
    Searched refs:CLOCK_REALTIME (Results 26 - 50 of 321) sorted by null

12 3 4 5 6 7 8 91011>>

  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/
1-1.c 9 clock_id (the clock_id chosen for this test is CLOCK_REALTIME).
22 if (clock_gettime(CLOCK_REALTIME, &tp) == 0) {
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/
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) {
7-2.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
40 /* Check that we're root...can't call clock_settime with CLOCK_REALTIME otherwise */
46 if (clock_gettime(CLOCK_REALTIME, &tsT0) != 0) {
63 if (clock_nanosleep(CLOCK_REALTIME, flags, &tsT1, NULL) != 0) {
68 if (clock_gettime(CLOCK_REALTIME, &tsT3) != 0) {
96 if (clock_settime(CLOCK_REALTIME, &tsT2) != 0) {
8-1.c 39 /* Check that we're root...can't call clock_settime with CLOCK_REALTIME otherwise */
45 if (clock_gettime(CLOCK_REALTIME, &tsT0) != 0) {
58 if (clock_nanosleep(CLOCK_REALTIME, 0, &tssleep, NULL) != 0) {
63 if (clock_gettime(CLOCK_REALTIME, &tsend) != 0) {
92 if (clock_settime(CLOCK_REALTIME, &tsT0) != 0) {
19-1.c 22 * The clock_id CLOCK_REALTIME is used.
45 /* Check that we're root...can't call clock_settime with CLOCK_REALTIME otherwise */
51 if (clock_gettime(CLOCK_REALTIME, &tscurrent) != 0) {
63 if (clock_settime(CLOCK_REALTIME, &tsset) == -1) {
4-1.c 8 * Test that if clock_settime() changes the value for CLOCK_REALTIME,
52 /* Check that we're root...can't call clock_settime with CLOCK_REALTIME otherwise */
80 if (clock_gettime(CLOCK_REALTIME, &tpT0) != 0) {
85 if (timer_create(CLOCK_REALTIME, &ev, &tid) != 0) {
102 if (clock_settime(CLOCK_REALTIME, &tpT0) != 0) {
112 if (clock_gettime(CLOCK_REALTIME, &tpT2) != 0) {
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_setclock/
1-1.c 14 * 2. Set the clock to CLOCK_REALTIME
38 rc = pthread_condattr_setclock(&condattr, CLOCK_REALTIME);
40 printf("Test FAILED: Could not set clock to CLOCK_REALTIME\n");
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/
10-1.c 9 * the CLOCK_REALTIME clock. If the Timers option is not supported,
45 #ifdef CLOCK_REALTIME
46 printf("Test CLOCK_REALTIME\n");
47 if (clock_gettime(CLOCK_REALTIME, &ts) != 0) {
67 #ifdef CLOCK_REALTIME
68 if (clock_gettime(CLOCK_REALTIME, &ts_2) != 0) {
  /external/strace/tests/
clock_adjtime.c 48 rc = syscall(__NR_clock_adjtime, CLOCK_REALTIME, efault);
49 printf("clock_adjtime(CLOCK_REALTIME, %p) = %ld %s (%m)\n",
  /external/strace/tests-m32/
clock_adjtime.c 48 rc = syscall(__NR_clock_adjtime, CLOCK_REALTIME, efault);
49 printf("clock_adjtime(CLOCK_REALTIME, %p) = %ld %s (%m)\n",
  /external/strace/tests-mx32/
clock_adjtime.c 48 rc = syscall(__NR_clock_adjtime, CLOCK_REALTIME, efault);
49 printf("clock_adjtime(CLOCK_REALTIME, %p) = %ld %s (%m)\n",
  /external/ltp/testcases/kernel/timers/leapsec/
leapsec_timer.c 4 * A bug in the hrtimer subsystem caused all TIMER_ABSTIME CLOCK_REALTIME
127 clock_gettime(CLOCK_REALTIME, &now);
133 r = clock_nanosleep(CLOCK_REALTIME, TIMER_ABSTIME, &target, NULL);
139 clock_gettime(CLOCK_REALTIME, &now);
153 clock_gettime(CLOCK_REALTIME, &now);
167 if (clock_settime(CLOCK_REALTIME, &now) < 0)
190 clock_gettime(CLOCK_REALTIME, &now);
197 if (clock_settime(CLOCK_REALTIME, &start) < 0)
213 clock_gettime(CLOCK_REALTIME, &now);
216 clock_settime(CLOCK_REALTIME, &now)
    [all...]
  /external/ltp/testcases/kernel/syscalls/futex/
futex_wait_bitset.h 27 int flags = clk_id == CLOCK_REALTIME ? FUTEX_CLOCK_REALTIME : 0;
30 clk_id == CLOCK_REALTIME ? "CLOCK_REALTIME" : "CLOCK_MONOTONIC");
  /external/ltp/testcases/kernel/syscalls/utils/
mq_timed.h 38 clock_gettime(CLOCK_REALTIME, ts);
46 clock_gettime(CLOCK_REALTIME, ts);
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/
1-2.c 24 if (clock_gettime(CLOCK_REALTIME, &tsbefore) == -1) {
49 if (clock_gettime(CLOCK_REALTIME, &tsafter) == -1) {
2-1.c 28 if (clock_gettime(CLOCK_REALTIME, &tsbefore) == -1) {
41 if (clock_gettime(CLOCK_REALTIME, &tsafter) == -1) {
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/linux/
time.h 55 #define CLOCK_REALTIME 0
71 #define CLOCKS_MASK (CLOCK_REALTIME | CLOCK_MONOTONIC)
  /prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/
pthread_time.h 57 #ifndef CLOCK_REALTIME
58 #define CLOCK_REALTIME 0
  /build/kati/
timeutil.cc 27 clock_gettime(CLOCK_REALTIME, &ts);
  /external/ltp/testcases/open_posix_testsuite/conformance/behavior/timers/
1-1.c 10 * For this test, clock CLOCK_REALTIME will be used.
31 if (timer_create(CLOCK_REALTIME, NULL, &tid) == -1) {
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_getclock/
1-2.c 13 * 2. Set the clock attribute to CLOCK_REALTIME
39 rc = pthread_condattr_setclock(&condattr, CLOCK_REALTIME);
41 perror("Error: Could not set clock to CLOCK_REALTIME\n");
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/
2-1.c 26 /* Test for CLOCK_REALTIME */
118 #ifdef CLOCK_REALTIME
119 printf("Test CLOCK_REALTIME\n");
120 rc = clock_gettime(CLOCK_REALTIME, &ts);
144 #ifdef CLOCK_REALTIME
145 rc = clock_gettime(CLOCK_REALTIME, &ts);
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_getoverrun/speculative/
6-3.c 13 * For this test, signal SIGCONT will be used, clock CLOCK_REALTIME
32 if (timer_create(CLOCK_REALTIME, &ev, &tid) != 0) {
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_gettime/speculative/
6-2.c 12 * For this test, signal SIGCONT will be used, clock CLOCK_REALTIME
31 if (timer_create(CLOCK_REALTIME, &ev, &tid) != 0) {
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_settime/
6-1.c 16 * For this test, signal SIGTOTEST will be used, clock CLOCK_REALTIME
72 if (timer_create(CLOCK_REALTIME, &ev, &tid) != 0) {
88 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) {
103 if (clock_gettime(CLOCK_REALTIME, &tsafter) != 0) {
129 if (clock_gettime(CLOCK_REALTIME, &tsafter) != 0) {

Completed in 267 milliseconds

12 3 4 5 6 7 8 91011>>