summaryrefslogtreecommitdiff
path: root/src/string/strerror.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-01-30 15:29:55 -0500
committerJakob Kaivo <jkk@ung.org>2024-01-30 15:29:55 -0500
commit9b6f6642ee252a9bedbe267fd85376fc9359c74f (patch)
tree5676ac47d416ef56b8134d94df49110abc53998f /src/string/strerror.c
parent7f9129145f2293cb8c9052ff1f395226421b0ae4 (diff)
update standard and safety checks
Diffstat (limited to 'src/string/strerror.c')
-rw-r--r--src/string/strerror.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/string/strerror.c b/src/string/strerror.c
index bdb1df36..29742e34 100644
--- a/src/string/strerror.c
+++ b/src/string/strerror.c
@@ -1,8 +1,8 @@
-#if 0
-
#include <errno.h>
#include <stdio.h>
#include <string.h>
+#include "_safety.h"
+#undef strerror
# define __LONGEST_STRERR 64 /* FIXME */
@@ -12,6 +12,8 @@ char * strerror(int errnum)
{
static char errstr[__LONGEST_STRERR+1];
+ SIGNAL_SAFE(0);
+
switch (errnum) {
#include "_strerror.h"
default:
@@ -34,6 +36,3 @@ subsequent calls.
/*
STDC(1)
*/
-
-
-#endif