add PTHREAD_NULL
[musl.git] / src / stdio / stdin.c
blob5aa5262c2a5c8822f9006431898887789421c6e1
1 #include "stdio_impl.h"
3 #undef stdin
5 static unsigned char buf[BUFSIZ+UNGET];
6 hidden FILE __stdin_FILE = {
7 .buf = buf+UNGET,
8 .buf_size = sizeof buf-UNGET,
9 .fd = 0,
10 .flags = F_PERM | F_NOWR,
11 .read = __stdio_read,
12 .seek = __stdio_seek,
13 .close = __stdio_close,
14 .lock = -1,
16 FILE *const stdin = &__stdin_FILE;
17 FILE *volatile __stdin_used = &__stdin_FILE;