Lines Matching refs:tv_nsec
979 ts.tv_nsec = ts64.tv_nsec;
984 ts.tv_nsec = ts32.tv_nsec;
993 ts.tv_nsec = 0;
999 then.tv_nsec = ts.tv_nsec;
1005 now.tv_nsec > ts.tv_nsec :
1008 then.tv_nsec = 0;
1011 then.tv_nsec = ts.tv_nsec - now.tv_nsec;
1012 if (then.tv_nsec < 0) {
1013 then.tv_nsec += NSEC_PER_SEC;
1020 kern_result = semaphore_timedwait_trap_internal((mach_port_name_t)uap->cond_sem, then.tv_sec, then.tv_nsec, __posix_sem_syscall_return);
1022 kern_result = semaphore_timedwait_signal_trap_internal(uap->cond_sem, uap->mutex_sem, then.tv_sec, then.tv_nsec, __posix_sem_syscall_return);
1075 ts.tv_nsec = uap->tv_nsec;
1079 ts.tv_nsec = 0;
1085 then.tv_nsec = ts.tv_nsec;
1091 now.tv_nsec > ts.tv_nsec :
1094 then.tv_nsec = 0;
1097 then.tv_nsec = ts.tv_nsec - now.tv_nsec;
1098 if (then.tv_nsec < 0) {
1099 then.tv_nsec += NSEC_PER_SEC;
1106 kern_result = semaphore_timedwait_trap_internal((mach_port_name_t)uap->cond_sem, then.tv_sec, then.tv_nsec, __posix_sem_syscall_return);
1108 kern_result = semaphore_timedwait_signal_trap_internal(uap->cond_sem, uap->mutex_sem, then.tv_sec, then.tv_nsec, __posix_sem_syscall_return);