shithub: scc

ref: 16ea0054046e540a90a8a44fd81c0f7b4ae8024d
dir: /lib/c/stdio.c/

View raw version

#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
	},
};