Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 1 | #include <stdlib.h> |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 2 | #include "syscall.h" |
3 | |||||
Rich Felker | c8ea985 | 2012-09-06 23:12:27 -0400 | [diff] [blame] | 4 | _Noreturn void _Exit(int ec) |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 5 | { |
Rich Felker | c2cd25b | 2011-04-06 20:32:53 -0400 | [diff] [blame] | 6 | __syscall(SYS_exit_group, ec); |
Rich Felker | 0c05bd3 | 2012-09-06 23:34:10 -0400 | [diff] [blame] | 7 | for (;;) __syscall(SYS_exit, ec); |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 8 | } |