shithub: scc

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