musl/src/stdio/stderr.c

15 lines
261 B
C
Raw Normal View History

2011-02-12 00:22:29 -05:00
#include "stdio_impl.h"
static unsigned char buf[UNGET];
2011-02-12 00:22:29 -05:00
static FILE f = {
.buf = buf+UNGET,
.buf_size = 0,
2011-02-12 00:22:29 -05:00
.fd = 2,
.flags = F_PERM | F_NORD,
.lbf = -1,
2011-02-12 00:22:29 -05:00
.write = __stdio_write,
.seek = __stdio_seek,
.close = __stdio_close,
};
FILE *const stderr = &f;