ts_sec -> tv_sec

ts_nsec -> tv_nsec
This commit is contained in:
Nate Williams 1996-09-20 06:06:28 +00:00
parent d977b72dbd
commit 34eeb76411
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18414
2 changed files with 5 additions and 5 deletions

View file

@ -58,10 +58,10 @@ sleep(seconds)
struct timespec time_remaining;
if (seconds) {
time_to_sleep.ts_sec = seconds;
time_to_sleep.ts_nsec = 0;
time_to_sleep.tv_sec = seconds;
time_to_sleep.tv_nsec = 0;
nanosleep(&time_to_sleep,&time_remaining);
seconds = time_remaining.ts_sec;
seconds = time_remaining.tv_sec;
}
return(seconds);
#else

View file

@ -60,8 +60,8 @@ usleep(useconds)
struct timespec time_to_sleep;
if (useconds) {
time_to_sleep.ts_nsec = (useconds % 1000000) * 1000;
time_to_sleep.ts_sec = useconds / 1000000;
time_to_sleep.tv_nsec = (useconds % 1000000) * 1000;
time_to_sleep.tsvsec = useconds / 1000000;
nanosleep(&time_to_sleep,NULL);
}
#else