summaryrefslogtreecommitdiff
path: root/libio/stdio.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/stdio.c')
-rw-r--r--libio/stdio.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libio/stdio.c b/libio/stdio.c
new file mode 100644
index 0000000000..cd56dba307
--- /dev/null
+++ b/libio/stdio.c
@@ -0,0 +1,12 @@
+#include "libioP.h"
+#include "stdio.h"
+
+/* Define non-macro versions of stdin/stdout/stderr,
+ * for use by debuggers. */
+
+#undef stdin
+#undef stdout
+#undef stderr
+FILE* stdin = &_IO_stdin_.file;
+FILE* stdout = &_IO_stdout_.file;
+FILE* stderr = &_IO_stderr_.file;