mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
LibC: Some compat fixes for GNU make.
This commit is contained in:
parent
f490ce0fb5
commit
e388808479
4 changed files with 24 additions and 5 deletions
|
@ -26,6 +26,8 @@ void exit(int status)
|
|||
__atexit_handlers[i]();
|
||||
extern void _fini();
|
||||
_fini();
|
||||
fflush(stdout);
|
||||
fflush(stderr);
|
||||
_exit(status);
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
@ -41,7 +43,7 @@ int atexit(void (*handler)())
|
|||
void abort()
|
||||
{
|
||||
// FIXME: Implement proper abort().
|
||||
exit(253);
|
||||
CRASH();
|
||||
}
|
||||
|
||||
char* getenv(const char* name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue