Home
last modified time | relevance | path

Searched refs:rqtp (Results 1 – 25 of 30) sorted by relevance

12

/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_clock_nanosleep.c44 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 Dnanosleep19 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 Dsem_new.c345 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 Dnanosleep.c40 nanosleep(const struct timespec *rqtp, struct timespec *rmtp) in nanosleep() argument
42 return (INTERPOS_SYS(nanosleep, rqtp, rmtp)); in nanosleep()
H A Dclock_nanosleep.c41 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 Dpidfile.h102 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 Dpidfile.c104 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 Dselect.c20 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 Dclock.c513 struct timespec rqtp; local
517 rqtp.tv_sec = intvl;
518 rqtp.tv_nsec = 0;
519 nanosleep(&rqtp, NULL);
/freebsd/sys/compat/linux/
H A Dlinux_time.c688 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 Ddev.c31 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/include/sanitizer/
H A Dnetbsd_syscall_hooks.h1266 #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), \
3815 void __sanitizer_syscall_pre_impl_compat_50_nanosleep(long long rqtp,
3818 long long rqtp,
4626 void __sanitizer_syscall_post_impl___nanosleep50(long long res, long long rqtp,
4867 long long rqtp,
[all …]
H A Dlinux_syscall_hooks.h50 #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))
2038 void __sanitizer_syscall_pre_impl_nanosleep(long rqtp, long rmtp);
2145 long rqtp, long rmtp);
[all …]
/freebsd/sys/kern/
H A Dkern_time.c586 struct timespec *rqtp; member
596 uap->rqtp, uap->rmtp)); in sys_nanosleep()
603 struct timespec *rqtp; member
613 error = user_clock_nanosleep(td, uap->clock_id, uap->flags, uap->rqtp, in sys_clock_nanosleep()
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_syscalls.inc270 PRE_SYSCALL(nanosleep)(void *rqtp, void *rmtp) {}
272 POST_SYSCALL(nanosleep)(long res, void *rqtp, void *rmtp) {
274 if (rqtp)
275 POST_WRITE(rqtp, struct_timespec_sz);
558 (long which_clock, long flags, const void *rqtp, void *rmtp) {
559 if (rqtp)
560 PRE_READ(rqtp, struct_timespec_sz);
564 (long res, long which_clock, long flags, const void *rqtp, void *rmtp) {
/freebsd/lib/libsys/
H A D_libsys.h603 int __sys_nanosleep(const struct timespec * rqtp, struct timespec * rmtp);
607 int __sys_clock_nanosleep(clockid_t clock_id, int flags, const struct timespec * rqtp, struct times…
/freebsd/sys/sys/
H A Dsyscallsubr.h109 const struct timespec *rqtp, struct timespec *rmtp);
/freebsd/sys/compat/freebsd32/
H A Dfreebsd32_proto.h212 …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
/freebsd/sys/i386/linux/
H A Dlinux_systrace_args.c1127 uarg[a++] = (intptr_t)p->rqtp; /* const struct l_timespec * */ in systrace_args()
1897 uarg[a++] = (intptr_t)p->rqtp; /* struct l_timespec * */ in systrace_args()
3039 uarg[a++] = (intptr_t)p->rqtp; /* struct l_timespec64 * */ in systrace_args()
H A Dlinux_proto.h504 …char rqtp_l_[PADL_(const struct l_timespec *)]; const struct l_timespec * rqtp; char rqtp_r_[PADR_… member
883 …char rqtp_l_[PADL_(struct l_timespec *)]; struct l_timespec * rqtp; char rqtp_r_[PADR_(struct l_ti… member
1547 …char rqtp_l_[PADL_(struct l_timespec64 *)]; struct l_timespec64 * rqtp; char rqtp_r_[PADR_(struct … member
/freebsd/sys/amd64/linux32/
H A Dlinux32_systrace_args.c1097 uarg[a++] = (intptr_t)p->rqtp; /* const struct l_timespec * */ in systrace_args()
1860 uarg[a++] = (intptr_t)p->rqtp; /* struct l_timespec * */ in systrace_args()
3008 uarg[a++] = (intptr_t)p->rqtp; /* struct l_timespec64 * */ in systrace_args()
H A Dlinux32_proto.h505 …char rqtp_l_[PADL_(const struct l_timespec *)]; const struct l_timespec * rqtp; char rqtp_r_[PADR_… member
883 …char rqtp_l_[PADL_(struct l_timespec *)]; struct l_timespec * rqtp; char rqtp_r_[PADR_(struct l_ti… member
1553 …char rqtp_l_[PADL_(struct l_timespec64 *)]; struct l_timespec64 * rqtp; char rqtp_r_[PADR_(struct … member
/freebsd/sys/arm64/linux/
H A Dlinux_systrace_args.c810 uarg[a++] = (intptr_t)p->rqtp; /* const struct l_timespec * */ in systrace_args()
917 uarg[a++] = (intptr_t)p->rqtp; /* struct l_timespec * */ in systrace_args()
H A Dlinux_proto.h439 …char rqtp_l_[PADL_(const struct l_timespec *)]; const struct l_timespec * rqtp; char rqtp_r_[PADR_… member
496 …char rqtp_l_[PADL_(struct l_timespec *)]; struct l_timespec * rqtp; char rqtp_r_[PADR_(struct l_ti… member
/freebsd/sys/amd64/linux/
H A Dlinux_systrace_args.c319 uarg[a++] = (intptr_t)p->rqtp; /* const struct l_timespec * */ in systrace_args()
1745 uarg[a++] = (intptr_t)p->rqtp; /* struct l_timespec * */ in systrace_args()

12