musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/include/stdio.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/stdio.h')
-rw-r--r--src/include/stdio.h 18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/include/stdio.h b/src/include/stdio.h
new file mode 100644
index 00000000..534c6907
--- /dev/null
+++ b/src/include/stdio.h
@@ -0,0 +1,18 @@
+#ifndef STDIO_H
+#define STDIO_H
+
+#include "../../include/stdio.h"
+
+#undef stdin
+#undef stdout
+#undef stderr
+
+extern hidden FILE __stdin_FILE;
+extern hidden FILE __stdout_FILE;
+extern hidden FILE __stderr_FILE;
+
+#define stdin (&__stdin_FILE)
+#define stdout (&__stdout_FILE)
+#define stderr (&__stderr_FILE)
+
+#endif
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月15日 06:23:54 +0000

AltStyle によって変換されたページ (->オリジナル) /