aboutsummaryrefslogtreecommitdiff
path: root/include/stdio.h
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2001-08-13 21:48:44 +0000
committerPeter Wemm <peter@FreeBSD.org>2001-08-13 21:48:44 +0000
commit2b618987fee88c4b3253d840a59f52680bfec2a6 (patch)
treee06c967bdb858227175cd2821c4ca0634e645306 /include/stdio.h
parentd55229b72ecc97075f1afcd976f8e0c1cd0d662b (diff)
downloadsrc-2b618987fee88c4b3253d840a59f52680bfec2a6.tar.gz
src-2b618987fee88c4b3253d840a59f52680bfec2a6.zip
Notes
Diffstat (limited to 'include/stdio.h')
-rw-r--r--include/stdio.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/stdio.h b/include/stdio.h
index 431eab0e6852..d60ed88a8d88 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -132,6 +132,9 @@ typedef struct __sFILE {
__BEGIN_DECLS
extern FILE __sF[];
+extern FILE *__stdinp;
+extern FILE *__stdoutp;
+extern FILE *__stderrp;
__END_DECLS
#define __SLBF 0x0001 /* line buffered */
@@ -194,9 +197,16 @@ __END_DECLS
#define SEEK_END 2 /* set file offset to EOF plus offset */
#endif
+/* To be removed by 5.0-RELEASE */
+#if (defined(__i386__) || defined(__alpha__)) && !defined(_FIXED_STDIO)
#define stdin (&__sF[0])
#define stdout (&__sF[1])
#define stderr (&__sF[2])
+#else
+#define stdin __stdinp
+#define stdout __stdoutp
+#define stderr __stderrp
+#endif
/*
* Functions defined in ANSI C standard.