summaryrefslogtreecommitdiff
path: root/src/stdio/setbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/setbuf.c')
-rw-r--r--src/stdio/setbuf.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/stdio/setbuf.c b/src/stdio/setbuf.c
index ce8ad682..ddf38856 100644
--- a/src/stdio/setbuf.c
+++ b/src/stdio/setbuf.c
@@ -1,11 +1,12 @@
-#if 0
-
#include <stdio.h>
+#include "_stdio.h"
/** specify file stream buffer **/
void setbuf(FILE * restrict stream, char * restrict buf)
{
+ SIGNAL_SAFE(0);
+
if (buf) {
setvbuf(stream, buf, _IOFBF, BUFSIZ);
} else {
@@ -26,6 +27,3 @@ equivalent of:
/*
STDC(1)
*/
-
-
-#endif