Home
last modified time | relevance | path

Searched refs:nanosleep (Results 1 - 25 of 196) sorted by relevance

12345678

/third_party/rust/crates/rustix/tests/thread/
H A Dclocks.rs16 rustix::thread::{nanosleep, NanosleepRelativeResult, Timespec},
22 match nanosleep(&Timespec { in test_invalid_nanosleep()
29 match nanosleep(&Timespec { in test_invalid_nanosleep()
36 match nanosleep(&Timespec { in test_invalid_nanosleep()
43 match nanosleep(&Timespec { in test_invalid_nanosleep()
165 match nanosleep(&Timespec { in test_zero_nanosleep()
/third_party/rust/crates/rustix/tests/time/
H A Dmonotonic.rs2 use rustix::thread::nanosleep;
24 let _rem = nanosleep(&Timespec { in test_monotonic_clock_with_sleep_1s()
38 let _rem = nanosleep(&Timespec { in test_monotonic_clock_with_sleep_1ms()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_create/
H A D8-1.c26 * was set to return PTS_UNRESOLVED if nanosleep() was interrupted,
109 if (nanosleep(&ts, &tsleft) == -1) { in main()
110 printf("child nanosleep() interrupted\n"); in main()
113 //nanosleep() not interrupted in main()
126 if (nanosleep(&tsp, &rem) == -1) { in main()
128 if (nanosleep(&tsp, &rem) == -1) { in main()
129 printf("parent nanosleep() interrupted\n"); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/
H A D16-1.c126 nanosleep(&ts, NULL); in main()
133 if (nanosleep(&ts, NULL) in main()
154 if (nanosleep(&ts, NULL) == 0) { in main()
/third_party/ltp/testcases/open_posix_testsuite/include/
H A Dproc.h55 nanosleep(&wait_step_ts, NULL); in tst_process_state_wait3()
69 nanosleep(&maxwait_ts, NULL); in tst_process_state_wait3()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/
H A D3-1.c33 nanosleep(&cleanup_ts, NULL); in cleanup_func()
44 nanosleep(&cancel_wait_ts, NULL); in sleep_loop()
/third_party/rust/crates/rustix/src/thread/
H A Dclock.rs73 /// `nanosleep(request, remain)`—Sleeps for a duration.
81 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/nanosleep.html
82 /// [Linux]: https://man7.org/linux/man-pages/man2/nanosleep.2.html
84 pub fn nanosleep(request: &Timespec) -> NanosleepRelativeResult { in nanosleep() functions
85 backend::thread::syscalls::nanosleep(request) in nanosleep()
88 /// A return type for `nanosleep` and `clock_nanosleep_relative`.
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/
H A D8-2.c60 nanosleep(&aio_wait_ts, NULL); in main()
79 nanosleep(&aio_wait_ts, NULL); in main()
H A D8-1.c60 nanosleep(&aio_wait_ts, NULL); in main()
79 nanosleep(&aio_wait_ts, NULL); in main()
H A D8-3.c60 nanosleep(&aio_wait_ts, NULL); in main()
79 nanosleep(&aio_wait_ts, NULL); in main()
H A D8-4.c60 nanosleep(&aio_wait_ts, NULL); in main()
79 nanosleep(&aio_wait_ts, NULL); in main()
H A D9-1.c60 nanosleep(&aio_wait_ts, NULL); in main()
78 nanosleep(&aio_wait_ts, NULL); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_return/
H A D3-1.c79 nanosleep(&completion_wait_ts, NULL); in main()
105 nanosleep(&completion_wait_ts, NULL); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/
H A D10000-1.c8 * Test nanosleep() on a variety of valid and invalid input parameters.
14 * For invalid parameters, nanosleep should fail with -1 exit and
64 if (nanosleep(&tssleepfor, &tsstorage) == 0) { in main()
90 printf("nanosleep() did not return 0 on success\n"); in main()
100 if (nanosleep(&tssleepfor, &tsstorage) == -1) { in main()
106 printf("nanosleep() did not return -1 on failure\n"); in main()
/third_party/musl/porting/uniproton/kernel/include/
H A Dtime.h101 int nanosleep (const struct timespec *, struct timespec *);
148 __REDIR(nanosleep, __nanosleep_time64);
/third_party/musl/porting/liteos_m/user/include/
H A Dtime.h100 int nanosleep (const struct timespec *, struct timespec *);
147 __REDIR(nanosleep, __nanosleep_time64);
/third_party/musl/porting/liteos_m/kernel/include/
H A Dtime.h101 int nanosleep (const struct timespec *, struct timespec *);
148 __REDIR(nanosleep, __nanosleep_time64);
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/
H A D2-1.c129 nanosleep(&completion_wait_ts, NULL); in main()
147 nanosleep(&completion_wait_ts, NULL); in main()
H A D1-1.c102 nanosleep(&completion_wait_ts, NULL); in main()
151 nanosleep(&completion_wait_ts, NULL); in main()
H A D4-1.c98 nanosleep(&completion_wait_ts, NULL); in main()
118 nanosleep(&completion_wait_ts, NULL); in main()
/third_party/musl/Benchmark/musl/
H A Dlibc_time.cpp36 benchmark::DoNotOptimize(nanosleep(&req, &rem)); in Bm_function_Nanosleep_0ns()
45 benchmark::DoNotOptimize(nanosleep(&req, &rem)); in Bm_function_Nanosleep_10ns()
54 benchmark::DoNotOptimize(nanosleep(&req, &rem)); in Bm_function_Nanosleep_100ns()
/third_party/rust/crates/rustix/src/backend/libc/thread/
H A Dsyscalls.rs205 pub(crate) fn nanosleep(request: &Timespec) -> NanosleepRelativeResult {
208 // 32-bit gnu version: libc has `nanosleep` but it is not y2038 safe by
228 // Main version: libc is y2038 safe and has `nanosleep`.
234 match ret(c::nanosleep(request, remain.as_mut_ptr())) {
259 match ret(c::nanosleep(&old_request, old_remain.as_mut_ptr())) { in nanosleep_old()
/third_party/musl/porting/liteos_a/kernel/include/
H A Dtime.h116 int nanosleep (const struct timespec *, struct timespec *);
163 __REDIR(nanosleep, __nanosleep_time64);
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_post/
H A D8-1.c186 nanosleep(&sync_wait_ts, NULL); in main()
207 nanosleep(&sync_wait_ts, NULL); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/
H A D9-1.c165 nanosleep(&processing_completion_ts, NULL); in do_test()
183 nanosleep(&processing_completion_ts, NULL); in do_test()

Completed in 7 milliseconds

12345678