/freebsd/lib/libthr/thread/ |
H A D | thr_join.c | 38 const struct timespec *abstime); 64 const struct timespec *abstime) in _pthread_timedjoin_np() argument 66 if (abstime == NULL || abstime->tv_sec < 0 || abstime->tv_nsec < 0 || in _pthread_timedjoin_np() 67 abstime->tv_nsec >= 1000000000) in _pthread_timedjoin_np() 70 return (join_common(pthread, thread_return, abstime, false)); in _pthread_timedjoin_np() 85 const struct timespec *abstime, bool peek) in join_common() argument 134 if (abstime != NULL) { in join_common() 136 TIMESPEC_SUB(&ts2, abstime, &ts); in join_common()
|
H A D | thr_cond.c | 50 const struct timespec * abstime); 53 const struct timespec *abstime, int cancel); 205 const struct timespec *abstime, int cancel) in cond_wait_kernel() argument 277 const struct timespec *abstime, int cancel) in cond_wait_user() argument 353 const struct timespec *abstime, int cancel) in cond_wait_common() argument 399 const struct timespec * __restrict abstime) in _thr_cond_timedwait() argument 402 if (abstime == NULL || abstime->tv_sec < 0 || abstime->tv_nsec < 0 || in _thr_cond_timedwait() 403 abstime->tv_nsec >= 1000000000) in _thr_cond_timedwait() 411 const struct timespec *abstime) in __pthread_cond_timedwait() argument 414 if (abstime == NULL || abstime->tv_sec < 0 || abstime->tv_nsec < 0 || in __pthread_cond_timedwait() [all …]
|
H A D | thr_rwlock.c | 169 rwlock_rdlock_common(pthread_rwlock_t *rwlock, const struct timespec *abstime) in rwlock_rdlock_common() argument 208 if (__predict_false(abstime && in rwlock_rdlock_common() 209 (abstime->tv_nsec >= 1000000000 || abstime->tv_nsec < 0))) in rwlock_rdlock_common() 214 ret = __thr_rwlock_rdlock(&prwlock->lock, flags, abstime); in rwlock_rdlock_common() 238 const struct timespec * __restrict abstime) in _pthread_rwlock_timedrdlock() argument 241 return (rwlock_rdlock_common(rwlock, abstime)); in _pthread_rwlock_timedrdlock() 322 if (__predict_false(abstime && in rwlock_wrlock_common() 323 (abstime->tv_nsec >= 1000000000 || abstime->tv_nsec < 0))) in rwlock_wrlock_common() 328 ret = __thr_rwlock_wrlock(&prwlock->lock, abstime); in rwlock_wrlock_common() 356 const struct timespec * __restrict abstime) in _pthread_rwlock_timedwrlock() argument [all …]
|
H A D | thr_mutex.c | 76 const struct timespec *abstime); 648 const struct timespec *abstime) in mutex_lock_sleep() argument 655 return (mutex_self_lock(m, abstime)); in mutex_lock_sleep() 698 if (abstime == NULL) in mutex_lock_sleep() 701 abstime->tv_nsec >= 1000000000)) in mutex_lock_sleep() 891 if (abstime) { in mutex_self_lock() 892 if (abstime->tv_sec < 0 || abstime->tv_nsec < 0 || in mutex_self_lock() 897 TIMESPEC_SUB(&ts2, abstime, &ts1); in mutex_self_lock() 916 if (abstime) { in mutex_self_lock() 917 if (abstime->tv_sec < 0 || abstime->tv_nsec < 0 || in mutex_self_lock() [all …]
|
H A D | thr_sem.c | 62 const struct timespec * __restrict abstime); 71 const struct timespec * __restrict abstime); 106 const struct timespec * __restrict abstime) in _sem_timedwait_compat() argument 108 return _libc_sem_timedwait_compat(sem, abstime); in _sem_timedwait_compat()
|
H A D | thr_umtx.c | 110 const struct timespec *abstime) in __thr_umutex_timedlock() argument 117 if (abstime == NULL) { in __thr_umutex_timedlock() 123 timeout._timeout = *abstime; in __thr_umutex_timedlock() 207 const struct timespec *abstime, int shared) in _thr_umtx_timedwait_uint() argument 212 if (abstime == NULL) { in _thr_umtx_timedwait_uint() 218 timeout._timeout = *abstime; in _thr_umtx_timedwait_uint()
|
H A D | thr_kern.c | 190 const struct timespec *abstime) in _thr_sleep() argument 197 clockid, abstime, 0); in _thr_sleep()
|
/freebsd/sys/kern/ |
H A D | uipc_sem.c | 773 struct timespec abstime; in sys_ksem_timedwait() local 780 if (uap->abstime == NULL) in sys_ksem_timedwait() 783 error = copyin(uap->abstime, &abstime, sizeof(abstime)); in sys_ksem_timedwait() 786 if (abstime.tv_nsec >= 1000000000 || abstime.tv_nsec < 0) in sys_ksem_timedwait() 788 ts = &abstime; in sys_ksem_timedwait() 807 struct timespec *abstime) in kern_sem_wait() argument 839 else if (abstime == NULL) in kern_sem_wait() 843 ts1 = *abstime; in kern_sem_wait() 997 if (uap->abstime == NULL) in freebsd32_ksem_timedwait() 1005 if (abstime.tv_nsec >= 1000000000 || abstime.tv_nsec < 0) in freebsd32_ksem_timedwait() [all …]
|
/freebsd/lib/libc/gen/ |
H A D | sem.c | 315 _umtx_wait_uint(volatile unsigned *mtx, unsigned id, const struct timespec *abstime) in _umtx_wait_uint() argument 320 if (abstime == NULL) { in _umtx_wait_uint() 326 timeout._timeout = *abstime; in _umtx_wait_uint() 365 const struct timespec * __restrict abstime) in _libc_sem_timedwait_compat() argument 390 if (abstime) { in _libc_sem_timedwait_compat() 391 if (abstime->tv_nsec >= 1000000000 || abstime->tv_nsec < 0) { in _libc_sem_timedwait_compat() 399 retval = _umtx_wait_uint(&(*sem)->count, 0, abstime); in _libc_sem_timedwait_compat()
|
H A D | sem_new.c | 432 const struct timespec * __restrict abstime) in _sem_timedwait() argument 435 return (_sem_clockwait_np(sem, CLOCK_REALTIME, TIMER_ABSTIME, abstime, in _sem_timedwait()
|
/freebsd/contrib/sendmail/libmilter/ |
H A D | monitor.c | 117 struct timespec abstime; local 120 abstime.tv_sec = end; 121 abstime.tv_nsec = 0; 123 &abstime);
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | evthread_pthread.c | 144 struct timeval now, abstime; in evthread_posix_cond_wait() local 147 evutil_timeradd(&now, tv, &abstime); in evthread_posix_cond_wait() 148 ts.tv_sec = abstime.tv_sec; in evthread_posix_cond_wait() 149 ts.tv_nsec = abstime.tv_usec*1000; in evthread_posix_cond_wait()
|
H A D | evutil_time.c | 407 ev_uint64_t abstime, usec; in evutil_gettime_monotonic_() local 415 abstime = mach_absolute_time(); in evutil_gettime_monotonic_() 416 usec = (abstime * base->mach_timebase_units.numer) in evutil_gettime_monotonic_()
|
/freebsd/contrib/libevent/ |
H A D | evthread_pthread.c | 144 struct timeval now, abstime; in evthread_posix_cond_wait() local 147 evutil_timeradd(&now, tv, &abstime); in evthread_posix_cond_wait() 148 ts.tv_sec = abstime.tv_sec; in evthread_posix_cond_wait() 149 ts.tv_nsec = abstime.tv_usec*1000; in evthread_posix_cond_wait()
|
H A D | evutil_time.c | 407 ev_uint64_t abstime, usec; in evutil_gettime_monotonic_() local 415 abstime = mach_absolute_time(); in evutil_gettime_monotonic_() 416 usec = (abstime * base->mach_timebase_units.numer) in evutil_gettime_monotonic_()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/dd/ |
H A D | dd_interceptors.cpp | 123 const timespec *abstime) { in INTERCEPTOR() argument 125 int res = REAL(pthread_rwlock_timedrdlock)(m, abstime); in INTERCEPTOR() 148 const timespec *abstime) { in INTERCEPTOR() argument 150 int res = REAL(pthread_rwlock_timedwrlock)(m, abstime); in INTERCEPTOR() 194 const timespec *abstime) { in INTERCEPTOR() argument 199 int res = REAL(pthread_cond_timedwait)(cond, m, abstime); in INTERCEPTOR()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_interceptors_posix.cpp | 1128 const struct timespec *abstime) { in TSAN_INTERCEPTOR() argument 1129 SCOPED_INTERCEPTOR_RAW(pthread_timedjoin_np, th, ret, abstime); in TSAN_INTERCEPTOR() 1132 int res = BLOCK_REAL(pthread_timedjoin_np)(th, ret, abstime); in TSAN_INTERCEPTOR() 1261 __sanitizer_clockid_t clock, void *abstime) { in INTERCEPTOR() argument 1366 SCOPED_TSAN_INTERCEPTOR(pthread_mutex_timedlock, m, abstime); in TSAN_INTERCEPTOR() 1367 int res = REAL(pthread_mutex_timedlock)(m, abstime); in TSAN_INTERCEPTOR() 1386 __sanitizer_clockid_t clock, void *abstime) { in TSAN_INTERCEPTOR() argument 1389 int res = REAL(pthread_mutex_clocklock)(m, clock, abstime); in TSAN_INTERCEPTOR() 1513 SCOPED_TSAN_INTERCEPTOR(pthread_rwlock_timedrdlock, m, abstime); in TSAN_INTERCEPTOR() 1514 int res = REAL(pthread_rwlock_timedrdlock)(m, abstime); in TSAN_INTERCEPTOR() [all …]
|
/freebsd/sys/sys/ |
H A D | _semaphore.h | 44 int ksem_timedwait(semid_t id, const struct timespec *abstime);
|
/freebsd/contrib/wpa/src/utils/ |
H A D | os_unix.c | 115 uint64_t abstime, nano; in os_get_reltime() 123 abstime = mach_absolute_time(); in os_get_reltime() 124 nano = (abstime * info.numer) / info.denom; in os_get_reltime()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/ |
H A D | hwasan_interceptors.cpp | 327 const struct timespec *abstime) { in INTERCEPTOR() argument 330 result = REAL(pthread_timedjoin_np)(thread, ret, abstime); in INTERCEPTOR()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/lsan/ |
H A D | lsan_interceptors.cpp | 514 const struct timespec *abstime) { in INTERCEPTOR() argument 517 result = REAL(pthread_timedjoin_np)(thread, ret, abstime); in INTERCEPTOR()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/ |
H A D | asan_interceptors.cpp | 326 const struct timespec *abstime) { in INTERCEPTOR() argument 329 result = REAL(pthread_timedjoin_np)(thread, ret, abstime); in INTERCEPTOR()
|
/freebsd/sys/contrib/openzfs/lib/libzpool/ |
H A D | kernel.c | 360 cv_timedwait(kcondvar_t *cv, kmutex_t *mp, clock_t abstime) in cv_timedwait() argument 367 delta = abstime - ddi_get_lbolt(); in cv_timedwait()
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | zfs_context.h | 333 extern int cv_timedwait(kcondvar_t *cv, kmutex_t *mp, clock_t abstime);
|
/freebsd/contrib/llvm-project/compiler-rt/include/sanitizer/ |
H A D | netbsd_syscall_hooks.h | 1344 #define __sanitizer_syscall_pre__ksem_timedwait(id, abstime) \ argument 1346 (long long)(abstime)) 1347 #define __sanitizer_syscall_post__ksem_timedwait(res, id, abstime) \ argument 1349 (long long)(abstime)) 3864 long long abstime); 3866 long long abstime);
|