mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 22:48:23 +00:00
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:
@@ -19,6 +19,10 @@ int kill(
|
||||
int sig
|
||||
)
|
||||
{
|
||||
/* SIGABRT comes from abort via assert */
|
||||
if ( sig == SIGABRT ) {
|
||||
exit( 1 );
|
||||
}
|
||||
return POSIX_NOT_IMPLEMENTED();
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user