PatchworkOS
Loading...
Searching...
No Matches
abort_handler_s.c
Go to the documentation of this file.
2#include <stdio.h>
3#include <stdlib.h>
4
5void abort_handler_s(const char* _RESTRICT msg, void* _RESTRICT ptr, errno_t err)
6{
7#ifdef __KERNEL__
8 (void)ptr;
9 (void)err;
10 (void)msg;
11#else
12 (void)ptr;
13 (void)err;
14 fprintf(stderr, "abort handler called:\n%s\n", msg);
15#endif
16 abort();
17}
void abort_handler_s(const char *_RESTRICT msg, void *_RESTRICT ptr, errno_t err)
int errno_t
Definition errno_t.h:4
#define _RESTRICT
Definition config.h:17
FILE * stderr
Definition std_streams.c:18
_PUBLIC int fprintf(FILE *_RESTRICT stream, const char *_RESTRICT format,...)
Definition fprintf.c:5
_PUBLIC _NORETURN void abort(void)
Definition abort.c:7