summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2001-02-12 03:31:23 +0000
committerPeter Wemm <peter@FreeBSD.org>2001-02-12 03:31:23 +0000
commit56f98998e98d30cbc97d5b8bb4c67a9a0a420672 (patch)
tree86a220e7dba51c8d18c580089c2b42579ece5bd4
parent2786342687f453ede778cf719cdd903b27ae6d3d (diff)
Notes
-rw-r--r--include/stdio.h9
-rw-r--r--lib/libc/stdio/findfp.c4
2 files changed, 3 insertions, 10 deletions
diff --git a/include/stdio.h b/include/stdio.h
index 7551b6204ae9..3b1edaaa83d8 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.
diff --git a/lib/libc/stdio/findfp.c b/lib/libc/stdio/findfp.c
index 772381385d36..f307e3e40bbe 100644
--- a/lib/libc/stdio/findfp.c
+++ b/lib/libc/stdio/findfp.c
@@ -75,10 +75,6 @@ FILE __sF[3] = {
struct glue __sglue = { &uglue, 3, __sF };
static struct glue *lastglue = &uglue;
-FILE *__stdin = &__sF[0];
-FILE *__stdout = &__sF[1];
-FILE *__stderr = &__sF[2];
-
static struct glue * moreglue __P((int));
static spinlock_t thread_lock = _SPINLOCK_INITIALIZER;