Files
kolibrios/programs/develop/ktcc/trunk/libc.obj/source/stdlib/exit.c
Egor00f ba8747e2ab
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 20s
Build system / Build (pull_request) Successful in 16m18s
libc.obj: add atexit and normal exit. add exit code save/read
2026-02-22 13:56:25 +05:00

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