diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-05-31 23:27:45 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-05-31 23:27:45 +0000 |
commit | 5e7b6272fc10068c22bfedb18a26a23a37e9a7ff (patch) | |
tree | 16be850e6b7abcabe3b503f7c3669ddcef0b0805 /c/src/exec/posix | |
parent | added checks to validate values passed to set attribute routines (diff) | |
download | rtems-5e7b6272fc10068c22bfedb18a26a23a37e9a7ff.tar.bz2 |
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.
Diffstat (limited to 'c/src/exec/posix')
-rw-r--r-- | c/src/exec/posix/src/sched.c | 1 | ||||
-rw-r--r-- | c/src/exec/posix/src/time.c | 2 | ||||
-rw-r--r-- | c/src/exec/posix/src/unistd.c | 2 |
3 files changed, 3 insertions, 2 deletions
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 <assert.h> #include <sched.h> #include <rtems/system.h> 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 |