From 253a32e2f9ff1cbb8edbe7c79834a678daebeb93 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sat, 9 Feb 2019 13:14:01 -0500 Subject: merge POSIX.1-1988/1990 --- src/unistd/_exit.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/unistd/_exit.c (limited to 'src/unistd/_exit.c') diff --git a/src/unistd/_exit.c b/src/unistd/_exit.c new file mode 100644 index 00000000..fde6d675 --- /dev/null +++ b/src/unistd/_exit.c @@ -0,0 +1,13 @@ +#include "stddef.h" +#include "sys/types.h" +#include +#include "nonstd/syscall.h" + +void _exit(int status) +{ + __libc.syscall(__libc.syscall_lookup("exit"), status); + for (;;); +} +/* +POSIX(1) +*/ -- cgit v1.2.1