Пример #1
0
_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);
}
Пример #2
0
_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);
}
Пример #3
0
void __seek_on_exit()
{
	if (!__towrite_used) __stdio_exit();
}
Пример #4
0
void __flush_on_exit()
{
	__stdio_exit();
}