PatchworkOS
19e446b
A non-POSIX operating system.
Theme:
Default
Round
Robot
Loading...
Searching...
No Matches
abort_handler_s.c
Go to the documentation of this file.
1
#include "
common/use_annex_k.h
"
2
#include <
stdio.h
>
3
#include <
stdlib.h
>
4
#include <
sys/defs.h
>
5
6
void
abort_handler_s
(
const
char
*
_RESTRICT
msg,
void
*
_RESTRICT
ptr,
errno_t
err)
7
{
8
#ifdef _KERNEL_
9
UNUSED
(ptr);
10
UNUSED
(err);
11
UNUSED
(msg);
12
#else
13
UNUSED
(ptr);
14
UNUSED
(err);
15
fprintf
(
stderr
,
"abort handler called:\n%s\n"
, msg);
16
#endif
17
abort
();
18
}
_RESTRICT
#define _RESTRICT
Definition
config.h:17
abort_handler_s
void abort_handler_s(const char *_RESTRICT msg, void *_RESTRICT ptr, errno_t err)
Definition
abort_handler_s.c:6
defs.h
errno_t
int errno_t
Definition
errno_t.h:4
UNUSED
#define UNUSED(x)
Mark a variable as unused.
Definition
defs.h:96
stdio.h
stderr
FILE * stderr
Definition
std_streams.c:19
fprintf
_PUBLIC int fprintf(FILE *_RESTRICT stream, const char *_RESTRICT format,...)
Definition
fprintf.c:3
stdlib.h
abort
_PUBLIC _NORETURN void abort(void)
Definition
abort.c:9
use_annex_k.h
src
libstd
functions
stdlib
abort_handler_s.c
Generated on Sat Jan 24 2026 10:59:25 for PatchworkOS by
1.9.8