shithub: scc

ref: 541539b33afc0c198e44ecce36b6b0f2030c6b3b
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,
	},
};