Searched refs:time_to_sleep (Results 1 – 6 of 6) sorted by relevance
/freebsd/bin/sleep/ |
H A D | sleep.c | 92 struct timespec time_to_sleep; in main() local 113 original = time_to_sleep.tv_sec = (time_t)seconds; in main() 114 time_to_sleep.tv_nsec = 1e9 * (seconds - time_to_sleep.tv_sec); in main() 118 while (nanosleep(&time_to_sleep, &time_to_sleep) != 0) { in main() 124 (long)time_to_sleep.tv_sec, (long)original); in main()
|
/freebsd/lib/libc/gen/ |
H A D | usleep.c | 44 struct timespec time_to_sleep; in __usleep() local 46 time_to_sleep.tv_nsec = (useconds % 1000000) * 1000; in __usleep() 47 time_to_sleep.tv_sec = useconds / 1000000; in __usleep() 48 return (INTERPOS_SYS(nanosleep, &time_to_sleep, NULL)); in __usleep()
|
H A D | sleep.c | 46 struct timespec time_to_sleep; in __sleep() local 56 time_to_sleep.tv_sec = seconds; in __sleep() 57 time_to_sleep.tv_nsec = 0; in __sleep() 58 if (INTERPOS_SYS(nanosleep, &time_to_sleep, &time_remaining) != -1) in __sleep()
|
/freebsd/lib/libthr/thread/ |
H A D | thr_syscalls.c | 260 const struct timespec *time_to_sleep, struct timespec *time_remaining) in __thr_clock_nanosleep() argument 267 ret = __sys_clock_nanosleep(clock_id, flags, time_to_sleep, in __thr_clock_nanosleep() 275 __thr_nanosleep(const struct timespec *time_to_sleep, in __thr_nanosleep() argument 283 ret = __sys_nanosleep(time_to_sleep, time_remaining); in __thr_nanosleep()
|
/freebsd/lib/libc/net/ |
H A D | rcmd.c | 190 struct timespec time_to_sleep, time_remaining; in rcmd_af() local 192 time_to_sleep.tv_sec = timo; in rcmd_af() 193 time_to_sleep.tv_nsec = 0; in rcmd_af() 194 (void)_nanosleep(&time_to_sleep, &time_remaining); in rcmd_af()
|
/freebsd/lib/libc/yp/ |
H A D | yplib.c | 480 struct timespec time_to_sleep, time_remaining; in _yp_dobind() local 485 time_to_sleep.tv_sec = _yplib_timeout/2; in _yp_dobind() 486 time_to_sleep.tv_nsec = 0; in _yp_dobind() 487 _nanosleep(&time_to_sleep, in _yp_dobind()
|