mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2024-10-01 01:36:01 -04:00
13 lines
219 B
C
13 lines
219 B
C
|
#include <stdlib.h>
|
||
|
#include <string.h>
|
||
|
|
||
|
#include <unistd.h>
|
||
|
|
||
|
#include "util.h"
|
||
|
|
||
|
COLD noreturn void fatal_error(const char *s) {
|
||
|
write(STDERR_FILENO, s, strlen(s));
|
||
|
write(STDERR_FILENO, "\n", 1);
|
||
|
abort();
|
||
|
}
|