projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove arch-specific bits/ipc.h that are identical to generic
[musl]
/
src
/
stdio
/
stdin.c
diff --git
a/src/stdio/stdin.c
b/src/stdio/stdin.c
index
51c9923
..
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,
@@
-9,5
+11,7
@@
static FILE f = {
.read = __stdio_read,
.seek = __stdio_seek,
.close = __stdio_close,
.read = __stdio_read,
.seek = __stdio_seek,
.close = __stdio_close,
+ .lock = -1,
};
};
-FILE *const stdin = &f;
+FILE *const stdin = &__stdin_FILE;
+FILE *volatile __stdin_used = &__stdin_FILE;