mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
16 lines
248 B
C
16 lines
248 B
C
#include <stdlib.h>
|
|
#include <syscall.h>
|
|
|
|
// Exits without cleaning up
|
|
void _Exit(int status) {
|
|
syscall(SYS_EXIT, status, 0, 0);
|
|
}
|
|
|
|
void exit(int status) {
|
|
// TODO: Close open files
|
|
// TODO: Free malloced buffers
|
|
|
|
_Exit(status);
|
|
}
|
|
|