diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-05-16 13:55:17 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-05-16 13:55:17 +0000 |
commit | 5153d879c9cca60bd6630e5e8aa2cbf2abd1ac38 (patch) | |
tree | e5256e37e9f26ca89b46f4d64c49919af35af279 /cpukit/posix/src/clockgetres.c | |
parent | Housekeeping (diff) | |
download | rtems-5153d879c9cca60bd6630e5e8aa2cbf2abd1ac38.tar.bz2 |
2011-05-16 Ralf Corsépius <ralf.corsepius@rtems.org>
* posix/Makefile.am: Add posixtime.h.
* posix/src/clockgetres.c, posix/src/clockgettime.c,
posix/src/clocksettime.c:
Use CLOCK_PROCESS_CPUTIME_ID, CLOCK_THREAD_CPUTIME_ID.
Include posix/src/posixtime.h.
* posix/src/posixtime.h: New.
Diffstat (limited to 'cpukit/posix/src/clockgetres.c')
-rw-r--r-- | cpukit/posix/src/clockgetres.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpukit/posix/src/clockgetres.c b/cpukit/posix/src/clockgetres.c index 7507bee614..3c3e76f38f 100644 --- a/cpukit/posix/src/clockgetres.c +++ b/cpukit/posix/src/clockgetres.c @@ -28,6 +28,8 @@ #include <rtems/seterr.h> +#include "posixtime.h" + /*PAGE * * 14.2.1 Clocks, P1003.1b-1993, p. 263 @@ -48,8 +50,8 @@ int clock_getres( */ case CLOCK_REALTIME: - case CLOCK_PROCESS_CPUTIME: - case CLOCK_THREAD_CPUTIME: + case CLOCK_PROCESS_CPUTIME_ID: + case CLOCK_THREAD_CPUTIME_ID: if ( res ) { res->tv_sec = rtems_configuration_get_microseconds_per_tick() / TOD_MICROSECONDS_PER_SECOND; |