PatchworkOS
Loading...
Searching...
No Matches
abort.c
Go to the documentation of this file.
1
#include <
stdlib.h
>
2
3
#ifdef __KERNEL__
4
#include <
kernel/log/panic.h
>
5
#endif
6
7
void
abort
(
void
)
8
{
9
#ifdef __KERNEL__
10
panic
(
NULL
,
"abort() called"
);
11
#else
12
// TODO: Implement signals
13
exit
(
EXIT_FAILURE
);
14
#endif
15
}
abort
void abort(void)
Definition
abort.c:7
panic
NORETURN void panic(const interrupt_frame_t *frame, const char *format,...)
Panic the kernel, printing a message and halting.
Definition
panic.c:362
NULL
#define NULL
Pointer error value.
Definition
NULL.h:23
panic.h
stdlib.h
exit
_PUBLIC _NORETURN void exit(int status)
Definition
exit.c:7
EXIT_FAILURE
#define EXIT_FAILURE
Definition
stdlib.h:47
src
libstd
functions
stdlib
abort.c
Generated by
1.9.8