scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

__iob.c (285B)


      1 #include <stdio.h>
      2 
      3 FILE __iob[FOPEN_MAX] = {
      4 	{
      5 		.fd = 0,
      6 		.flags = _IOREAD,
      7 	},
      8 	{
      9 		.fd = 1,
     10 		.flags = _IOWRITE | _IOLBF,
     11 	},
     12 	{
     13 		.fd = 2,
     14 		.buf = stderr->unbuf,
     15 		.len = sizeof(stderr->unbuf),
     16 		.flags = _IOWRITE | _IONBF,
     17 		.rp = stderr->unbuf,
     18 		.wp = stderr->unbuf,
     19 	},
     20 };