summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2005-08-17 22:56:30 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2005-08-17 22:56:30 +0000
commitecfdafc62e0d9e9636fd8fb6c27acb6f3500cf28 (patch)
tree32a97af27745055e23da454f9b59172ff46bf3ad
parent2005-08-17 Andrew Sinclair <Andrew.Sinclair@elprotech.com> (diff)
downloadrtems-ecfdafc62e0d9e9636fd8fb6c27acb6f3500cf28.tar.bz2
2005-08-17 Nuno Costa <nuno-costa@iol.pt>
PR 805/rtems * include/rtems/posix/timer.h: Due to bad choice of error constants by original submitter, it was impossible to create more than 10 POSIX timers.
-rw-r--r--cpukit/posix/ChangeLog7
-rw-r--r--cpukit/posix/include/rtems/posix/timer.h4
2 files changed, 9 insertions, 2 deletions
diff --git a/cpukit/posix/ChangeLog b/cpukit/posix/ChangeLog
index 48be8ff8e3..71af722495 100644
--- a/cpukit/posix/ChangeLog
+++ b/cpukit/posix/ChangeLog
@@ -1,3 +1,10 @@
+2005-08-17 Nuno Costa <nuno-costa@iol.pt>
+
+ PR 805/rtems
+ * include/rtems/posix/timer.h: Due to bad choice of error constants by
+ original submitter, it was impossible to create more than 10 POSIX
+ timers.
+
2004-09-27 Joel Sherrill <joel@OARcorp.com>
PR 294/rtems
diff --git a/cpukit/posix/include/rtems/posix/timer.h b/cpukit/posix/include/rtems/posix/timer.h
index 5726c270f5..4932505019 100644
--- a/cpukit/posix/include/rtems/posix/timer.h
+++ b/cpukit/posix/include/rtems/posix/timer.h
@@ -22,8 +22,8 @@
/* Nanoseconds in a second */
#define NSEC_PER_SEC_C (unsigned32)1000000000
-#define NO_MORE_TIMERS_C 11 /* There is not available timers */
-#define BAD_TIMER_C 11 /* The timer does not exist in the table */
+#define NO_MORE_TIMERS_C -1 /* There are no available timers */
+#define BAD_TIMER_C -2 /* The timer does not exist in the table */
#define SECONDS_PER_YEAR_C (unsigned32)(360 * 24) * (unsigned32)(60 * 60)
#define SECONDS_PER_MONTH_C (unsigned32)( 30 * 24) * (unsigned32)(60 * 60)