blob: 171ff22a9842dc74db9ccf1be15df17cfc2af2c3 [file] [log] [blame]
Rich Felker0b44a032011-02-12 00:22:29 -05001#include "stdio_impl.h"
2
3static unsigned char buf[BUFSIZ+UNGET];
4static FILE f = {
5 .buf = buf+UNGET,
6 .buf_size = sizeof buf-UNGET,
7 .fd = 0,
8 .flags = F_PERM | F_NOWR,
9 .read = __stdio_read,
10 .seek = __stdio_seek,
11 .close = __stdio_close,
Rich Felkerdba68bf2011-07-30 08:02:14 -040012 .lock = -1,
Rich Felker0b44a032011-02-12 00:22:29 -050013};
14FILE *const stdin = &f;
Rich Felkera6adb2b2014-07-16 21:32:06 -040015FILE *volatile __stdin_used = &f;