PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
abort.c
Go to the documentation of this file.
1#include <signal.h>
2#include <stdlib.h>
3#include <sys/proc.h>
4
5#ifdef _KERNEL_
6#include <kernel/log/panic.h>
7#endif
8
9void abort(void)
10{
11#ifdef _KERNEL_
12 panic(NULL, "abort() called");
13#else
15 _exit("aborted");
16#endif
17}
void abort(void)
Definition abort.c:9
NORETURN void panic(const interrupt_frame_t *frame, const char *format,...)
Panic the kernel, printing a message and halting.
Definition panic.c:266
_PUBLIC int raise(int sig)
Definition raise.c:5
#define SIGABRT
Definition signal.h:24
_NORETURN void _exit(const char *status)
System call that handles pending notes for the current thread.
Definition _exit.c:7
#define NULL
Pointer error value.
Definition NULL.h:23