move msghdr and cmsghdr out of bits/socket.h
[musl.git] / src / stdio / stdout.c
blob4985a417bdda733de44f88defcc849eeac9fb427
1 #include "stdio_impl.h"
3 #undef stdout
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,
15 .lock = -1,
17 FILE *const stdout = &__stdout_FILE;
18 FILE *volatile __stdout_used = &__stdout_FILE;