summaryrefslogtreecommitdiffstats
path: root/include/stdio.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-02-12 03:31:23 +0000
committerpeter <peter@FreeBSD.org>2001-02-12 03:31:23 +0000
commit21629372f842d8268cfd5b6ab5e709a022ed1089 (patch)
treed22572edb6031da8ffe2c3a4ee41e21fb5e02681 /include/stdio.h
parent0e619322a9e8aa86df25ef55281aba3279da1265 (diff)
downloadFreeBSD-src-21629372f842d8268cfd5b6ab5e709a022ed1089.zip
FreeBSD-src-21629372f842d8268cfd5b6ab5e709a022ed1089.tar.gz
It sounded like a good idea at the time. The previous change breaks
FILE *buffer = stdout; so back it out for now.
Diffstat (limited to 'include/stdio.h')
-rw-r--r--include/stdio.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/include/stdio.h b/include/stdio.h
index 7551b62..3b1edaa 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -132,9 +132,6 @@ typedef struct __sFILE {
__BEGIN_DECLS
extern FILE __sF[];
-extern FILE *__stdin;
-extern FILE *__stdout;
-extern FILE *__stderr;
__END_DECLS
#define __SLBF 0x0001 /* line buffered */
@@ -197,9 +194,9 @@ __END_DECLS
#define SEEK_END 2 /* set file offset to EOF plus offset */
#endif
-#define stdin (__stdin)
-#define stdout (__stdout)
-#define stderr (__stderr)
+#define stdin (&__sF[0])
+#define stdout (&__sF[1])
+#define stderr (&__sF[2])
/*
* Functions defined in ANSI C standard.
OpenPOWER on IntegriCloud