_Noreturn void exit(int code) { __tls_run_dtors(); __funcs_on_exit(); __libc_exit_fini(); __stdio_exit(); if (&__libc_extensions_fini != NULL) __libc_extensions_fini(); _Exit(code); }
_Noreturn void exit(int code) { __funcs_on_exit(); #ifndef SHARED uintptr_t a = (uintptr_t)&__fini_array_end; for (; a>(uintptr_t)&__fini_array_start; a-=sizeof(void(*)())) (*(void (**)())(a-sizeof(void(*)())))(); _fini(); #endif __stdio_exit(); _Exit(code); }
void __seek_on_exit() { if (!__towrite_used) __stdio_exit(); }
void __flush_on_exit() { __stdio_exit(); }