ref: 8b7b6ff1b717db376f32510ac62b89a822015050
dir: /lib/c/stdio.c/
#include <stdio.h>
static unsigned char inbuf[BUFSIZ];
static unsigned char outbuf[BUFSIZ];
FILE __iob[FOPEN_MAX] = {
{
.fd = 0,
.buf = inbuf,
.len = BUFSIZ,
.flags = _IOREAD
},
{
.fd = 1,
.buf = outbuf,
.len = BUFSIZ,
.flags = _IOWRITE | _IOLBF
},
{
.fd = 2,
.buf = stderr->unbuf,
.len = sizeof(stderr->unbuf),
.flags = _IOWRITE
},
};