Files
kolibrios/programs/develop/ktcc/trunk/libc.obj/source/stdlib/exit.c
Egor00f aa619aa602
Some checks failed
Build system / Check kernel codestyle (pull_request) Successful in 25s
Build system / Build (pull_request) Failing after 1m6s
libc.obj: add copyright & delete _exit.h & fix tabs in crt0.asm
2026-03-07 21:51:58 +05:00

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);
}