diff options
Diffstat (limited to 'lib/sys/exit.h')
| -rw-r--r-- | lib/sys/exit.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/sys/exit.h b/lib/sys/exit.h new file mode 100644 index 0000000..516d714 --- /dev/null +++ b/lib/sys/exit.h @@ -0,0 +1,11 @@ +#ifndef EXIT_H +#define EXIT_H + +#include "syscalls.h" + +_Noreturn void exit(int error_code) +{ + syscall(EXIT, error_code); +} + +#endif |