Lines Matching defs:sleep
2075 nanosleep(), this may sleep shorter if interrupted by signals. */
2086 struct timespec sleep, remaining;
2087 sleep.tv_sec = (long) seconds;
2088 sleep.tv_nsec = 1000000000 * (seconds - (long) seconds);
2089 while (nanosleep (&sleep, &remaining) < 0 && errno == EINTR)
2091 sleeping period and return to sleep. */
2092 sleep = remaining;
2098 1,000,000. If the period is larger than that, use sleep
2100 sleep (seconds);
2109 struct timeval sleep;
2110 sleep.tv_sec = (long) seconds;
2111 sleep.tv_usec = 1000000 * (seconds - (long) seconds);
2112 select (0, NULL, NULL, NULL, &sleep);
2115 actually slept, we can't return to sleep. Using gettimeofday to