Home
last modified time | relevance | path

Searched refs:abstime (Results 1 – 14 of 14) sorted by relevance

/titanic_50/usr/src/lib/libc/port/sys/
H A Dtime_util.c71 const timespec_t *abstime, timespec_t *reltime) in abstime_to_reltime() argument
80 if (abstime->tv_nsec >= now.tv_nsec) { in abstime_to_reltime()
81 reltime->tv_sec = abstime->tv_sec - now.tv_sec; in abstime_to_reltime()
82 reltime->tv_nsec = abstime->tv_nsec - now.tv_nsec; in abstime_to_reltime()
84 reltime->tv_sec = abstime->tv_sec - now.tv_sec - 1; in abstime_to_reltime()
85 reltime->tv_nsec = abstime->tv_nsec - now.tv_nsec + NANOSEC; in abstime_to_reltime()
102 if ((ulong_t)abstime->tv_nsec >= NANOSEC) in abstime_to_reltime()
103 reltime->tv_nsec = abstime->tv_nsec; in abstime_to_reltime()
/titanic_50/usr/src/cmd/sendmail/libmilter/
H A Dmonitor.c119 struct timespec abstime; local
122 abstime.tv_sec = end;
123 abstime.tv_nsec = 0;
125 &abstime);
/titanic_50/usr/src/lib/libfakekernel/common/
H A Dcond.c104 cv_timedwait(kcondvar_t *cv, kmutex_t *mp, clock_t abstime) in cv_timedwait() argument
108 delta = abstime - ddi_get_lbolt(); in cv_timedwait()
113 cv_timedwait_sig(kcondvar_t *cv, kmutex_t *mp, clock_t abstime) in cv_timedwait_sig() argument
117 delta = abstime - ddi_get_lbolt(); in cv_timedwait_sig()
/titanic_50/usr/src/lib/libc/port/threads/
H A Dc11_thr.c159 const struct timespec *_RESTRICT_KYWD abstime) in mtx_timedlock() argument
163 ret = pthread_mutex_timedlock(mtx, abstime); in mtx_timedlock()
H A Dsema.c219 sema_timedwait(sema_t *sp, const timespec_t *abstime) in sema_timedwait() argument
224 abstime_to_reltime(CLOCK_REALTIME, abstime, &tslocal); in sema_timedwait()
H A Drwlock.c798 const struct timespec *_RESTRICT_KYWD abstime) in pthread_rwlock_timedrdlock() argument
804 abstime_to_reltime(CLOCK_REALTIME, abstime, &tslocal); in pthread_rwlock_timedrdlock()
895 pthread_rwlock_timedwrlock(pthread_rwlock_t *rwlp, const timespec_t *abstime) in pthread_rwlock_timedwrlock() argument
901 abstime_to_reltime(CLOCK_REALTIME, abstime, &tslocal); in pthread_rwlock_timedwrlock()
H A Dsynch.c2343 const struct timespec *_RESTRICT_KYWD abstime) in pthread_mutex_timedlock() argument
2349 abstime_to_reltime(CLOCK_REALTIME, abstime, &tslocal); in pthread_mutex_timedlock()
3588 __cond_timedwait(cond_t *cvp, mutex_t *mp, const timespec_t *abstime) in __cond_timedwait() argument
3600 abstime_to_reltime(clock_id, abstime, &reltime); in __cond_timedwait()
3609 if ((hrtime_t)(uint32_t)abstime->tv_sec * NANOSEC + in __cond_timedwait()
3610 abstime->tv_nsec > gethrtime()) in __cond_timedwait()
3617 cond_timedwait(cond_t *cvp, mutex_t *mp, const timespec_t *abstime) in cond_timedwait() argument
3622 error = __cond_timedwait(cvp, mp, abstime); in cond_timedwait()
3636 const struct timespec *_RESTRICT_KYWD abstime) in pthread_cond_timedwait() argument
3640 error = cond_timedwait((cond_t *)cvp, (mutex_t *)mp, abstime); in pthread_cond_timedwait()
/titanic_50/usr/src/lib/libc/port/rt/
H A Dsem.c301 sem_timedwait(sem_t *sem, const timespec_t *abstime) in sem_timedwait() argument
307 if ((error = sema_timedwait((sema_t *)sem, abstime)) != 0) { in sem_timedwait()
/titanic_50/usr/src/cmd/rcm_daemon/common/
H A Drcm_lock.c1266 timestruc_t abstime; in rcmd_start_timer() local
1274 abstime.tv_sec = time(NULL) + timeout; in rcmd_start_timer()
1284 &abstime); in rcmd_start_timer()
1307 abstime.tv_sec = time(NULL) + timeout; in rcmd_start_timer()
1316 abstime.tv_sec = barrier.last_update + timeout; in rcmd_start_timer()
/titanic_50/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dpac.c519 krb5_ui_8 abstime; in k5_time_to_seconds_since_1970() local
523 abstime = ntTime > 0 ? ntTime - NT_TIME_EPOCH : -ntTime; in k5_time_to_seconds_since_1970()
525 if (abstime > KRB5_INT32_MAX) { in k5_time_to_seconds_since_1970()
529 *elapsedSeconds = abstime; in k5_time_to_seconds_since_1970()
/titanic_50/usr/src/lib/libzpool/common/
H A Dkernel.c307 cv_timedwait(kcondvar_t *cv, kmutex_t *mp, clock_t abstime) in cv_timedwait() argument
314 delta = abstime - ddi_get_lbolt(); in cv_timedwait()
/titanic_50/usr/src/uts/common/contract/
H A Ddevice.c2206 clock_t abstime; in ct_barrier_wait_for_empty() local
2210 abstime = ddi_get_lbolt() + drv_usectohz(secs*1000000); in ct_barrier_wait_for_empty()
2213 &(DEVI(dip)->devi_ct_lock), abstime) == -1) { in ct_barrier_wait_for_empty()
/titanic_50/usr/src/lib/libzpool/common/sys/
H A Dzfs_context.h287 extern clock_t cv_timedwait(kcondvar_t *cv, kmutex_t *mp, clock_t abstime);
/titanic_50/usr/src/cmd/devfsadm/
H A Ddevfsadm.c2403 timestruc_t abstime; in minor_fini_thread() local
2410 abstime.tv_sec = time(NULL) + minor_fini_timeout; in minor_fini_thread()
2411 abstime.tv_nsec = 0; in minor_fini_thread()
2413 &minor_fini_mutex, &abstime); in minor_fini_thread()