summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-rw-r--r--libc/stdio/stdio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/stdio/stdio.c b/libc/stdio/stdio.c
index 27b54dcb3..e274b9018 100644
--- a/libc/stdio/stdio.c
+++ b/libc/stdio/stdio.c
@@ -96,6 +96,10 @@ FILE _stdio_streams[3] = {
2, _IONBF | __MODE_WRITE | __MODE_IOTRAN}
};
+FILE *_stdin = _stdio_streams + 0;
+FILE *_stdout = _stdio_streams + 1;
+FILE *_stderr = _stdio_streams + 2;
+
/*
* Note: the following forces linking of the __init_stdio function if
* any of the stdio functions are used (except perror) since they all