From 5e7b6272fc10068c22bfedb18a26a23a37e9a7ff Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 31 May 1996 23:27:45 +0000 Subject: renamed _TOD_Ticks_since_boot as _Watchdog_Ticks_since_boot so the Watchdog Handler could timestamp the starting and stopping of timers. Since TOD is built on top of Watchdog, this avoided a circular dependency. --- c/src/exec/posix/src/sched.c | 1 + c/src/exec/posix/src/time.c | 2 +- c/src/exec/posix/src/unistd.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'c/src/exec/posix/src') diff --git a/c/src/exec/posix/src/sched.c b/c/src/exec/posix/src/sched.c index 9da0e43091..1a9a9fe38b 100644 --- a/c/src/exec/posix/src/sched.c +++ b/c/src/exec/posix/src/sched.c @@ -2,6 +2,7 @@ * $Id$ */ +#include #include #include diff --git a/c/src/exec/posix/src/time.c b/c/src/exec/posix/src/time.c index f9e5ce835f..945a550296 100644 --- a/c/src/exec/posix/src/time.c +++ b/c/src/exec/posix/src/time.c @@ -174,7 +174,7 @@ int clock_gettime( #ifdef _POSIX_CPUTIME case CLOCK_PROCESS_CPUTIME: - /* could base this on _TOD_Ticks_since_boot -- must make set work though*/ + /* could base this on _Watchdog_Ticks_since_boot -- must make set work though*/ return POSIX_NOT_IMPLEMENTED(); break; #endif diff --git a/c/src/exec/posix/src/unistd.c b/c/src/exec/posix/src/unistd.c index 44d08e592b..5ef66ada7f 100644 --- a/c/src/exec/posix/src/unistd.c +++ b/c/src/exec/posix/src/unistd.c @@ -25,7 +25,7 @@ unsigned int sleep( nanosleep( &tp, &tm ); - return tm->tv_sec; /* seconds remaining */ + return tm.tv_sec; /* seconds remaining */ } /* * 4.8.1 Get Configurable System Variables, P1003.1b-1993, p. 95 -- cgit v1.2.3