PatchworkOS
19e446b
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
exits
(
"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:292
raise
_PUBLIC int raise(int sig)
Definition
raise.c:5
SIGABRT
#define SIGABRT
Definition
signal.h:24
exits
_NORETURN void exits(const char *status)
System call that handles pending notes for the current thread.
Definition
proc_exit.c:7
NULL
#define NULL
Pointer error value.
Definition
NULL.h:25
panic.h
proc.h
signal.h
stdlib.h
src
libstd
functions
stdlib
abort.c
Generated on Sat Jan 24 2026 10:59:25 for PatchworkOS by
1.9.8