Lines Matching refs:tv_nsec
977 ts.tv_nsec = ts64.tv_nsec;
982 ts.tv_nsec = ts32.tv_nsec;
991 ts.tv_nsec = 0;
997 then.tv_nsec = ts.tv_nsec;
1003 now.tv_nsec > ts.tv_nsec :
1006 then.tv_nsec = 0;
1009 then.tv_nsec = ts.tv_nsec - now.tv_nsec;
1010 if (then.tv_nsec < 0) {
1011 then.tv_nsec += NSEC_PER_SEC;
1018 kern_result = semaphore_timedwait_trap_internal((mach_port_name_t)uap->cond_sem, then.tv_sec, then.tv_nsec, __posix_sem_syscall_return);
1020 kern_result = semaphore_timedwait_signal_trap_internal(uap->cond_sem, uap->mutex_sem, then.tv_sec, then.tv_nsec, __posix_sem_syscall_return);
1073 ts.tv_nsec = uap->tv_nsec;
1077 ts.tv_nsec = 0;
1083 then.tv_nsec = ts.tv_nsec;
1089 now.tv_nsec > ts.tv_nsec :
1092 then.tv_nsec = 0;
1095 then.tv_nsec = ts.tv_nsec - now.tv_nsec;
1096 if (then.tv_nsec < 0) {
1097 then.tv_nsec += NSEC_PER_SEC;
1104 kern_result = semaphore_timedwait_trap_internal((mach_port_name_t)uap->cond_sem, then.tv_sec, then.tv_nsec, __posix_sem_syscall_return);
1106 kern_result = semaphore_timedwait_signal_trap_internal(uap->cond_sem, uap->mutex_sem, then.tv_sec, then.tv_nsec, __posix_sem_syscall_return);