summaryrefslogtreecommitdiff
path: root/src/string/strerror.c
diff options
context:
space:
mode:
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