libc.obj: add copyright & delete _exit.h & fix tabs in crt0.asm
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
#include <conio.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/ksys.h>
|
||||
#include "_exit.h"
|
||||
|
||||
void _exit(int status)
|
||||
{
|
||||
@@ -14,9 +13,7 @@ void __libc_exit(int status, void (*before_exit)(int status))
|
||||
if (status && status != 128) {
|
||||
fprintf(stderr, "\nexit code: %d\n", status);
|
||||
}
|
||||
|
||||
WRITE_EXIT_CODE(status);
|
||||
|
||||
|
||||
if (before_exit) {
|
||||
before_exit(status);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user