X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Fstderr.c;h=f2bc4648d6f0af2f0e8c2ced2531fcef940ad56f;hb=e95538fa07d2b460b25ee6c2fef05f820888776d;hp=3bdaffbc13022cdf333e1fe65235c48b5dbdeade;hpb=e3cd6c5c265cd481db6e0c5b529855d99f0bda30;p=musl diff --git a/src/stdio/stderr.c b/src/stdio/stderr.c index 3bdaffbc..f2bc4648 100644 --- a/src/stdio/stderr.c +++ b/src/stdio/stderr.c @@ -1,13 +1,18 @@ #include "stdio_impl.h" +#undef stderr + static unsigned char buf[UNGET]; -static FILE f = { +hidden FILE __stderr_FILE = { .buf = buf+UNGET, .buf_size = 0, .fd = 2, .flags = F_PERM | F_NORD, + .lbf = -1, .write = __stdio_write, .seek = __stdio_seek, .close = __stdio_close, + .lock = -1, }; -FILE *const stderr = &f; +FILE *const stderr = &__stderr_FILE; +FILE *volatile __stderr_used = &__stderr_FILE;