forked from PoliEcho-holding-org/kern
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);
|
|
}
|
|
|