types.c: spacing

psignal.c: kill recognizes SIGABRT and exits to prevent asserts from
recursively occurring because kill was not implemented and asserted.
This commit is contained in:
Joel Sherrill
1996-05-29 21:02:20 +00:00
parent 5240c71c52
commit 2a98af841e
4 changed files with 66 additions and 56 deletions

View File

@@ -19,6 +19,10 @@ int kill(
int sig
)
{
/* SIGABRT comes from abort via assert */
if ( sig == SIGABRT ) {
exit( 1 );
}
return POSIX_NOT_IMPLEMENTED();
}

View File

@@ -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
*/