Searched refs:tremain (Results 1 – 2 of 2) sorted by relevance
| /freebsd/crypto/openssh/openbsd-compat/ |
| H A D | bsd-misc.c | 295 struct timeval tstart, tstop, tremain, time2wait; in nanosleep() local 304 tremain.tv_sec = time2wait.tv_sec - in nanosleep() 306 tremain.tv_usec = time2wait.tv_usec - in nanosleep() 308 tremain.tv_sec += tremain.tv_usec / 1000000L; in nanosleep() 309 tremain.tv_usec %= 1000000L; in nanosleep() 311 tremain.tv_sec = 0; in nanosleep() 312 tremain.tv_usec = 0; in nanosleep() 315 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()
|