[rtems commit] posix: Create priority implementation header
Sebastian Huber
sebh at rtems.org
Mon Jul 22 14:51:43 UTC 2013
Module: rtems
Branch: master
Commit: 97552c98b630294cf9d5efb523e1e15db8df686f
Changeset: http://git.rtems.org/rtems/commit/?id=97552c98b630294cf9d5efb523e1e15db8df686f
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Jul 19 14:15:59 2013 +0200
posix: Create priority implementation header
Move implementation specific parts of priority.h and priority.inl into
new header file priorityimpl.h. Remove priority.h since there is no
application visible API.
---
cpukit/posix/Makefile.am | 3 +-
.../rtems/posix/{priority.h => priorityimpl.h} | 28 ++++++++++----
cpukit/posix/inline/rtems/posix/priority.inl | 39 --------------------
cpukit/posix/preinstall.am | 10 ++----
cpukit/posix/src/mutex.c | 2 +-
cpukit/posix/src/mutexattrdestroy.c | 2 +-
cpukit/posix/src/mutexattrgetprioceiling.c | 2 +-
cpukit/posix/src/mutexattrgetprotocol.c | 2 +-
cpukit/posix/src/mutexattrgetpshared.c | 2 +-
cpukit/posix/src/mutexattrgettype.c | 2 +-
cpukit/posix/src/mutexattrinit.c | 2 +-
cpukit/posix/src/mutexattrsetprioceiling.c | 2 +-
cpukit/posix/src/mutexattrsetprotocol.c | 2 +-
cpukit/posix/src/mutexattrsetpshared.c | 2 +-
cpukit/posix/src/mutexattrsettype.c | 2 +-
cpukit/posix/src/mutexdestroy.c | 2 +-
cpukit/posix/src/mutexgetprioceiling.c | 2 +-
cpukit/posix/src/mutexinit.c | 2 +-
cpukit/posix/src/mutexlock.c | 2 +-
cpukit/posix/src/mutexlocksupp.c | 2 +-
cpukit/posix/src/mutexsetprioceiling.c | 2 +-
cpukit/posix/src/mutextimedlock.c | 2 +-
cpukit/posix/src/mutextrylock.c | 2 +-
cpukit/posix/src/mutexunlock.c | 2 +-
cpukit/posix/src/psxpriorityisvalid.c | 2 +-
cpukit/posix/src/psxtransschedparam.c | 2 +-
cpukit/posix/src/pthread.c | 2 +-
cpukit/posix/src/pthreadcreate.c | 2 +-
cpukit/posix/src/pthreadgetschedparam.c | 2 +-
cpukit/posix/src/pthreadinitthreads.c | 2 +-
cpukit/posix/src/pthreadsetschedparam.c | 2 +-
cpukit/posix/src/sched_getprioritymax.c | 2 +-
cpukit/posix/src/sched_getprioritymin.c | 2 +-
cpukit/posix/src/sched_getscheduler.c | 2 +-
cpukit/posix/src/sched_setparam.c | 2 +-
cpukit/posix/src/sched_setscheduler.c | 2 +-
cpukit/posix/src/sched_yield.c | 2 +-
cpukit/sapi/src/posixapi.c | 2 +-
testsuites/psxtests/psx05/init.c | 1 -
39 files changed, 58 insertions(+), 91 deletions(-)
diff --git a/cpukit/posix/Makefile.am b/cpukit/posix/Makefile.am
index 2ad712b..c4e6685 100644
--- a/cpukit/posix/Makefile.am
+++ b/cpukit/posix/Makefile.am
@@ -35,7 +35,7 @@ include_rtems_posix_HEADERS += include/rtems/posix/mqueueimpl.h
include_rtems_posix_HEADERS += include/rtems/posix/mutex.h
include_rtems_posix_HEADERS += include/rtems/posix/muteximpl.h
include_rtems_posix_HEADERS += include/rtems/posix/posixapi.h
-include_rtems_posix_HEADERS += include/rtems/posix/priority.h
+include_rtems_posix_HEADERS += include/rtems/posix/priorityimpl.h
include_rtems_posix_HEADERS += include/rtems/posix/psignal.h
include_rtems_posix_HEADERS += include/rtems/posix/psignalimpl.h
include_rtems_posix_HEADERS += include/rtems/posix/pthread.h
@@ -52,7 +52,6 @@ include_rtems_posix_HEADERS += include/rtems/posix/spinlock.h
include_rtems_posix_HEADERS += inline/rtems/posix/key.inl
include_rtems_posix_HEADERS += inline/rtems/posix/pthread.inl
-include_rtems_posix_HEADERS += inline/rtems/posix/priority.inl
include_rtems_posix_HEADERS += inline/rtems/posix/timer.inl
include_rtems_posix_HEADERS += inline/rtems/posix/rwlock.inl
include_rtems_posix_HEADERS += inline/rtems/posix/spinlock.inl
diff --git a/cpukit/posix/include/rtems/posix/priority.h b/cpukit/posix/include/rtems/posix/priorityimpl.h
similarity index 89%
rename from cpukit/posix/include/rtems/posix/priority.h
rename to cpukit/posix/include/rtems/posix/priorityimpl.h
index e9ee2f9..63bb5e2 100644
--- a/cpukit/posix/include/rtems/posix/priority.h
+++ b/cpukit/posix/include/rtems/posix/priorityimpl.h
@@ -16,8 +16,14 @@
* http://www.rtems.com/license/LICENSE.
*/
-#ifndef _RTEMS_POSIX_PRIORITY_H
-#define _RTEMS_POSIX_PRIORITY_H
+#ifndef _RTEMS_POSIX_PRIORITYIMPL_H
+#define _RTEMS_POSIX_PRIORITYIMPL_H
+
+#include <rtems/score/priority.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
/**
* @defgroup POSIX_PRIORITY POSIX Priority Support
@@ -29,8 +35,6 @@
*/
/**@{**/
-#include <rtems/score/priority.h>
-
/**
* 1003.1b-1993,2.2.2.80 definition of priority, p. 19
*
@@ -85,7 +89,10 @@ bool _POSIX_Priority_Is_valid(
*/
RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core(
int priority
-);
+)
+{
+ return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
+}
/**
* @brief Convert SuperCore priority To POSIX priority.
@@ -99,10 +106,15 @@ RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core(
*/
RTEMS_INLINE_ROUTINE int _POSIX_Priority_From_core(
Priority_Control priority
-);
-
-#include <rtems/posix/priority.inl>
+)
+{
+ return (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
+}
/** @} */
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff --git a/cpukit/posix/inline/rtems/posix/priority.inl b/cpukit/posix/inline/rtems/posix/priority.inl
deleted file mode 100644
index cae2242..0000000
--- a/cpukit/posix/inline/rtems/posix/priority.inl
+++ /dev/null
@@ -1,39 +0,0 @@
-/**
- * @file
- *
- * @brief Inline Methods Related to POSIX Priority Management
- *
- * This defines the static inline methods related to POSIX priority management.
- */
-
-/*
- * COPYRIGHT (c) 1989-2011.
- * On-Line Applications Research Corporation (OAR).
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.com/license/LICENSE.
- */
-
-#ifndef _RTEMS_POSIX_PRIORITY_H
-# error "Never use <rtems/posix/priority.inl> directly; include <rtems/posix/priority.h> instead."
-#endif
-
-#ifndef _RTEMS_POSIX_PRIORITY_INL
-#define _RTEMS_POSIX_PRIORITY_INL
-
-RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core(
- int priority
-)
-{
- return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
-}
-
-RTEMS_INLINE_ROUTINE int _POSIX_Priority_From_core(
- Priority_Control priority
-)
-{
- return (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
-}
-
-#endif
diff --git a/cpukit/posix/preinstall.am b/cpukit/posix/preinstall.am
index 21d2098..4548628 100644
--- a/cpukit/posix/preinstall.am
+++ b/cpukit/posix/preinstall.am
@@ -84,9 +84,9 @@ $(PROJECT_INCLUDE)/rtems/posix/posixapi.h: include/rtems/posix/posixapi.h $(PROJ
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/posixapi.h
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/posixapi.h
-$(PROJECT_INCLUDE)/rtems/posix/priority.h: include/rtems/posix/priority.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp)
- $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/priority.h
-PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/priority.h
+$(PROJECT_INCLUDE)/rtems/posix/priorityimpl.h: include/rtems/posix/priorityimpl.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp)
+ $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/priorityimpl.h
+PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/priorityimpl.h
$(PROJECT_INCLUDE)/rtems/posix/psignal.h: include/rtems/posix/psignal.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/psignal.h
@@ -148,10 +148,6 @@ $(PROJECT_INCLUDE)/rtems/posix/pthread.inl: inline/rtems/posix/pthread.inl $(PRO
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/pthread.inl
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/pthread.inl
-$(PROJECT_INCLUDE)/rtems/posix/priority.inl: inline/rtems/posix/priority.inl $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp)
- $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/priority.inl
-PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/priority.inl
-
$(PROJECT_INCLUDE)/rtems/posix/timer.inl: inline/rtems/posix/timer.inl $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/timer.inl
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/timer.inl
diff --git a/cpukit/posix/src/mutex.c b/cpukit/posix/src/mutex.c
index 31892db..4a5c678 100644
--- a/cpukit/posix/src/mutex.c
+++ b/cpukit/posix/src/mutex.c
@@ -30,7 +30,7 @@
#include <rtems/score/mpci.h>
#endif
#include <rtems/posix/muteximpl.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/time.h>
/*
diff --git a/cpukit/posix/src/mutexattrdestroy.c b/cpukit/posix/src/mutexattrdestroy.c
index 3220638..8c077e8 100644
--- a/cpukit/posix/src/mutexattrdestroy.c
+++ b/cpukit/posix/src/mutexattrdestroy.c
@@ -25,7 +25,7 @@
#include <rtems/score/coremuteximpl.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/muteximpl.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/time.h>
/**
diff --git a/cpukit/posix/src/mutexattrgetprioceiling.c b/cpukit/posix/src/mutexattrgetprioceiling.c
index 7903b3f..c58e3f5 100644
--- a/cpukit/posix/src/mutexattrgetprioceiling.c
+++ b/cpukit/posix/src/mutexattrgetprioceiling.c
@@ -25,7 +25,7 @@
#include <rtems/score/coremuteximpl.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/muteximpl.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/time.h>
/*
diff --git a/cpukit/posix/src/mutexattrgetprotocol.c b/cpukit/posix/src/mutexattrgetprotocol.c
index 46533a1..c00d0e2 100644
--- a/cpukit/posix/src/mutexattrgetprotocol.c
+++ b/cpukit/posix/src/mutexattrgetprotocol.c
@@ -25,7 +25,7 @@
#include <rtems/score/coremuteximpl.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/muteximpl.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/time.h>
/*
diff --git a/cpukit/posix/src/mutexattrgetpshared.c b/cpukit/posix/src/mutexattrgetpshared.c
index 63afe57..810858e 100644
--- a/cpukit/posix/src/mutexattrgetpshared.c
+++ b/cpukit/posix/src/mutexattrgetpshared.c
@@ -25,7 +25,7 @@
#include <rtems/score/coremuteximpl.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/muteximpl.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/time.h>
/*
diff --git a/cpukit/posix/src/mutexattrgettype.c b/cpukit/posix/src/mutexattrgettype.c
index 97ea551..2dfef98 100644
--- a/cpukit/posix/src/mutexattrgettype.c
+++ b/cpukit/posix/src/mutexattrgettype.c
@@ -25,7 +25,7 @@
#include <rtems/score/coremuteximpl.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/muteximpl.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/time.h>
#if defined(_UNIX98_THREAD_MUTEX_ATTRIBUTES)
diff --git a/cpukit/posix/src/mutexattrinit.c b/cpukit/posix/src/mutexattrinit.c
index d862cdc..a711c38 100644
--- a/cpukit/posix/src/mutexattrinit.c
+++ b/cpukit/posix/src/mutexattrinit.c
@@ -25,7 +25,7 @@
#include <rtems/score/coremuteximpl.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/muteximpl.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/time.h>
/**
diff --git a/cpukit/posix/src/mutexattrsetprioceiling.c b/cpukit/posix/src/mutexattrsetprioceiling.c
index 49935bb..3f7cc50 100644
--- a/cpukit/posix/src/mutexattrsetprioceiling.c
+++ b/cpukit/posix/src/mutexattrsetprioceiling.c
@@ -25,7 +25,7 @@
#include <rtems/score/coremuteximpl.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/muteximpl.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/time.h>
/*
diff --git a/cpukit/posix/src/mutexattrsetprotocol.c b/cpukit/posix/src/mutexattrsetprotocol.c
index 4718606..c771542 100644
--- a/cpukit/posix/src/mutexattrsetprotocol.c
+++ b/cpukit/posix/src/mutexattrsetprotocol.c
@@ -25,7 +25,7 @@
#include <rtems/score/coremuteximpl.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/muteximpl.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/time.h>
/*
diff --git a/cpukit/posix/src/mutexattrsetpshared.c b/cpukit/posix/src/mutexattrsetpshared.c
index 9075094..cc865e6 100644
--- a/cpukit/posix/src/mutexattrsetpshared.c
+++ b/cpukit/posix/src/mutexattrsetpshared.c
@@ -25,7 +25,7 @@
#include <rtems/score/coremuteximpl.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/muteximpl.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/time.h>
/*
diff --git a/cpukit/posix/src/mutexattrsettype.c b/cpukit/posix/src/mutexattrsettype.c
index 43a977c..c6fff82 100644
--- a/cpukit/posix/src/mutexattrsettype.c
+++ b/cpukit/posix/src/mutexattrsettype.c
@@ -25,7 +25,7 @@
#include <rtems/score/coremuteximpl.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/muteximpl.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/time.h>
#if defined(_UNIX98_THREAD_MUTEX_ATTRIBUTES)
diff --git a/cpukit/posix/src/mutexdestroy.c b/cpukit/posix/src/mutexdestroy.c
index 986ebb3..9950d72 100644
--- a/cpukit/posix/src/mutexdestroy.c
+++ b/cpukit/posix/src/mutexdestroy.c
@@ -25,7 +25,7 @@
#include <rtems/score/coremuteximpl.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/muteximpl.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/time.h>
/*
diff --git a/cpukit/posix/src/mutexgetprioceiling.c b/cpukit/posix/src/mutexgetprioceiling.c
index b276505..53298e2 100644
--- a/cpukit/posix/src/mutexgetprioceiling.c
+++ b/cpukit/posix/src/mutexgetprioceiling.c
@@ -28,7 +28,7 @@
#include <rtems/score/mpci.h>
#endif
#include <rtems/posix/muteximpl.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/time.h>
/*
diff --git a/cpukit/posix/src/mutexinit.c b/cpukit/posix/src/mutexinit.c
index 36844c8..e7663c9 100644
--- a/cpukit/posix/src/mutexinit.c
+++ b/cpukit/posix/src/mutexinit.c
@@ -25,7 +25,7 @@
#include <rtems/score/coremuteximpl.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/muteximpl.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/time.h>
/**
diff --git a/cpukit/posix/src/mutexlock.c b/cpukit/posix/src/mutexlock.c
index 7df3511..9ccb405 100644
--- a/cpukit/posix/src/mutexlock.c
+++ b/cpukit/posix/src/mutexlock.c
@@ -28,7 +28,7 @@
#include <rtems/score/mpci.h>
#endif
#include <rtems/posix/muteximpl.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/time.h>
/*
diff --git a/cpukit/posix/src/mutexlocksupp.c b/cpukit/posix/src/mutexlocksupp.c
index 3bcf924..c617285 100644
--- a/cpukit/posix/src/mutexlocksupp.c
+++ b/cpukit/posix/src/mutexlocksupp.c
@@ -28,7 +28,7 @@
#include <rtems/score/mpci.h>
#endif
#include <rtems/posix/muteximpl.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/time.h>
/*
diff --git a/cpukit/posix/src/mutexsetprioceiling.c b/cpukit/posix/src/mutexsetprioceiling.c
index 90ac2a3..74ce50c 100644
--- a/cpukit/posix/src/mutexsetprioceiling.c
+++ b/cpukit/posix/src/mutexsetprioceiling.c
@@ -25,7 +25,7 @@
#include <rtems/score/coremuteximpl.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/muteximpl.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/time.h>
/*
diff --git a/cpukit/posix/src/mutextimedlock.c b/cpukit/posix/src/mutextimedlock.c
index b054a3f..bcf7fdd 100644
--- a/cpukit/posix/src/mutextimedlock.c
+++ b/cpukit/posix/src/mutextimedlock.c
@@ -28,7 +28,7 @@
#include <rtems/score/mpci.h>
#endif
#include <rtems/posix/muteximpl.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/time.h>
/**
diff --git a/cpukit/posix/src/mutextrylock.c b/cpukit/posix/src/mutextrylock.c
index 2e65af0..2f8615c 100644
--- a/cpukit/posix/src/mutextrylock.c
+++ b/cpukit/posix/src/mutextrylock.c
@@ -28,7 +28,7 @@
#include <rtems/score/mpci.h>
#endif
#include <rtems/posix/muteximpl.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/time.h>
/**
diff --git a/cpukit/posix/src/mutexunlock.c b/cpukit/posix/src/mutexunlock.c
index a7dbd22..d167357 100644
--- a/cpukit/posix/src/mutexunlock.c
+++ b/cpukit/posix/src/mutexunlock.c
@@ -28,7 +28,7 @@
#include <rtems/score/mpci.h>
#endif
#include <rtems/posix/muteximpl.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/time.h>
/*
diff --git a/cpukit/posix/src/psxpriorityisvalid.c b/cpukit/posix/src/psxpriorityisvalid.c
index eda424e..7e7c579 100644
--- a/cpukit/posix/src/psxpriorityisvalid.c
+++ b/cpukit/posix/src/psxpriorityisvalid.c
@@ -19,7 +19,7 @@
#endif
#include <rtems/system.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
bool _POSIX_Priority_Is_valid(
int priority
diff --git a/cpukit/posix/src/psxtransschedparam.c b/cpukit/posix/src/psxtransschedparam.c
index 3c42ee1..e528aca 100644
--- a/cpukit/posix/src/psxtransschedparam.c
+++ b/cpukit/posix/src/psxtransschedparam.c
@@ -23,7 +23,7 @@
#include <rtems/system.h>
#include <rtems/posix/pthread.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/time.h>
int _POSIX_Thread_Translate_sched_param(
diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c
index e52f2e9..1aa64c7 100644
--- a/cpukit/posix/src/pthread.c
+++ b/cpukit/posix/src/pthread.c
@@ -32,7 +32,7 @@
#include <rtems/score/wkspace.h>
#include <rtems/posix/cancel.h>
#include <rtems/posix/pthread.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/psignalimpl.h>
#include <rtems/posix/config.h>
#include <rtems/posix/key.h>
diff --git a/cpukit/posix/src/pthreadcreate.c b/cpukit/posix/src/pthreadcreate.c
index 118dcaf..78e77ac 100644
--- a/cpukit/posix/src/pthreadcreate.c
+++ b/cpukit/posix/src/pthreadcreate.c
@@ -27,7 +27,7 @@
#include <rtems/system.h>
#include <rtems/score/thread.h>
#include <rtems/posix/pthread.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/time.h>
#include <rtems/score/apimutex.h>
diff --git a/cpukit/posix/src/pthreadgetschedparam.c b/cpukit/posix/src/pthreadgetschedparam.c
index ee43071..0060682 100644
--- a/cpukit/posix/src/pthreadgetschedparam.c
+++ b/cpukit/posix/src/pthreadgetschedparam.c
@@ -26,7 +26,7 @@
#include <rtems/system.h>
#include <rtems/posix/pthread.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
int pthread_getschedparam(
pthread_t thread,
diff --git a/cpukit/posix/src/pthreadinitthreads.c b/cpukit/posix/src/pthreadinitthreads.c
index 8b17e06..df92c2e 100644
--- a/cpukit/posix/src/pthreadinitthreads.c
+++ b/cpukit/posix/src/pthreadinitthreads.c
@@ -30,7 +30,7 @@
#include <rtems/score/wkspace.h>
#include <rtems/posix/cancel.h>
#include <rtems/posix/pthread.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/config.h>
#include <rtems/posix/key.h>
#include <rtems/posix/time.h>
diff --git a/cpukit/posix/src/pthreadsetschedparam.c b/cpukit/posix/src/pthreadsetschedparam.c
index 5fcc816..e7a6161 100644
--- a/cpukit/posix/src/pthreadsetschedparam.c
+++ b/cpukit/posix/src/pthreadsetschedparam.c
@@ -27,7 +27,7 @@
#include <rtems/system.h>
#include <rtems/posix/pthread.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/time.h>
int pthread_setschedparam(
diff --git a/cpukit/posix/src/sched_getprioritymax.c b/cpukit/posix/src/sched_getprioritymax.c
index ab4c205..5b41311 100644
--- a/cpukit/posix/src/sched_getprioritymax.c
+++ b/cpukit/posix/src/sched_getprioritymax.c
@@ -25,7 +25,7 @@
#include <rtems/system.h>
#include <rtems/seterr.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
int sched_get_priority_max(
int policy
diff --git a/cpukit/posix/src/sched_getprioritymin.c b/cpukit/posix/src/sched_getprioritymin.c
index d419e66..81f7872 100644
--- a/cpukit/posix/src/sched_getprioritymin.c
+++ b/cpukit/posix/src/sched_getprioritymin.c
@@ -23,7 +23,7 @@
#include <rtems/system.h>
#include <rtems/seterr.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
/**
* 13.3.6 Get Scheduling Parameter Limits, P1003.1b-1993, p. 258
diff --git a/cpukit/posix/src/sched_getscheduler.c b/cpukit/posix/src/sched_getscheduler.c
index 92da28f..ed958e0 100644
--- a/cpukit/posix/src/sched_getscheduler.c
+++ b/cpukit/posix/src/sched_getscheduler.c
@@ -27,7 +27,7 @@
#include <rtems/score/tod.h>
#include <rtems/score/thread.h>
#include <rtems/seterr.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/time.h>
int sched_getscheduler(
diff --git a/cpukit/posix/src/sched_setparam.c b/cpukit/posix/src/sched_setparam.c
index e291292..6a2047d 100644
--- a/cpukit/posix/src/sched_setparam.c
+++ b/cpukit/posix/src/sched_setparam.c
@@ -27,7 +27,7 @@
#include <rtems/score/tod.h>
#include <rtems/score/thread.h>
#include <rtems/seterr.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/time.h>
int sched_setparam(
diff --git a/cpukit/posix/src/sched_setscheduler.c b/cpukit/posix/src/sched_setscheduler.c
index fef66f2..1ce173f 100644
--- a/cpukit/posix/src/sched_setscheduler.c
+++ b/cpukit/posix/src/sched_setscheduler.c
@@ -25,7 +25,7 @@
#include <rtems/score/tod.h>
#include <rtems/score/thread.h>
#include <rtems/seterr.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/time.h>
int sched_setscheduler(
diff --git a/cpukit/posix/src/sched_yield.c b/cpukit/posix/src/sched_yield.c
index d9e5d9b..d976f10 100644
--- a/cpukit/posix/src/sched_yield.c
+++ b/cpukit/posix/src/sched_yield.c
@@ -26,7 +26,7 @@
#include <rtems/score/tod.h>
#include <rtems/score/thread.h>
#include <rtems/seterr.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/time.h>
int sched_yield( void )
diff --git a/cpukit/sapi/src/posixapi.c b/cpukit/sapi/src/posixapi.c
index f2f138d..a9d88f4 100644
--- a/cpukit/sapi/src/posixapi.c
+++ b/cpukit/sapi/src/posixapi.c
@@ -35,7 +35,7 @@
#include <rtems/posix/mqueueimpl.h>
#include <rtems/posix/muteximpl.h>
#include <rtems/posix/posixapi.h>
-#include <rtems/posix/priority.h>
+#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/psignalimpl.h>
#include <rtems/posix/pthread.h>
#include <rtems/posix/rwlock.h>
diff --git a/testsuites/psxtests/psx05/init.c b/testsuites/psxtests/psx05/init.c
index a9b95db..06b5a37 100644
--- a/testsuites/psxtests/psx05/init.c
+++ b/testsuites/psxtests/psx05/init.c
@@ -16,7 +16,6 @@
#define CONFIGURE_INIT
#include "system.h"
#include <errno.h>
-#include <rtems/posix/priority.h>
#define MUTEX_BAD_ID 0xfffffffe
More information about the vc
mailing list