/third_party/rust/crates/rustix/tests/thread/ |
H A D | clocks.rs | 16 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 D | monotonic.rs | 2 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 D | 8-1.c | 26 * 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 D | 16-1.c | 126 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 D | proc.h | 55 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 D | 3-1.c | 33 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 D | clock.rs | 73 /// `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 D | 8-2.c | 60 nanosleep(&aio_wait_ts, NULL); in main() 79 nanosleep(&aio_wait_ts, NULL); in main()
|
H A D | 8-1.c | 60 nanosleep(&aio_wait_ts, NULL); in main() 79 nanosleep(&aio_wait_ts, NULL); in main()
|
H A D | 8-3.c | 60 nanosleep(&aio_wait_ts, NULL); in main() 79 nanosleep(&aio_wait_ts, NULL); in main()
|
H A D | 8-4.c | 60 nanosleep(&aio_wait_ts, NULL); in main() 79 nanosleep(&aio_wait_ts, NULL); in main()
|
H A D | 9-1.c | 60 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 D | 3-1.c | 79 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 D | 10000-1.c | 8 * 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 D | time.h | 101 int nanosleep (const struct timespec *, struct timespec *); 148 __REDIR(nanosleep, __nanosleep_time64);
|
/third_party/musl/porting/liteos_m/user/include/ |
H A D | time.h | 100 int nanosleep (const struct timespec *, struct timespec *); 147 __REDIR(nanosleep, __nanosleep_time64);
|
/third_party/musl/porting/liteos_m/kernel/include/ |
H A D | time.h | 101 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 D | 2-1.c | 129 nanosleep(&completion_wait_ts, NULL); in main() 147 nanosleep(&completion_wait_ts, NULL); in main()
|
H A D | 1-1.c | 102 nanosleep(&completion_wait_ts, NULL); in main() 151 nanosleep(&completion_wait_ts, NULL); in main()
|
H A D | 4-1.c | 98 nanosleep(&completion_wait_ts, NULL); in main() 118 nanosleep(&completion_wait_ts, NULL); in main()
|
/third_party/musl/Benchmark/musl/ |
H A D | libc_time.cpp | 36 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 D | syscalls.rs | 205 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 D | time.h | 116 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 D | 8-1.c | 186 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 D | 9-1.c | 165 nanosleep(&processing_completion_ts, NULL); in do_test() 183 nanosleep(&processing_completion_ts, NULL); in do_test()
|