diff --git a/lib/_exit.c b/lib/_exit.c new file mode 100644 index 0000000..c0c9d69 --- /dev/null +++ b/lib/_exit.c @@ -0,0 +1,13 @@ +/* + * linux/lib/_exit.c + * + * (C) 1991 Linus Torvalds + */ + +#define __LIBRARY__ +#include + +volatile void _exit(int exit_code) +{ + __asm__("int $0x80"::"a" (__NR_exit),"b" (exit_code)); +}