summaryrefslogtreecommitdiffstats
path: root/include/stdio.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-02-14 05:00:20 +0000
committerpeter <peter@FreeBSD.org>2001-02-14 05:00:20 +0000
commit1c970ba5b314cd2286a5a889bb69df2bc58ed73c (patch)
tree428f8d75f4451b736a9951437789e607d623b6cc /include/stdio.h
parent9377320bfdd9e471fbc783d1a710d852acf8645a (diff)
downloadFreeBSD-src-1c970ba5b314cd2286a5a889bb69df2bc58ed73c.zip
FreeBSD-src-1c970ba5b314cd2286a5a889bb69df2bc58ed73c.tar.gz
Commit a libc fix going by the current state of the version numbering
bikeshed in -arch. It isn't quite over, but it has been well established that this can be adjusted or refined. But we do seem to have consensis on a major bump of some sort. After this, it should reasonably safe to build world again. This change is to get rid of __sF[] and use seperate __stdin/out/err handles. This means we can pad on extra bits onto the end of FILE at will without going through this all over again. __sF[] was evil because it compiled the sizeof(FILE) into every stdio using program. Asbestos suit on: check! Peril sensitive sunglasses on: check! *gulp!*
Diffstat (limited to 'include/stdio.h')
-rw-r--r--include/stdio.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/stdio.h b/include/stdio.h
index 3b1edaa..a5de1de 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -131,7 +131,9 @@ typedef struct __sFILE {
} FILE;
__BEGIN_DECLS
-extern FILE __sF[];
+extern FILE __stdin;
+extern FILE __stdout;
+extern FILE __stderr;
__END_DECLS
#define __SLBF 0x0001 /* line buffered */
@@ -194,9 +196,9 @@ __END_DECLS
#define SEEK_END 2 /* set file offset to EOF plus offset */
#endif
-#define stdin (&__sF[0])
-#define stdout (&__sF[1])
-#define stderr (&__sF[2])
+#define stdin (&__stdin)
+#define stdout (&__stdout)
+#define stderr (&__stderr)
/*
* Functions defined in ANSI C standard.
OpenPOWER on IntegriCloud