LibC: Implement abort() as raise(SIGABRT).

This commit is contained in:
Andreas Kling 2019-05-26 02:21:10 +02:00
parent 0cac84d6bd
commit cde3274ffb
Notes: sideshowbarker 2024-07-19 13:56:32 +09:00

View file

@ -7,6 +7,7 @@
#include <assert.h>
#include <errno.h>
#include <ctype.h>
#include <signal.h>
#include <AK/Assertions.h>
#include <AK/Types.h>
#include <Kernel/Syscall.h>
@ -42,8 +43,7 @@ int atexit(void (*handler)())
void abort()
{
// FIXME: Implement proper abort().
CRASH();
raise(SIGABRT);
}
char* getenv(const char* name)