PatchworkOS
966e257
A non-POSIX operating system.
Theme:
Default
Round
Robot
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
9
void
abort
(
void
)
10
{
11
#ifdef _KERNEL_
12
panic
(
NULL
,
"abort() called"
);
13
#else
14
raise
(
SIGABRT
);
15
_exit
(
"aborted"
);
16
#endif
17
}
abort
void abort(void)
Definition
abort.c:9
panic
NORETURN void panic(const interrupt_frame_t *frame, const char *format,...)
Panic the kernel, printing a message and halting.
Definition
panic.c:266
raise
_PUBLIC int raise(int sig)
Definition
raise.c:5
SIGABRT
#define SIGABRT
Definition
signal.h:24
_exit
_NORETURN void _exit(const char *status)
System call that handles pending notes for the current thread.
Definition
_exit.c:7
NULL
#define NULL
Pointer error value.
Definition
NULL.h:23
panic.h
proc.h
signal.h
stdlib.h
src
libstd
functions
stdlib
abort.c
Generated on Mon Dec 15 2025 21:55:53 for PatchworkOS by
1.9.8