2007-01-04 00:55:25 +08:00
|
|
|
#include <_ansi.h>
|
|
|
|
|
2017-12-04 10:41:16 +08:00
|
|
|
int _kill (int, int);
|
|
|
|
void _exit (int);
|
2007-01-04 00:55:25 +08:00
|
|
|
|
|
|
|
void
|
|
|
|
_exit (int status)
|
|
|
|
{
|
|
|
|
/* There is only one SWI for both _exit and _kill. For _exit, call
|
|
|
|
the SWI with the second argument set to -1, an invalid value for
|
|
|
|
signum, so that the SWI handler can distinguish the two calls.
|
|
|
|
Note: The RDI implementation of _kill throws away both its
|
|
|
|
arguments. */
|
|
|
|
_kill (status, -1);
|
|
|
|
}
|