musl/src/stdio/stdin.c

16 lines
312 B
C
Raw Normal View History

2011-02-12 00:22:29 -05:00
#include "stdio_impl.h"
static unsigned char buf[BUFSIZ+UNGET];
static FILE f = {
.buf = buf+UNGET,
.buf_size = sizeof buf-UNGET,
.fd = 0,
.flags = F_PERM | F_NOWR,
.read = __stdio_read,
.seek = __stdio_seek,
.close = __stdio_close,
.lock = -1,
2011-02-12 00:22:29 -05:00
};
FILE *const stdin = &f;
FILE *const __stdin_used = &f;