Searched refs:time_to_sleep (Results 1 - 6 of 6) sorted by relevance

/freebsd-13-stable/lib/libc/gen/
H A Dusleep.c48 struct timespec time_to_sleep; local
50 time_to_sleep.tv_nsec = (useconds % 1000000) * 1000;
51 time_to_sleep.tv_sec = useconds / 1000000;
53 __libc_interposing[INTERPOS_nanosleep])(&time_to_sleep, NULL));
H A Dsleep.c50 struct timespec time_to_sleep; local
60 time_to_sleep.tv_sec = seconds;
61 time_to_sleep.tv_nsec = 0;
64 &time_to_sleep, &time_remaining) != -1)
/freebsd-13-stable/bin/sleep/
H A Dsleep.c66 struct timespec time_to_sleep; local
83 original = time_to_sleep.tv_sec = (time_t)d;
84 time_to_sleep.tv_nsec = 1e9 * (d - time_to_sleep.tv_sec);
93 while (nanosleep(&time_to_sleep, &time_to_sleep) != 0) {
97 (int)time_to_sleep.tv_sec, (int)original);
/freebsd-13-stable/lib/libthr/thread/
H A Dthr_syscalls.c266 const struct timespec *time_to_sleep, struct timespec *time_remaining)
273 ret = __sys_clock_nanosleep(clock_id, flags, time_to_sleep,
281 __thr_nanosleep(const struct timespec *time_to_sleep, argument
289 ret = __sys_nanosleep(time_to_sleep, time_remaining);
265 __thr_clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *time_to_sleep, struct timespec *time_remaining) argument
/freebsd-13-stable/lib/libc/net/
H A Drcmd.c196 struct timespec time_to_sleep, time_remaining; local
198 time_to_sleep.tv_sec = timo;
199 time_to_sleep.tv_nsec = 0;
200 (void)_nanosleep(&time_to_sleep, &time_remaining);
/freebsd-13-stable/lib/libc/yp/
H A Dyplib.c487 struct timespec time_to_sleep, time_remaining; local
492 time_to_sleep.tv_sec = _yplib_timeout/2;
493 time_to_sleep.tv_nsec = 0;
494 _nanosleep(&time_to_sleep,

Completed in 62 milliseconds