projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor adjtimex in terms of clock_adjtime
[musl]
/
src
/
stdio
/
stdout.c
diff --git
a/src/stdio/stdout.c
b/src/stdio/stdout.c
index
bf6eea6
..
4985a41
100644
(file)
--- a/
src/stdio/stdout.c
+++ b/
src/stdio/stdout.c
@@
-1,17
+1,18
@@
#include "stdio_impl.h"
#include "stdio_impl.h"
+#undef stdout
+
static unsigned char buf[BUFSIZ+UNGET];
static unsigned char buf[BUFSIZ+UNGET];
-
static FILE f
= {
+
hidden FILE __stdout_FILE
= {
.buf = buf+UNGET,
.buf_size = sizeof buf-UNGET,
.fd = 1,
.flags = F_PERM | F_NORD,
.lbf = '\n',
.buf = buf+UNGET,
.buf_size = sizeof buf-UNGET,
.fd = 1,
.flags = F_PERM | F_NORD,
.lbf = '\n',
- .write = __std
io
_write,
+ .write = __std
out
_write,
.seek = __stdio_seek,
.close = __stdio_close,
.seek = __stdio_seek,
.close = __stdio_close,
+ .lock = -1,
};
};
-FILE *const stdout = &f;
-
-/* overrides symbol in fflush.c, used for flushing NULL */
-FILE *const __stdout_to_flush = &f;
+FILE *const stdout = &__stdout_FILE;
+FILE *volatile __stdout_used = &__stdout_FILE;