41 struct timespec a, b, *requested, *remaining;
47 requested->tv_sec = microseconds / 1000000;
48 requested->tv_nsec = (microseconds % 1000000) * 1000;
50 while ((ret = nanosleep (requested, remaining)) && (errno == EINTR))
52 struct timespec *temp;
54 requested = remaining;
int openvas_sleep(unsigned int seconds)
Sleep for some number of seconds, handling interrupts.
int openvas_usleep(unsigned int microseconds)
Sleep for some number of microseconds, handling interrupts.