summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/psignal.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-24 16:19:52 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-26 11:55:45 +0200
commitfe6c170cf58c5e42a63010b5b4c985749cbc98a6 (patch)
tree8ece5b05395597d66a96c536b0ce13568aa9edb7 /cpukit/posix/src/psignal.c
parentscore: Create thread implementation header (diff)
downloadrtems-fe6c170cf58c5e42a63010b5b4c985749cbc98a6.tar.bz2
score: Create states implementation header
Move implementation specific parts of states.h and states.inl into new header file statesimpl.h. The states.h contains now only the application visible API.
Diffstat (limited to 'cpukit/posix/src/psignal.c')
-rw-r--r--cpukit/posix/src/psignal.c36
1 files changed, 14 insertions, 22 deletions
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,