blob: 77cd4988ad47e3ee180dd809db4d9f3525199a7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <bits/ensure.h>
[[gnu::noreturn]] void __assert_fail_perror(int errno, const char *file, unsigned int line,
const char *function) {
char *errormsg = strerror(errno);
fprintf(stderr, "In function %s, file %s:%d: Errno '%s' failed!\n",
function, file, line, errormsg);
abort();
}
|