/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_clock_nanosleep.c | 44 struct timespec rqtp, rmtp; in ATF_TC_BODY() local 46 rqtp.tv_sec = 0; rqtp.tv_nsec = 0; in ATF_TC_BODY() 48 ATF_REQUIRE(clock_nanosleep(CLOCK_REALTIME, 0, &rqtp, &rmtp) == 0); in ATF_TC_BODY() 55 ATF_REQUIRE(clock_gettime(CLOCK_REALTIME, &rqtp) == 0); in ATF_TC_BODY() 57 ATF_REQUIRE(clock_nanosleep(CLOCK_REALTIME, TIMER_ABSTIME, &rqtp, &rmtp) == 0); in ATF_TC_BODY()
|
/freebsd/cddl/usr.sbin/dwatch/libexec/ |
H A D | nanosleep | 19 this struct timespec * rqtp; 30 this->rqtp = (struct timespec *)copyin(arg0, sizeof(struct timespec)); 31 this->requested_sec = (time_t)this->rqtp->tv_sec; 32 this->requested_nsec = (long)this->rqtp->tv_nsec;
|
/freebsd/lib/libc/gen/ |
H A D | sem_new.c | 345 const struct timespec *rqtp, struct timespec *rmtp) in usem_wait() argument 355 if (rqtp == NULL) { in usem_wait() 361 tms.timeout._timeout = *rqtp; in usem_wait() 367 rqtp != NULL && rmtp != NULL) { in usem_wait() 392 const struct timespec *rqtp, struct timespec *rmtp) in _sem_clockwait_np() argument 417 if (rqtp != NULL) { in _sem_clockwait_np() 418 if (rqtp->tv_nsec >= 1000000000 || rqtp->tv_nsec < 0) { in _sem_clockwait_np() 424 retval = usem_wait(&sem->_kern, clock_id, flags, rqtp, rmtp); in _sem_clockwait_np()
|
/freebsd/lib/libc/sys/ |
H A D | nanosleep.c | 40 nanosleep(const struct timespec *rqtp, struct timespec *rmtp) in nanosleep() argument 42 return (INTERPOS_SYS(nanosleep, rqtp, rmtp)); in nanosleep()
|
H A D | clock_nanosleep.c | 41 clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *rqtp, in clock_nanosleep() argument 44 return (INTERPOS_SYS(clock_nanosleep, clock_id, flags, rqtp, rmtp)); in clock_nanosleep()
|
/freebsd/contrib/openbsm/compat/ |
H A D | pidfile.h | 102 struct timespec rqtp; in pidfile_open() local 137 rqtp.tv_sec = 0; in pidfile_open() 138 rqtp.tv_nsec = 5000000; in pidfile_open() 143 nanosleep(&rqtp, 0); in pidfile_open()
|
/freebsd/lib/libutil/ |
H A D | pidfile.c | 104 struct timespec rqtp; in pidfile_read() local 108 rqtp.tv_sec = 0; in pidfile_read() 109 rqtp.tv_nsec = 5000000; in pidfile_read() 114 nanosleep(&rqtp, 0); in pidfile_read()
|
/freebsd/contrib/libfido2/examples/ |
H A D | select.c | 20 nanosleep(const struct timespec *rqtp, struct timespec *rmtp) in nanosleep() argument 27 Sleep((DWORD)(rqtp->tv_sec * 1000) + (DWORD)(rqtp->tv_nsec / 1000000)); in nanosleep()
|
/freebsd/contrib/sendmail/libsm/ |
H A D | clock.c | 513 struct timespec rqtp; local 517 rqtp.tv_sec = intvl; 518 rqtp.tv_nsec = 0; 519 nanosleep(&rqtp, NULL);
|
/freebsd/sys/compat/linux/ |
H A D | linux_time.c | 688 error = linux_get_timespec(&rqts, args->rqtp); in linux_nanosleep() 713 l_int lflags, struct timespec *rqtp, struct timespec *rmtp) in linux_common_clock_nanosleep() argument 736 return (kern_clock_nanosleep(td, clockid, flags, rqtp, rmtp)); in linux_common_clock_nanosleep() 747 error = linux_get_timespec(&rqts, args->rqtp); in linux_clock_nanosleep() 781 error = linux_get_timespec64(&rqts, args->rqtp); in linux_clock_nanosleep_time64()
|
/freebsd/contrib/libfido2/regress/ |
H A D | dev.c | 31 nanosleep(const struct timespec *rqtp, struct timespec *rmtp) in nanosleep() argument 38 Sleep((DWORD)(rqtp->tv_sec * 1000) + (DWORD)(rqtp->tv_nsec / 1000000)); in nanosleep()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/rtsan/ |
H A D | rtsan_interceptors.cpp | 257 INTERCEPTOR(int, nanosleep, const struct timespec *rqtp, in INTERCEPTOR() argument 260 return REAL(nanosleep)(rqtp, rmtp); in INTERCEPTOR()
|
/freebsd/contrib/llvm-project/compiler-rt/include/sanitizer/ |
H A D | netbsd_syscall_hooks.h | 1266 #define __sanitizer_syscall_pre_compat_50_nanosleep(rqtp, rmtp) \ argument 1267 __sanitizer_syscall_pre_impl_compat_50_nanosleep((long long)(rqtp), \ 1269 #define __sanitizer_syscall_post_compat_50_nanosleep(res, rqtp, rmtp) \ argument 1270 __sanitizer_syscall_post_impl_compat_50_nanosleep(res, (long long)(rqtp), \ 2364 #define __sanitizer_syscall_pre___nanosleep50(rqtp, rmtp) \ argument 2365 __sanitizer_syscall_pre_impl___nanosleep50((long long)(rqtp), \ 2367 #define __sanitizer_syscall_post___nanosleep50(res, rqtp, rmtp) \ argument 2368 __sanitizer_syscall_post_impl___nanosleep50(res, (long long)(rqtp), \ 2686 #define __sanitizer_syscall_pre_clock_nanosleep(clock_id, flags, rqtp, rmtp) \ argument 2688 (long long)(clock_id), (long long)(flags), (long long)(rqtp), \ [all …]
|
H A D | linux_syscall_hooks.h | 50 #define __sanitizer_syscall_pre_nanosleep(rqtp, rmtp) \ argument 51 __sanitizer_syscall_pre_impl_nanosleep((long)(rqtp), (long)(rmtp)) 52 #define __sanitizer_syscall_post_nanosleep(res, rqtp, rmtp) \ argument 53 __sanitizer_syscall_post_impl_nanosleep(res, (long)(rqtp), (long)(rmtp)) 240 #define __sanitizer_syscall_pre_clock_nanosleep(which_clock, flags, rqtp, \ argument 243 (long)(which_clock), (long)(flags), (long)(rqtp), (long)(rmtp)) 245 rqtp, rmtp) \ argument 247 res, (long)(which_clock), (long)(flags), (long)(rqtp), (long)(rmtp)) 2045 void __sanitizer_syscall_pre_impl_nanosleep(long rqtp, long rmtp); 2046 void __sanitizer_syscall_post_impl_nanosleep(long res, long rqtp, long rmtp); [all …]
|
/freebsd/sys/kern/ |
H A D | kern_time.c | 586 struct timespec *rqtp; 596 uap->rqtp, uap->rmtp)); in sys_nanosleep() 603 struct timespec *rqtp; 613 error = user_clock_nanosleep(td, uap->clock_id, uap->flags, uap->rqtp, in sys_clock_nanosleep() 585 struct timespec *rqtp; global() member 602 struct timespec *rqtp; global() member
|
H A D | systrace_args.c | 1204 uarg[a++] = (intptr_t)p->rqtp; /* const struct timespec * */ in systrace_args() 1235 uarg[a++] = (intptr_t)p->rqtp; /* const struct timespec * */ in systrace_args()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_common_syscalls.inc | 284 PRE_SYSCALL(nanosleep)(void *rqtp, void *rmtp) {} 286 POST_SYSCALL(nanosleep)(long res, void *rqtp, void *rmtp) { 288 if (rqtp) 289 POST_WRITE(rqtp, struct_timespec_sz); 572 (long which_clock, long flags, const void *rqtp, void *rmtp) { 573 if (rqtp) 574 PRE_READ(rqtp, struct_timespec_sz); 578 (long res, long which_clock, long flags, const void *rqtp, void *rmtp) {
|
/freebsd/lib/libsys/ |
H A D | _libsys.h | 607 int __sys_nanosleep(const struct timespec * rqtp, struct timespec * rmtp); 611 int __sys_clock_nanosleep(clockid_t clock_id, int flags, const struct timespec * rqtp, struct times…
|
/freebsd/sys/sys/ |
H A D | syscallsubr.h | 110 const struct timespec *rqtp, struct timespec *rmtp);
|
/freebsd/sys/compat/freebsd32/ |
H A D | freebsd32_proto.h | 212 …char rqtp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * rqtp; char rqtp_r_[PADR_… member 224 …char rqtp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * rqtp; char rqtp_r_[PADR_… member
|
H A D | freebsd32_misc.c | 2996 TIMER_RELTIME, uap->rqtp, uap->rmtp)); in freebsd32_nanosleep() 3006 uap->rqtp, uap->rmtp); in freebsd32_clock_nanosleep()
|
/freebsd/sys/i386/linux/ |
H A D | linux_systrace_args.c | 1128 uarg[a++] = (intptr_t)p->rqtp; /* const struct l_timespec * */ in systrace_args() 1898 uarg[a++] = (intptr_t)p->rqtp; /* struct l_timespec * */ in systrace_args() 3040 uarg[a++] = (intptr_t)p->rqtp; /* struct l_timespec64 * */ in systrace_args()
|
/freebsd/sys/amd64/linux32/ |
H A D | linux32_systrace_args.c | 1098 uarg[a++] = (intptr_t)p->rqtp; /* const struct l_timespec * */ in systrace_args() 1861 uarg[a++] = (intptr_t)p->rqtp; /* struct l_timespec * */ in systrace_args() 3009 uarg[a++] = (intptr_t)p->rqtp; /* struct l_timespec64 * */ in systrace_args()
|
/freebsd/sys/arm64/linux/ |
H A D | linux_systrace_args.c | 811 uarg[a++] = (intptr_t)p->rqtp; /* const struct l_timespec * */ in systrace_args() 918 uarg[a++] = (intptr_t)p->rqtp; /* struct l_timespec * */ in systrace_args()
|
/freebsd/sys/amd64/linux/ |
H A D | linux_systrace_args.c | 320 uarg[a++] = (intptr_t)p->rqtp; /* const struct l_timespec * */ in systrace_args() 1746 uarg[a++] = (intptr_t)p->rqtp; /* struct l_timespec * */ in systrace_args()
|