xref: /third_party/musl/porting/uniproton/kernel/src/stdio/stdin.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/musl/porting/uniproton/kernel/src/stdio/
1570af302Sopenharmony_ci#include "stdio_impl.h"
2570af302Sopenharmony_ci
3570af302Sopenharmony_ci#undef stdin
4570af302Sopenharmony_ci
5570af302Sopenharmony_cistatic unsigned char buf[BUFSIZ+UNGET];
6570af302Sopenharmony_cihidden FILE __stdin_FILE = {
7570af302Sopenharmony_ci	.buf = buf+UNGET,
8570af302Sopenharmony_ci	.buf_size = sizeof buf-UNGET,
9570af302Sopenharmony_ci	.fd = 0,
10570af302Sopenharmony_ci	.flags = F_PERM | F_NOWR,
11570af302Sopenharmony_ci	.read = __stdio_read,
12570af302Sopenharmony_ci	.seek = __stdio_seek,
13570af302Sopenharmony_ci	.close = __stdio_close,
14570af302Sopenharmony_ci	.lock = -1,
15570af302Sopenharmony_ci};
16570af302Sopenharmony_ciFILE *const stdin = &__stdin_FILE;
17570af302Sopenharmony_ciFILE *volatile __stdin_used = &__stdin_FILE;
18

Indexes created Thu Nov 07 10:32:03 CST 2024