예제 #1
0
파일: exit.c 프로젝트: saltstar/smartnix
_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
파일: exit.c 프로젝트: ChunHungLiu/musl-1
_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
파일: __toread.c 프로젝트: 0u812/emscripten
void __seek_on_exit()
{
	if (!__towrite_used) __stdio_exit();
}
예제 #4
0
파일: __towrite.c 프로젝트: KGG814/AOS
void __flush_on_exit()
{
	__stdio_exit();
}