summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c/src/exec/posix/ChangeLog6
-rw-r--r--c/src/exec/posix/src/clockgetres.c7
-rw-r--r--cpukit/posix/ChangeLog6
-rw-r--r--cpukit/posix/src/clockgetres.c7
4 files changed, 22 insertions, 4 deletions
diff --git a/c/src/exec/posix/ChangeLog b/c/src/exec/posix/ChangeLog
index 6bc1bcba49..108cff09e2 100644
--- a/c/src/exec/posix/ChangeLog
+++ b/c/src/exec/posix/ChangeLog
@@ -1,3 +1,9 @@
+2001-01-12 Joel Sherrill <joel@OARcorp.com>
+
+ * src/clockgetres.c: Fixed match problem. We are not converting
+ an interval to a timespec -- it is actually a real number of
+ microseconds.
+
2001-01-22 Michael Hamel <mhamel@adi.co.nz>
* include/rtems/posix/semaphore.h, inline/rtems/posix/semaphore.inl,
diff --git a/c/src/exec/posix/src/clockgetres.c b/c/src/exec/posix/src/clockgetres.c
index 2cea196372..8881fb9048 100644
--- a/c/src/exec/posix/src/clockgetres.c
+++ b/c/src/exec/posix/src/clockgetres.c
@@ -36,8 +36,11 @@ int clock_getres(
case CLOCK_REALTIME:
case CLOCK_PROCESS_CPUTIME:
case CLOCK_THREAD_CPUTIME:
- if ( res )
- _POSIX_Interval_to_timespec( _TOD_Microseconds_per_tick, res );
+ if ( res ) {
+ res->tv_sec = _TOD_Microseconds_per_tick / 1000000;
+ res->tv_nsec = _TOD_Microseconds_per_tick * 1000;
+ /* _POSIX_Interval_to_timespec( _TOD_Microseconds_per_tick, res ); */
+ }
break;
default:
diff --git a/cpukit/posix/ChangeLog b/cpukit/posix/ChangeLog
index 6bc1bcba49..108cff09e2 100644
--- a/cpukit/posix/ChangeLog
+++ b/cpukit/posix/ChangeLog
@@ -1,3 +1,9 @@
+2001-01-12 Joel Sherrill <joel@OARcorp.com>
+
+ * src/clockgetres.c: Fixed match problem. We are not converting
+ an interval to a timespec -- it is actually a real number of
+ microseconds.
+
2001-01-22 Michael Hamel <mhamel@adi.co.nz>
* include/rtems/posix/semaphore.h, inline/rtems/posix/semaphore.inl,
diff --git a/cpukit/posix/src/clockgetres.c b/cpukit/posix/src/clockgetres.c
index 2cea196372..8881fb9048 100644
--- a/cpukit/posix/src/clockgetres.c
+++ b/cpukit/posix/src/clockgetres.c
@@ -36,8 +36,11 @@ int clock_getres(
case CLOCK_REALTIME:
case CLOCK_PROCESS_CPUTIME:
case CLOCK_THREAD_CPUTIME:
- if ( res )
- _POSIX_Interval_to_timespec( _TOD_Microseconds_per_tick, res );
+ if ( res ) {
+ res->tv_sec = _TOD_Microseconds_per_tick / 1000000;
+ res->tv_nsec = _TOD_Microseconds_per_tick * 1000;
+ /* _POSIX_Interval_to_timespec( _TOD_Microseconds_per_tick, res ); */
+ }
break;
default: