summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c/src/exec/posix/inline/priority.inl8
-rw-r--r--c/src/exec/posix/inline/rtems/posix/priority.inl8
-rw-r--r--cpukit/posix/inline/rtems/posix/priority.inl8
3 files changed, 24 insertions, 0 deletions
diff --git a/c/src/exec/posix/inline/priority.inl b/c/src/exec/posix/inline/priority.inl
index c3798ea3a8..7c6e940378 100644
--- a/c/src/exec/posix/inline/priority.inl
+++ b/c/src/exec/posix/inline/priority.inl
@@ -5,6 +5,14 @@
#ifndef __RTEMS_POSIX_PRIORITY_inl
#define __RTEMS_POSIX_PRIORITY_inl
+/*
+ * 1003.1b-1993,2.2.2.80 definition of priority, p. 19
+ *
+ * "Numericallly higher values represent higher priorities."
+ *
+ * Thus, RTEMS Core has priorities run in the opposite sense of the POSIX API.
+ */
+
STATIC INLINE boolean _POSIX_Priority_Is_valid(
int priority
)
diff --git a/c/src/exec/posix/inline/rtems/posix/priority.inl b/c/src/exec/posix/inline/rtems/posix/priority.inl
index c3798ea3a8..7c6e940378 100644
--- a/c/src/exec/posix/inline/rtems/posix/priority.inl
+++ b/c/src/exec/posix/inline/rtems/posix/priority.inl
@@ -5,6 +5,14 @@
#ifndef __RTEMS_POSIX_PRIORITY_inl
#define __RTEMS_POSIX_PRIORITY_inl
+/*
+ * 1003.1b-1993,2.2.2.80 definition of priority, p. 19
+ *
+ * "Numericallly higher values represent higher priorities."
+ *
+ * Thus, RTEMS Core has priorities run in the opposite sense of the POSIX API.
+ */
+
STATIC INLINE boolean _POSIX_Priority_Is_valid(
int priority
)
diff --git a/cpukit/posix/inline/rtems/posix/priority.inl b/cpukit/posix/inline/rtems/posix/priority.inl
index c3798ea3a8..7c6e940378 100644
--- a/cpukit/posix/inline/rtems/posix/priority.inl
+++ b/cpukit/posix/inline/rtems/posix/priority.inl
@@ -5,6 +5,14 @@
#ifndef __RTEMS_POSIX_PRIORITY_inl
#define __RTEMS_POSIX_PRIORITY_inl
+/*
+ * 1003.1b-1993,2.2.2.80 definition of priority, p. 19
+ *
+ * "Numericallly higher values represent higher priorities."
+ *
+ * Thus, RTEMS Core has priorities run in the opposite sense of the POSIX API.
+ */
+
STATIC INLINE boolean _POSIX_Priority_Is_valid(
int priority
)