projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove use of endian.h from arch reloc.h headers, clean up
[musl]
/
src
/
stdio
/
stdin.c
diff --git
a/src/stdio/stdin.c
b/src/stdio/stdin.c
index
476dc70
..
5aa5262
100644
(file)
--- a/
src/stdio/stdin.c
+++ b/
src/stdio/stdin.c
@@
-1,7
+1,9
@@
#include "stdio_impl.h"
#include "stdio_impl.h"
+#undef stdin
+
static unsigned char buf[BUFSIZ+UNGET];
static unsigned char buf[BUFSIZ+UNGET];
-
static FILE f
= {
+
hidden FILE __stdin_FILE
= {
.buf = buf+UNGET,
.buf_size = sizeof buf-UNGET,
.fd = 0,
.buf = buf+UNGET,
.buf_size = sizeof buf-UNGET,
.fd = 0,
@@
-11,5
+13,5
@@
static FILE f = {
.close = __stdio_close,
.lock = -1,
};
.close = __stdio_close,
.lock = -1,
};
-FILE *const stdin = &
f
;
-FILE *
const __stdin_used = &f
;
+FILE *const stdin = &
__stdin_FILE
;
+FILE *
volatile __stdin_used = &__stdin_FILE
;