26 lines
352 B
C
26 lines
352 B
C
/* Copyright (C) 2021 Logaev Maxim (turbocat2001), GPLv2 */
|
|
|
|
#include <stdlib.h>
|
|
#include <sys/ksys.h>
|
|
#include "_exit.h"
|
|
|
|
static void __close_all()
|
|
{
|
|
}
|
|
|
|
static void __free_all_mem()
|
|
{
|
|
}
|
|
|
|
void __normal_exit(int status)
|
|
{
|
|
__run_atexit();
|
|
__close_all();
|
|
__free_all_mem();
|
|
}
|
|
|
|
void exit(int status)
|
|
{
|
|
__libc_exit(status, &__normal_exit);
|
|
}
|