From 723428bebe3105ad3c3406e416402d1831b482c4 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 15 Aug 2021 00:16:45 -0400 Subject: Inital commit --- linux/lib/_exit.c | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 linux/lib/_exit.c (limited to 'linux/lib/_exit.c') diff --git a/linux/lib/_exit.c b/linux/lib/_exit.c new file mode 100644 index 0000000..44a74e1 --- /dev/null +++ b/linux/lib/_exit.c @@ -0,0 +1,7 @@ +#define __LIBRARY__ +#include + +volatile void _exit(int exit_code) +{ + __asm__("int $0x80"::"a" (__NR_exit),"b" (exit_code)); +} -- cgit v1.2.3