summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-05-29 21:02:20 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-05-29 21:02:20 +0000
commit2a98af841e1155b1b7a33c64086f4357d18095f9 (patch)
treec55a495a13f40489666394f417288b535ab69b33
parentfixed support for posix initialization threads table (diff)
downloadrtems-2a98af841e1155b1b7a33c64086f4357d18095f9.tar.bz2
types.c: spacing
psignal.c: kill recognizes SIGABRT and exits to prevent asserts from recursively occurring because kill was not implemented and asserted.
Diffstat (limited to '')
-rw-r--r--c/src/exec/posix/src/psignal.c4
-rw-r--r--c/src/exec/posix/src/types.c57
-rw-r--r--cpukit/posix/src/psignal.c4
-rw-r--r--cpukit/posix/src/types.c57
4 files changed, 66 insertions, 56 deletions
diff --git a/c/src/exec/posix/src/psignal.c b/c/src/exec/posix/src/psignal.c
index cac74021ad..9a43fc7c07 100644
--- a/c/src/exec/posix/src/psignal.c
+++ b/c/src/exec/posix/src/psignal.c
@@ -19,6 +19,10 @@ int kill(
int sig
)
{
+ /* SIGABRT comes from abort via assert */
+ if ( sig == SIGABRT ) {
+ exit( 1 );
+ }
return POSIX_NOT_IMPLEMENTED();
}
diff --git a/c/src/exec/posix/src/types.c b/c/src/exec/posix/src/types.c
index 81a184c81a..647e0b7056 100644
--- a/c/src/exec/posix/src/types.c
+++ b/c/src/exec/posix/src/types.c
@@ -7,34 +7,6 @@
#include <rtems/system.h>
-/*
- * TEMPORARY
- */
-
-#include <assert.h>
-
-int POSIX_MP_NOT_IMPLEMENTED()
-{
- assert( 0 );
- return 0;
-}
-
-int POSIX_BOTTOM_REACHED()
-{
- assert( 0 );
- return 0;
-}
-
-int POSIX_NOT_IMPLEMENTED()
-{
- assert( 0 );
- return 0;
-}
-
-/*
- * END OF TEMPORARY
- */
-
/*PAGE
*
* 4.1.1 Get Process and Parent Process IDs, P1003.1b-1993, p. 83
@@ -195,3 +167,32 @@ int setpgid(
{
return POSIX_NOT_IMPLEMENTED();
}
+
+/*
+ * TEMPORARY
+ */
+
+#include <assert.h>
+
+int POSIX_MP_NOT_IMPLEMENTED()
+{
+ assert( 0 );
+ return 0;
+}
+
+int POSIX_BOTTOM_REACHED()
+{
+ assert( 0 );
+ return 0;
+}
+
+int POSIX_NOT_IMPLEMENTED()
+{
+ assert( 0 );
+ return 0;
+}
+
+/*
+ * END OF TEMPORARY
+ */
+
diff --git a/cpukit/posix/src/psignal.c b/cpukit/posix/src/psignal.c
index cac74021ad..9a43fc7c07 100644
--- a/cpukit/posix/src/psignal.c
+++ b/cpukit/posix/src/psignal.c
@@ -19,6 +19,10 @@ int kill(
int sig
)
{
+ /* SIGABRT comes from abort via assert */
+ if ( sig == SIGABRT ) {
+ exit( 1 );
+ }
return POSIX_NOT_IMPLEMENTED();
}
diff --git a/cpukit/posix/src/types.c b/cpukit/posix/src/types.c
index 81a184c81a..647e0b7056 100644
--- a/cpukit/posix/src/types.c
+++ b/cpukit/posix/src/types.c
@@ -7,34 +7,6 @@
#include <rtems/system.h>
-/*
- * TEMPORARY
- */
-
-#include <assert.h>
-
-int POSIX_MP_NOT_IMPLEMENTED()
-{
- assert( 0 );
- return 0;
-}
-
-int POSIX_BOTTOM_REACHED()
-{
- assert( 0 );
- return 0;
-}
-
-int POSIX_NOT_IMPLEMENTED()
-{
- assert( 0 );
- return 0;
-}
-
-/*
- * END OF TEMPORARY
- */
-
/*PAGE
*
* 4.1.1 Get Process and Parent Process IDs, P1003.1b-1993, p. 83
@@ -195,3 +167,32 @@ int setpgid(
{
return POSIX_NOT_IMPLEMENTED();
}
+
+/*
+ * TEMPORARY
+ */
+
+#include <assert.h>
+
+int POSIX_MP_NOT_IMPLEMENTED()
+{
+ assert( 0 );
+ return 0;
+}
+
+int POSIX_BOTTOM_REACHED()
+{
+ assert( 0 );
+ return 0;
+}
+
+int POSIX_NOT_IMPLEMENTED()
+{
+ assert( 0 );
+ return 0;
+}
+
+/*
+ * END OF TEMPORARY
+ */
+