source: trunk/libs/newlib/src/libgloss/arm/_exit.c @ 621

Last change on this file since 621 was 444, checked in by satin@…, 7 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 402 bytes
Line 
1#include <_ansi.h>
2
3int _kill (int, int);
4void _exit (int);
5
6void
7_exit (int status)
8{
9  /* There is only one SWI for both _exit and _kill. For _exit, call
10     the SWI with the second argument set to -1, an invalid value for
11     signum, so that the SWI handler can distinguish the two calls.
12     Note: The RDI implementation of _kill throws away both its
13     arguments.  */
14  _kill (status, -1);
15}
Note: See TracBrowser for help on using the repository browser.