shithub: scc

ref: d82fe81032115596968f35e60beb85ac5ef69f9c
dir: /src/libc/stdio/__iob.c/

View raw version
#include <stdio.h>

FILE __iob[FOPEN_MAX] = {
	{
		.fd = 0,
		.flags = _IOREAD,
	},
	{
		.fd = 1,
		.flags = _IOWRITE | _IOLBF,
	},
	{
		.fd = 2,
		.buf = stderr->unbuf,
		.len = sizeof(stderr->unbuf),
		.flags = _IOWRITE | _IONBF,
		.rp = stderr->unbuf,
		.wp = stderr->unbuf,
	},
};