/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_clock_nanosleep.c | 44 struct timespec rqtp, rmtp; in ATF_TC_BODY() local 47 rmtp.tv_sec = -1; rmtp.tv_nsec = -1; in ATF_TC_BODY() 48 ATF_REQUIRE(clock_nanosleep(CLOCK_REALTIME, 0, &rqtp, &rmtp) == 0); in ATF_TC_BODY() 50 ATF_CHECK(rmtp.tv_sec == -1 && rmtp.tv_nsec == -1); in ATF_TC_BODY() 52 ATF_CHECK(rmtp.tv_sec == 0 && rmtp.tv_nsec == 0); in ATF_TC_BODY() 56 rmtp.tv_sec = -1; rmtp.tv_nsec = -1; in ATF_TC_BODY() 57 ATF_REQUIRE(clock_nanosleep(CLOCK_REALTIME, TIMER_ABSTIME, &rqtp, &rmtp) == 0); in ATF_TC_BODY() 58 ATF_CHECK(rmtp.tv_sec == -1 && rmtp.tv_nsec == -1); in ATF_TC_BODY()
|
/freebsd/sys/compat/linux/ |
H A D | linux_time.c | 694 rmtp = &rmts; in linux_nanosleep() 696 rmtp = NULL; in linux_nanosleep() 700 error2 = linux_put_timespec(rmtp, args->rmtp); in linux_nanosleep() 754 rmtp = &rmts; in linux_clock_nanosleep() 756 rmtp = NULL; in linux_clock_nanosleep() 759 &rqts, rmtp); in linux_clock_nanosleep() 762 error2 = linux_put_timespec(rmtp, args->rmtp); in linux_clock_nanosleep() 788 rmtp = &rmts; in linux_clock_nanosleep_time64() 790 rmtp = NULL; in linux_clock_nanosleep_time64() 793 &rqts, rmtp); in linux_clock_nanosleep_time64() [all …]
|
/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 | 42 struct timespec *rmtp) in clock_nanosleep() argument 44 return (INTERPOS_SYS(clock_nanosleep, clock_id, flags, rqtp, rmtp)); in clock_nanosleep()
|
/freebsd/lib/libc/gen/ |
H A D | sem_new.c | 345 const struct timespec *rqtp, struct timespec *rmtp) in usem_wait() argument 367 rqtp != NULL && rmtp != NULL) { in usem_wait() 368 *rmtp = tms.remain; in usem_wait() 392 const struct timespec *rqtp, struct timespec *rmtp) in _sem_clockwait_np() argument 424 retval = usem_wait(&sem->_kern, clock_id, flags, rqtp, rmtp); in _sem_clockwait_np()
|
/freebsd/contrib/libfido2/examples/ |
H A D | select.c | 20 nanosleep(const struct timespec *rqtp, struct timespec *rmtp) in nanosleep() argument 22 if (rmtp != NULL) { in nanosleep()
|
/freebsd/contrib/libfido2/regress/ |
H A D | dev.c | 31 nanosleep(const struct timespec *rqtp, struct timespec *rmtp) in nanosleep() argument 33 if (rmtp != NULL) { in nanosleep()
|
/freebsd/contrib/llvm-project/compiler-rt/include/sanitizer/ |
H A D | netbsd_syscall_hooks.h | 1268 (long long)(rmtp)) 1271 (long long)(rmtp)) 2366 (long long)(rmtp)) 2369 (long long)(rmtp)) 2689 (long long)(rmtp)) 2694 (long long)(rmtp)) 3816 long long rmtp); 3819 long long rmtp); 4627 long long rmtp); 4868 long long rmtp); [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)) 241 rmtp) \ 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 D | kern_time.c | 587 struct timespec *rmtp; member 596 uap->rqtp, uap->rmtp)); in sys_nanosleep() 604 struct timespec *rmtp; member 614 uap->rmtp); in sys_clock_nanosleep()
|
H A D | systrace_args.c | 1204 uarg[a++] = (intptr_t)p->rmtp; /* struct timespec * */ in systrace_args() 1235 uarg[a++] = (intptr_t)p->rmtp; /* struct timespec * */ in systrace_args()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_common_syscalls.inc | 270 PRE_SYSCALL(nanosleep)(void *rqtp, void *rmtp) {} 272 POST_SYSCALL(nanosleep)(long res, void *rqtp, void *rmtp) { 276 if (rmtp) 277 POST_WRITE(rmtp, struct_timespec_sz); 558 (long which_clock, long flags, const void *rqtp, void *rmtp) { 564 (long res, long which_clock, long flags, const void *rqtp, void *rmtp) { 566 if (rmtp) 567 POST_WRITE(rmtp, struct_timespec_sz);
|
/freebsd/lib/libsys/ |
H A D | _libsys.h | 603 int __sys_nanosleep(const struct timespec * rqtp, struct timespec * rmtp); 607 …ock_nanosleep(clockid_t clock_id, int flags, const struct timespec * rqtp, struct timespec * rmtp);
|
/freebsd/sys/sys/ |
H A D | syscallsubr.h | 109 const struct timespec *rqtp, struct timespec *rmtp);
|
/freebsd/sys/compat/freebsd32/ |
H A D | freebsd32_proto.h | 213 …char rmtp_l_[PADL_(struct timespec32 *)]; struct timespec32 * rmtp; char rmtp_r_[PADR_(struct time… member 225 …char rmtp_l_[PADL_(struct timespec32 *)]; struct timespec32 * rmtp; char rmtp_r_[PADR_(struct time… member
|
H A D | freebsd32_misc.c | 2993 TIMER_RELTIME, uap->rqtp, uap->rmtp)); in freebsd32_nanosleep() 3003 uap->rqtp, uap->rmtp); in freebsd32_clock_nanosleep()
|
H A D | freebsd32_systrace_args.c | 1181 uarg[a++] = (intptr_t)p->rmtp; /* struct timespec32 * */ in systrace_args() 1212 uarg[a++] = (intptr_t)p->rmtp; /* struct timespec32 * */ in systrace_args()
|
/freebsd/sys/i386/linux/ |
H A D | linux_systrace_args.c | 1128 uarg[a++] = (intptr_t)p->rmtp; /* struct l_timespec * */ in systrace_args() 1898 uarg[a++] = (intptr_t)p->rmtp; /* struct l_timespec * */ in systrace_args() 3040 uarg[a++] = (intptr_t)p->rmtp; /* struct l_timespec64 * */ in systrace_args()
|
H A D | linux_proto.h | 505 …char rmtp_l_[PADL_(struct l_timespec *)]; struct l_timespec * rmtp; char rmtp_r_[PADR_(struct l_ti… member 884 …char rmtp_l_[PADL_(struct l_timespec *)]; struct l_timespec * rmtp; char rmtp_r_[PADR_(struct l_ti… member 1548 …char rmtp_l_[PADL_(struct l_timespec64 *)]; struct l_timespec64 * rmtp; char rmtp_r_[PADR_(struct … member
|
/freebsd/sys/amd64/linux32/ |
H A D | linux32_systrace_args.c | 1098 uarg[a++] = (intptr_t)p->rmtp; /* struct l_timespec * */ in systrace_args() 1861 uarg[a++] = (intptr_t)p->rmtp; /* struct l_timespec * */ in systrace_args() 3009 uarg[a++] = (intptr_t)p->rmtp; /* struct l_timespec64 * */ in systrace_args()
|
H A D | linux32_proto.h | 506 …char rmtp_l_[PADL_(struct l_timespec *)]; struct l_timespec * rmtp; char rmtp_r_[PADR_(struct l_ti… member 884 …char rmtp_l_[PADL_(struct l_timespec *)]; struct l_timespec * rmtp; char rmtp_r_[PADR_(struct l_ti… member 1554 …char rmtp_l_[PADL_(struct l_timespec64 *)]; struct l_timespec64 * rmtp; char rmtp_r_[PADR_(struct … member
|
/freebsd/sys/arm64/linux/ |
H A D | linux_systrace_args.c | 811 uarg[a++] = (intptr_t)p->rmtp; /* struct l_timespec * */ in systrace_args() 918 uarg[a++] = (intptr_t)p->rmtp; /* struct l_timespec * */ in systrace_args()
|
H A D | linux_proto.h | 440 …char rmtp_l_[PADL_(struct l_timespec *)]; struct l_timespec * rmtp; char rmtp_r_[PADR_(struct l_ti… member 497 …char rmtp_l_[PADL_(struct l_timespec *)]; struct l_timespec * rmtp; char rmtp_r_[PADR_(struct l_ti… member
|
/freebsd/sys/amd64/linux/ |
H A D | linux_systrace_args.c | 320 uarg[a++] = (intptr_t)p->rmtp; /* struct l_timespec * */ in systrace_args() 1746 uarg[a++] = (intptr_t)p->rmtp; /* struct l_timespec * */ in systrace_args()
|
H A D | linux_proto.h | 177 …char rmtp_l_[PADL_(struct l_timespec *)]; struct l_timespec * rmtp; char rmtp_r_[PADR_(struct l_ti… member 818 …char rmtp_l_[PADL_(struct l_timespec *)]; struct l_timespec * rmtp; char rmtp_r_[PADR_(struct l_ti… member
|