diff options
Diffstat (limited to 'linux/lib/_exit.c')
| -rw-r--r-- | linux/lib/_exit.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 <unistd.h> + +volatile void _exit(int exit_code) +{ + __asm__("int $0x80"::"a" (__NR_exit),"b" (exit_code)); +} |
