1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include "stddef.h" #include "sys/types.h" #include <unistd.h> #include "nonstd/syscall.h" void _exit(int status) { long scno = ((syscall_lookup_t)__libc(SYSCALL_LOOKUP))("exit"); for (;;) { __syscall(scno, status); } } /* POSIX(1) */