]> git.proxmox.com Git - wasi-libc.git/blame - libc-top-half/musl/src/stdio/stderr.c
Disable unused fields in FILE and __libc.
[wasi-libc.git] / libc-top-half / musl / src / stdio / stderr.c
CommitLineData
320054e8
DG
1#include "stdio_impl.h"
2
3#undef stderr
4
5static unsigned char buf[UNGET];
6hidden FILE __stderr_FILE = {
7 .buf = buf+UNGET,
8 .buf_size = 0,
9 .fd = 2,
10 .flags = F_PERM | F_NORD,
11 .lbf = -1,
12 .write = __stdio_write,
13 .seek = __stdio_seek,
14 .close = __stdio_close,
9bb4cc5c 15#if defined(__wasilibc_unmodified_upstream) || defined(_REENTRANT)
320054e8 16 .lock = -1,
9bb4cc5c 17#endif
320054e8
DG
18};
19FILE *const stderr = &__stderr_FILE;
20FILE *volatile __stderr_used = &__stderr_FILE;