summaryrefslogtreecommitdiffstats
path: root/cpukit/posix
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix')
-rw-r--r--cpukit/posix/src/barrierattrdestroy.c1
-rw-r--r--cpukit/posix/src/cond.c1
-rw-r--r--cpukit/posix/src/condattrdestroy.c1
-rw-r--r--cpukit/posix/src/condattrgetpshared.c1
-rw-r--r--cpukit/posix/src/condattrinit.c1
-rw-r--r--cpukit/posix/src/condattrsetpshared.c1
-rw-r--r--cpukit/posix/src/condbroadcast.c1
-rw-r--r--cpukit/posix/src/conddefaultattributes.c1
-rw-r--r--cpukit/posix/src/conddestroy.c1
-rw-r--r--cpukit/posix/src/condget.c1
-rw-r--r--cpukit/posix/src/condinit.c1
-rw-r--r--cpukit/posix/src/condsignal.c1
-rw-r--r--cpukit/posix/src/condsignalsupp.c1
-rw-r--r--cpukit/posix/src/condtimedwait.c1
-rw-r--r--cpukit/posix/src/condwait.c1
-rw-r--r--cpukit/posix/src/condwaitsupp.c1
-rw-r--r--cpukit/posix/src/killinfo.c4
-rw-r--r--cpukit/posix/src/psignal.c36
-rw-r--r--cpukit/posix/src/rwlockattrdestroy.c1
19 files changed, 16 insertions, 41 deletions
diff --git a/cpukit/posix/src/barrierattrdestroy.c b/cpukit/posix/src/barrierattrdestroy.c
index 76dca52d4d..6fe52f4de2 100644
--- a/cpukit/posix/src/barrierattrdestroy.c
+++ b/cpukit/posix/src/barrierattrdestroy.c
@@ -23,7 +23,6 @@
#include <rtems/system.h>
#include <rtems/score/object.h>
-#include <rtems/score/states.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/condimpl.h>
#include <rtems/posix/time.h>
diff --git a/cpukit/posix/src/cond.c b/cpukit/posix/src/cond.c
index f35cfe1742..c7b91fba88 100644
--- a/cpukit/posix/src/cond.c
+++ b/cpukit/posix/src/cond.c
@@ -25,7 +25,6 @@
#include <rtems/system.h>
#include <rtems/config.h>
#include <rtems/score/object.h>
-#include <rtems/score/states.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/condimpl.h>
#include <rtems/posix/time.h>
diff --git a/cpukit/posix/src/condattrdestroy.c b/cpukit/posix/src/condattrdestroy.c
index 485fb6958e..a8f1c63bc7 100644
--- a/cpukit/posix/src/condattrdestroy.c
+++ b/cpukit/posix/src/condattrdestroy.c
@@ -23,7 +23,6 @@
#include <rtems/system.h>
#include <rtems/score/object.h>
-#include <rtems/score/states.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/condimpl.h>
#include <rtems/posix/time.h>
diff --git a/cpukit/posix/src/condattrgetpshared.c b/cpukit/posix/src/condattrgetpshared.c
index 5b7bcb098e..42e0121c2f 100644
--- a/cpukit/posix/src/condattrgetpshared.c
+++ b/cpukit/posix/src/condattrgetpshared.c
@@ -23,7 +23,6 @@
#include <rtems/system.h>
#include <rtems/score/object.h>
-#include <rtems/score/states.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/condimpl.h>
#include <rtems/posix/time.h>
diff --git a/cpukit/posix/src/condattrinit.c b/cpukit/posix/src/condattrinit.c
index 188ec76be8..4007e3ac2a 100644
--- a/cpukit/posix/src/condattrinit.c
+++ b/cpukit/posix/src/condattrinit.c
@@ -23,7 +23,6 @@
#include <rtems/system.h>
#include <rtems/score/object.h>
-#include <rtems/score/states.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/condimpl.h>
#include <rtems/posix/time.h>
diff --git a/cpukit/posix/src/condattrsetpshared.c b/cpukit/posix/src/condattrsetpshared.c
index 4aceb4940a..d3b3564d90 100644
--- a/cpukit/posix/src/condattrsetpshared.c
+++ b/cpukit/posix/src/condattrsetpshared.c
@@ -23,7 +23,6 @@
#include <rtems/system.h>
#include <rtems/score/object.h>
-#include <rtems/score/states.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/condimpl.h>
#include <rtems/posix/time.h>
diff --git a/cpukit/posix/src/condbroadcast.c b/cpukit/posix/src/condbroadcast.c
index 207c07a721..14e78e700a 100644
--- a/cpukit/posix/src/condbroadcast.c
+++ b/cpukit/posix/src/condbroadcast.c
@@ -23,7 +23,6 @@
#include <rtems/system.h>
#include <rtems/score/object.h>
-#include <rtems/score/states.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/condimpl.h>
#include <rtems/posix/time.h>
diff --git a/cpukit/posix/src/conddefaultattributes.c b/cpukit/posix/src/conddefaultattributes.c
index 2f9bae3706..aec90f2e05 100644
--- a/cpukit/posix/src/conddefaultattributes.c
+++ b/cpukit/posix/src/conddefaultattributes.c
@@ -23,7 +23,6 @@
#include <rtems/system.h>
#include <rtems/score/object.h>
-#include <rtems/score/states.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/condimpl.h>
#include <rtems/posix/time.h>
diff --git a/cpukit/posix/src/conddestroy.c b/cpukit/posix/src/conddestroy.c
index eff5ba0a13..91388fae4c 100644
--- a/cpukit/posix/src/conddestroy.c
+++ b/cpukit/posix/src/conddestroy.c
@@ -23,7 +23,6 @@
#include <rtems/system.h>
#include <rtems/score/object.h>
-#include <rtems/score/states.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/condimpl.h>
#include <rtems/posix/time.h>
diff --git a/cpukit/posix/src/condget.c b/cpukit/posix/src/condget.c
index 32bfa07a2a..4f3bc14a3f 100644
--- a/cpukit/posix/src/condget.c
+++ b/cpukit/posix/src/condget.c
@@ -16,7 +16,6 @@
#include <rtems/system.h>
#include <rtems/score/object.h>
-#include <rtems/score/states.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/condimpl.h>
#include <rtems/posix/time.h>
diff --git a/cpukit/posix/src/condinit.c b/cpukit/posix/src/condinit.c
index ac77bdded4..2c6bd8d609 100644
--- a/cpukit/posix/src/condinit.c
+++ b/cpukit/posix/src/condinit.c
@@ -23,7 +23,6 @@
#include <rtems/system.h>
#include <rtems/score/object.h>
-#include <rtems/score/states.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/condimpl.h>
#include <rtems/posix/time.h>
diff --git a/cpukit/posix/src/condsignal.c b/cpukit/posix/src/condsignal.c
index 0283fe45ea..2f2c9b7ae1 100644
--- a/cpukit/posix/src/condsignal.c
+++ b/cpukit/posix/src/condsignal.c
@@ -23,7 +23,6 @@
#include <rtems/system.h>
#include <rtems/score/object.h>
-#include <rtems/score/states.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/condimpl.h>
#include <rtems/posix/time.h>
diff --git a/cpukit/posix/src/condsignalsupp.c b/cpukit/posix/src/condsignalsupp.c
index 5b29a08938..0261b048bd 100644
--- a/cpukit/posix/src/condsignalsupp.c
+++ b/cpukit/posix/src/condsignalsupp.c
@@ -23,7 +23,6 @@
#include <rtems/system.h>
#include <rtems/score/object.h>
-#include <rtems/score/states.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/condimpl.h>
#include <rtems/posix/time.h>
diff --git a/cpukit/posix/src/condtimedwait.c b/cpukit/posix/src/condtimedwait.c
index 787fd086c6..4328615604 100644
--- a/cpukit/posix/src/condtimedwait.c
+++ b/cpukit/posix/src/condtimedwait.c
@@ -23,7 +23,6 @@
#include <rtems/system.h>
#include <rtems/score/object.h>
-#include <rtems/score/states.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/condimpl.h>
#include <rtems/posix/time.h>
diff --git a/cpukit/posix/src/condwait.c b/cpukit/posix/src/condwait.c
index 2120e3920c..cbd6d957b5 100644
--- a/cpukit/posix/src/condwait.c
+++ b/cpukit/posix/src/condwait.c
@@ -23,7 +23,6 @@
#include <rtems/system.h>
#include <rtems/score/object.h>
-#include <rtems/score/states.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/condimpl.h>
#include <rtems/posix/time.h>
diff --git a/cpukit/posix/src/condwaitsupp.c b/cpukit/posix/src/condwaitsupp.c
index 0da3a67dbb..cbc21c3137 100644
--- a/cpukit/posix/src/condwaitsupp.c
+++ b/cpukit/posix/src/condwaitsupp.c
@@ -23,7 +23,6 @@
#include <rtems/system.h>
#include <rtems/score/object.h>
-#include <rtems/score/states.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/condimpl.h>
#include <rtems/posix/time.h>
diff --git a/cpukit/posix/src/killinfo.c b/cpukit/posix/src/killinfo.c
index 98fbf1eca2..b2dc75b009 100644
--- a/cpukit/posix/src/killinfo.c
+++ b/cpukit/posix/src/killinfo.c
@@ -24,11 +24,11 @@
#include <signal.h>
#include <errno.h>
-#include <rtems/system.h>
#include <rtems/posix/pthreadimpl.h>
#include <rtems/posix/psignalimpl.h>
-#include <rtems/seterr.h>
#include <rtems/score/isr.h>
+#include <rtems/score/statesimpl.h>
+#include <rtems/seterr.h>
/*
* If you enable this, then you get printk() feedback on each path
diff --git a/cpukit/posix/src/psignal.c b/cpukit/posix/src/psignal.c
index fc9400d8ba..62c746db61 100644
--- a/cpukit/posix/src/psignal.c
+++ b/cpukit/posix/src/psignal.c
@@ -18,28 +18,30 @@
#include "config.h"
#endif
-#if defined(RTEMS_DEBUG)
- #include <assert.h>
-#endif
#include <errno.h>
-#include <pthread.h>
#include <signal.h>
-#include <string.h> /* memcpy */
-#include <stdlib.h> /* exit */
+#include <string.h>
+#include <stdlib.h>
-#include <rtems/system.h>
-#include <rtems/config.h>
-#include <rtems/score/isr.h>
-#include <rtems/score/thread.h>
+#include <rtems/score/isrlevel.h>
+#include <rtems/score/statesimpl.h>
#include <rtems/score/threadq.h>
#include <rtems/score/watchdogimpl.h>
#include <rtems/score/wkspace.h>
-#include <rtems/seterr.h>
#include <rtems/posix/threadsup.h>
#include <rtems/posix/psignalimpl.h>
#include <rtems/posix/pthreadimpl.h>
#include <rtems/posix/time.h>
-#include <stdio.h>
+#include <rtems/config.h>
+#include <rtems/seterr.h>
+
+/*
+ * Ensure we have the same number of vectors and default vector entries
+ */
+RTEMS_STATIC_ASSERT(
+ sizeof( _POSIX_signals_Vectors ) == sizeof( _POSIX_signals_Default_vectors ),
+ posix_signals_vectors
+);
/*** PROCESS WIDE STUFF ****/
@@ -176,16 +178,6 @@ void _POSIX_signals_Manager_Initialization(void)
maximum_queued_signals = Configuration_POSIX_API.maximum_queued_signals;
- /*
- * Ensure we have the same number of vectors and default vector entries
- */
-
- #if defined(RTEMS_DEBUG)
- assert(
- sizeof(_POSIX_signals_Vectors) == sizeof(_POSIX_signals_Default_vectors)
- );
- #endif
-
memcpy(
_POSIX_signals_Vectors,
_POSIX_signals_Default_vectors,
diff --git a/cpukit/posix/src/rwlockattrdestroy.c b/cpukit/posix/src/rwlockattrdestroy.c
index a8f719e11c..5b18f0e673 100644
--- a/cpukit/posix/src/rwlockattrdestroy.c
+++ b/cpukit/posix/src/rwlockattrdestroy.c
@@ -23,7 +23,6 @@
#include <rtems/system.h>
#include <rtems/score/object.h>
-#include <rtems/score/states.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/condimpl.h>
#include <rtems/posix/time.h>