1
Fork 0
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:
Andreas Kling 2019-05-22 13:21:49 +02:00
parent f490ce0fb5
commit e388808479
4 changed files with 24 additions and 5 deletions

View file

@ -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)