Home
last modified time | relevance | path

Searched refs:clock_nanosleep (Results 1 – 25 of 83) sorted by relevance

1234

/third_party/musl/libc-test/src/functionalext/supplement/time/
Dclock_nanosleep.c35 ret = clock_nanosleep(CLOCK_REALTIME, TIMER_ABSTIME, &ts, NULL); in clock_nanosleep_0100()
50 ret = clock_nanosleep(CLOCK_TAI, TIMER_ABSTIME, &ts, NULL); in clock_nanosleep_0200()
65 ret = clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &ts, NULL); in clock_nanosleep_0300()
80 ret = clock_nanosleep(CLOCK_BOOTTIME, TIMER_ABSTIME, &ts, NULL); in clock_nanosleep_0400()
96 ret = clock_nanosleep(CLOCK_REALTIME, 0, &ts, NULL); in clock_nanosleep_0500()
112 ret = clock_nanosleep(CLOCK_THREAD_CPUTIME_ID, TIMER_ABSTIME, &ts, NULL); in clock_nanosleep_0600()
/third_party/ltp/testcases/kernel/syscalls/clock_nanosleep/
Dclock_nanosleep03.c27 …{ .clock_gettime = libc_clock_gettime, .clock_nanosleep = libc_clock_nanosleep, .ts_type = TST_LIB…
30 …{ .clock_gettime = sys_clock_gettime, .clock_nanosleep = sys_clock_nanosleep, .ts_type = TST_KERN_…
34 …{ .clock_gettime = sys_clock_gettime64, .clock_nanosleep = sys_clock_nanosleep64, .ts_type = TST_K…
65 TEST(tv->clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, tst_ts_get(&sleep_abs), NULL)); in verify_clock_nanosleep()
70 if ((tv->clock_nanosleep == libc_clock_nanosleep) && TST_RET) { in verify_clock_nanosleep()
Dclock_nanosleep01.c110 …{ .clock_nanosleep = libc_clock_nanosleep, .ts_type = TST_LIBC_TIMESPEC, .desc = "vDSO or syscall …
113 …{ .clock_nanosleep = sys_clock_nanosleep, .ts_type = TST_KERN_OLD_TIMESPEC, .desc = "syscall with …
117 …{ .clock_nanosleep = sys_clock_nanosleep64, .ts_type = TST_KERN_TIMESPEC, .desc = "syscall time64 …
142 tv->clock_nanosleep == libc_clock_nanosleep) { in do_test()
164 TEST(tv->clock_nanosleep(tc->clk_id, tc->flags, request, remain)); in do_test()
166 if (tv->clock_nanosleep == libc_clock_nanosleep) { in do_test()
Dclock_nanosleep04.c20 …{ .clock_gettime = libc_clock_gettime, .clock_nanosleep = libc_clock_nanosleep, .ts_type = TST_LIB…
23 …{ .clock_gettime = sys_clock_gettime, .clock_nanosleep = sys_clock_nanosleep, .ts_type = TST_KERN_…
27 …{ .clock_gettime = sys_clock_gettime64, .clock_nanosleep = sys_clock_nanosleep64, .ts_type = TST_K…
50 TEST(tv->clock_nanosleep(tcase[i], TIMER_ABSTIME, tst_ts_get(&ts), NULL)); in do_test()
Dclock_nanosleep02.c20 TEST(clock_nanosleep(clk_id, 0, &t, NULL)); in sample_fn()
/third_party/musl/Benchmark/musl/
Dlibc_time.cpp74 benchmark::DoNotOptimize(clock_nanosleep(CLOCK_REALTIME, 0, &req, &rem)); in Bm_function_Clock_nanosleep_realtime()
84 benchmark::DoNotOptimize(clock_nanosleep(CLOCK_REALTIME_COARSE, 0, &req, &rem)); in Bm_function_Clock_nanosleep_realtime_raw()
94 benchmark::DoNotOptimize(clock_nanosleep(CLOCK_REALTIME_COARSE, 0, &req, &rem)); in Bm_function_Clock_nanosleep_realtime_coarse()
104 benchmark::DoNotOptimize(clock_nanosleep(CLOCK_MONOTONIC, 0, &req, &rem)); in Bm_function_Clock_nanosleep_monotonic()
113 benchmark::DoNotOptimize(clock_nanosleep(CLOCK_MONOTONIC_COARSE, 0, &req, &rem)); in Bm_function_Clock_nanosleep_monotonic_coarse()
122 benchmark::DoNotOptimize(clock_nanosleep(CLOCK_MONOTONIC_RAW, 0, &req, &rem)); in Bm_function_Clock_nanosleep_monotonic_raw()
131 benchmark::DoNotOptimize(clock_nanosleep(CLOCK_BOOTTIME, 0, &req, &rem)); in Bm_function_Clock_nanosleep_boottime()
/third_party/skia/third_party/externals/oboe/src/common/
DAudioClock.h50 return 0 - clock_nanosleep(clockId, TIMER_ABSTIME, &time, NULL);
67 return 0 - clock_nanosleep(clockId, 0, &time, NULL);
/third_party/rust/crates/rustix/src/backend/libc/thread/
Dsyscalls.rs87 match c::clock_nanosleep(id as c::clockid_t, flags, request, remain.as_mut_ptr()) { in clock_nanosleep_relative()
115 match c::clock_nanosleep( in clock_nanosleep_relative_old()
178 match unsafe { c::clock_nanosleep(id as c::clockid_t, flags, request, null_mut()) } { in clock_nanosleep_absolute()
197 match unsafe { c::clock_nanosleep(id as c::clockid_t, flags, &old_request, null_mut()) } { in clock_nanosleep_absolute_old()
/third_party/musl/libc-test/src/functionalext/supplement/time/time_gtest/
Dsys_clock_test.cpp318 int result = clock_nanosleep(CLOCK_MONOTONIC, 0, &req, nullptr);
334 int err = clock_nanosleep(-1, 0, &req, &rem);
349 int result = clock_nanosleep(CLOCK_THREAD_CPUTIME_ID, 0, &req, nullptr);
/third_party/musl/porting/uniproton/kernel/include/
Dtime.h105 int clock_nanosleep (clockid_t, int, const struct timespec *, struct timespec *);
152 __REDIR(clock_nanosleep, __clock_nanosleep_time64);
/third_party/musl/porting/liteos_m/kernel/include/
Dtime.h105 int clock_nanosleep (clockid_t, int, const struct timespec *, struct timespec *);
152 __REDIR(clock_nanosleep, __clock_nanosleep_time64);
/third_party/musl/porting/liteos_m/user/include/
Dtime.h104 int clock_nanosleep (clockid_t, int, const struct timespec *, struct timespec *);
151 __REDIR(clock_nanosleep, __clock_nanosleep_time64);
/third_party/musl/include/
Dtime.h106 int clock_nanosleep (clockid_t, int, const struct timespec *, struct timespec *);
153 __REDIR(clock_nanosleep, __clock_nanosleep_time64);
/third_party/musl/porting/liteos_a/kernel/include/
Dtime.h120 int clock_nanosleep (clockid_t, int, const struct timespec *, struct timespec *);
167 __REDIR(clock_nanosleep, __clock_nanosleep_time64);
/third_party/ltp/testcases/kernel/syscalls/clock_gettime/
Dleapsec01.c105 ret = clock_nanosleep(CLOCK_REALTIME, TIMER_ABSTIME, &target, NULL); in test_hrtimer_early_expiration()
156 clock_nanosleep(CLOCK_MONOTONIC, 0, &sleeptime, NULL); in run_leapsec()
/third_party/ltp/testcases/open_posix_testsuite/Documentation/
DCOVERAGE.timers28 clock_nanosleep YES* HIGH
63 - test clock_nanosleep() or nanosleep() with a variety of different signals
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/
D14-1-buildonly.c23 dummyvar = clock_nanosleep; in dummyfcn()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_nanosleep/
D13-1.c27 if (clock_nanosleep(BOGUSCLOCKID, 0, &tssleep, NULL) == EINVAL) { in main()
D11-1.c42 if (clock_nanosleep(CLOCK_REALTIME, 0, &tssleep, NULL) != in main()
D1-1.c30 if (clock_nanosleep(CLOCK_REALTIME, 0, &tssleep, NULL) != 0) { in main()
D2-1.c40 if (clock_nanosleep(CLOCK_REALTIME, flags, &tssleep, NULL) != 0) { in main()
D3-1.c41 if (clock_nanosleep(CLOCK_REALTIME, flags, &tssleep, NULL) != 0) { in main()
D1-4.c35 clock_nanosleep(CLOCK_REALTIME, 0, &tssleep, NULL); in main()
D10-1.c53 if (clock_nanosleep(CLOCK_REALTIME, 0, &tssleep, NULL) == EINTR) { in main()
/third_party/musl/compat/time32/
Dclock_nanosleep_time32.c8 int ret = clock_nanosleep(clk, flags, (&(struct timespec){ in __clock_nanosleep_time32()

1234