]>
Commit | Line | Data |
---|---|---|
320054e8 DG |
1 | #include "stdio_impl.h" |
2 | ||
3 | #undef stdout | |
4 | ||
5 | static unsigned char buf[BUFSIZ+UNGET]; | |
6 | hidden FILE __stdout_FILE = { | |
7 | .buf = buf+UNGET, | |
8 | .buf_size = sizeof buf-UNGET, | |
9 | .fd = 1, | |
10 | .flags = F_PERM | F_NORD, | |
11 | .lbf = '\n', | |
12 | .write = __stdout_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 | }; |
19 | FILE *const stdout = &__stdout_FILE; | |
20 | FILE *volatile __stdout_used = &__stdout_FILE; |