diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-05-16 14:11:11 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-05-16 14:11:11 +0000 |
commit | 732a07401edb4e831505319cfd4b15a9f03d94ea (patch) | |
tree | 1c912e4a373c530d08499a8dec11ed5b7cbbd560 /cpukit/posix/src | |
parent | 2011-05-16 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-732a07401edb4e831505319cfd4b15a9f03d94ea.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')
-rw-r--r-- | cpukit/posix/src/clocksettime.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpukit/posix/src/clocksettime.c b/cpukit/posix/src/clocksettime.c index aa3743d9f9..fa1528a633 100644 --- a/cpukit/posix/src/clocksettime.c +++ b/cpukit/posix/src/clocksettime.c @@ -23,6 +23,8 @@ #include <rtems/seterr.h> +#include "posixtime.h" + /*PAGE * * 14.2.1 Clocks, P1003.1b-1993, p. 263 @@ -45,11 +47,11 @@ int clock_settime( _Thread_Enable_dispatch(); } #ifdef _POSIX_CPUTIME - else if ( clock_id == CLOCK_PROCESS_CPUTIME ) + else if ( clock_id == CLOCK_PROCESS_CPUTIME_ID ) rtems_set_errno_and_return_minus_one( ENOSYS ); #endif #ifdef _POSIX_THREAD_CPUTIME - else if ( clock_id == CLOCK_THREAD_CPUTIME ) + else if ( clock_id == CLOCK_THREAD_CPUTIME_ID ) rtems_set_errno_and_return_minus_one( ENOSYS ); #endif else |