Searched refs:tremain (Results 1 – 2 of 2) sorted by relevance
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | bsd-misc.c | 247 struct timeval tstart, tstop, tremain, time2wait; in nanosleep() local 256 tremain.tv_sec = time2wait.tv_sec - in nanosleep() 258 tremain.tv_usec = time2wait.tv_usec - in nanosleep() 260 tremain.tv_sec += tremain.tv_usec / 1000000L; in nanosleep() 261 tremain.tv_usec %= 1000000L; in nanosleep() 263 tremain.tv_sec = 0; in nanosleep() 264 tremain.tv_usec = 0; in nanosleep() 267 TIMEVAL_TO_TIMESPEC(&tremain, rem) in nanosleep()
|
/freebsd/contrib/netbsd-tests/lib/libc/gen/ |
H A D | t_sleep.c | 268 struct timespec tsa, tsb, tslp, tremain; in sleeptest() local 293 (*test)(&tslp, &tremain); in sleeptest() 297 timespecsub(&tsb, &tsa, &tremain); in sleeptest() 298 timespecsub(&tslp, &tremain, &tremain); in sleeptest() 305 delta2 = (int64_t)tremain.tv_sec * BILLION; in sleeptest() 306 delta2 += (int64_t)tremain.tv_nsec; in sleeptest()
|