Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2007-01-03 19:55:25 +0300
committerJeff Johnston <jjohnstn@redhat.com>2007-01-03 19:55:25 +0300
commit4d95d0e99afd7799f3c8b0e1273d67e1cd136e8d (patch)
tree0c6b70e5f7a987edcd99156f9ea25dc8280c9ea1 /libgloss/arm/_exit.c
parent35b4db0f3040b76139e03af1e888cb7d04f197cf (diff)
2006-01-03 Kazu Hirata <kazu@codesourcery.com>
* arm/Makefile (RDPMON_OBJS): Add _exit.o and _kill.o. (RDIMON_OBJS): Define in terms of RDPMON_OBJS. (rdimon-_exit.o, rdimon-_kill.o): New. * arm/_exit.c, arm/_kill.c: New. * arm/syscalls.c (_exit, _kill): Remove.
Diffstat (limited to 'libgloss/arm/_exit.c')
-rw-r--r--libgloss/arm/_exit.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/libgloss/arm/_exit.c b/libgloss/arm/_exit.c
new file mode 100644
index 000000000..ed0087637
--- /dev/null
+++ b/libgloss/arm/_exit.c
@@ -0,0 +1,15 @@
+#include <_ansi.h>
+
+int _kill _PARAMS ((int, int));
+void _exit _PARAMS ((int));
+
+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);
+}