diff options
Diffstat (limited to 'src/stdlib/exit.c')
| -rw-r--r-- | src/stdlib/exit.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/stdlib/exit.c b/src/stdlib/exit.c index 501131e4..5fc1f2fc 100644 --- a/src/stdlib/exit.c +++ b/src/stdlib/exit.c @@ -1,13 +1,14 @@ #include <stdlib.h> #include "limits.h" #include "stddef.h" -#include "nonstd/syscall.h" +#include "../_syscall.h" +#include "_stdlib.h" /** cause normal program termination **/ _Noreturn void exit(int status) { - long scno = __lookup("exit"); - struct atexit *ae = __libc(ATEXIT); + long scno = __syscall_lookup(exit); + struct atexit *ae = &(__stdlib.atexit); /* execute all atexit() registered functions in reverse order */ while (ae) { |
