33 lines
419 B
C
33 lines
419 B
C
/*
|
|
* SPDX-License-Identifier: GPL-2.0-only
|
|
* Copyright (C) 2021 Logaev Maxim
|
|
* Copyright (C) 2026 KolibriOS team
|
|
*/
|
|
|
|
#include <stdlib.h>
|
|
#include <sys/ksys.h>
|
|
#include "_exit.h"
|
|
|
|
/*
|
|
TODO
|
|
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);
|
|
}
|