Searched refs:time_to_sleep (Results 1 – 6 of 6) sorted by relevance
/dragonfly/bin/sleep/ |
H A D | sleep.c | 48 struct timespec time_to_sleep; in main() local 96 time_to_sleep.tv_sec = (time_t)l; in main() 99 time_to_sleep.tv_nsec = 0; in main() 105 time_to_sleep.tv_nsec += (*p - '0') * l; in main() 111 if (!neg && (time_to_sleep.tv_sec > 0 || time_to_sleep.tv_nsec > 0)) in main() 112 nanosleep(&time_to_sleep, NULL); in main()
|
/dragonfly/lib/libc/gen/ |
H A D | usleep.c | 43 struct timespec time_to_sleep; in __usleep() local 45 time_to_sleep.tv_nsec = (useconds % 1000000) * 1000; in __usleep() 46 time_to_sleep.tv_sec = useconds / 1000000; in __usleep() 47 return (_nanosleep(&time_to_sleep, NULL)); in __usleep()
|
H A D | sleep.c | 45 struct timespec time_to_sleep; in __sleep() local 55 time_to_sleep.tv_sec = seconds; in __sleep() 56 time_to_sleep.tv_nsec = 0; in __sleep() 57 if (_nanosleep(&time_to_sleep, &time_remaining) != -1) in __sleep()
|
/dragonfly/lib/libc/net/ |
H A D | rcmd.c | 188 struct timespec time_to_sleep, time_remaining; in rcmd_af() local 190 time_to_sleep.tv_sec = timo; in rcmd_af() 191 time_to_sleep.tv_nsec = 0; in rcmd_af() 192 _nanosleep(&time_to_sleep, &time_remaining); in rcmd_af()
|
/dragonfly/lib/libthread_xu/thread/ |
H A D | thr_syscalls.c | 332 __nanosleep(const struct timespec *time_to_sleep, in __nanosleep() argument 340 ret = __sys_nanosleep(time_to_sleep, time_remaining); in __nanosleep() 350 const struct timespec *time_to_sleep, struct timespec *time_remaining) in __clock_nanosleep() argument 357 ret = __sys_clock_nanosleep(clock_id, flags, time_to_sleep, in __clock_nanosleep()
|
/dragonfly/lib/libc/yp/ |
H A D | yplib.c | 493 struct timespec time_to_sleep, time_remaining; in _yp_dobind() local 498 time_to_sleep.tv_sec = _yplib_timeout/2; in _yp_dobind() 499 time_to_sleep.tv_nsec = 0; in _yp_dobind() 500 _nanosleep(&time_to_sleep, in _yp_dobind()
|