diff options
author | Jakob Kaivo <jkk@ung.org> | 2020-08-11 19:51:32 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2020-08-11 19:51:32 -0400 |
commit | d6127ae58ff3e823773a158a1e79d5999fa7f995 (patch) | |
tree | d530dfc9921d566919acf770c4b1ceb0a401a6bf /src/stdlib/exit.c | |
parent | 5d9519b799ac6fb1e2d5bdb3daaf123c1326c0f1 (diff) |
move stdlib internals to _stdlib.h and struct __stdlib
Diffstat (limited to 'src/stdlib/exit.c')
-rw-r--r-- | src/stdlib/exit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stdlib/exit.c b/src/stdlib/exit.c index 501131e4..28f87242 100644 --- a/src/stdlib/exit.c +++ b/src/stdlib/exit.c @@ -2,12 +2,13 @@ #include "limits.h" #include "stddef.h" #include "nonstd/syscall.h" +#include "_stdlib.h" /** cause normal program termination **/ _Noreturn void exit(int status) { long scno = __lookup("exit"); - struct atexit *ae = __libc(ATEXIT); + struct atexit *ae = &(__stdlib.atexit); /* execute all atexit() registered functions in reverse order */ while (ae) { |