projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
math: move x87-family rint functions to C with inline asm
[musl]
/
src
/
stdio
/
stdout.c
diff --git
a/src/stdio/stdout.c
b/src/stdio/stdout.c
index
552d729
..
4985a41
100644
(file)
--- a/
src/stdio/stdout.c
+++ b/
src/stdio/stdout.c
@@
-1,7
+1,9
@@
#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,
.buf = buf+UNGET,
.buf_size = sizeof buf-UNGET,
.fd = 1,
@@
-10,8
+12,7
@@
static FILE f = {
.write = __stdout_write,
.seek = __stdio_seek,
.close = __stdio_close,
.write = __stdout_write,
.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;