DataMuseum.dk

Presents historical artifacts from the history of:

Commodore CBM-900

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Commodore CBM-900

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦e1a34c8b3⟧ TextFile

    Length: 437 (0x1b5)
    Types: TextFile
    Notes: UNIX file
    Names: »_fp.c«

Derivation

└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code
    └─⟦f4b8d8c84⟧ UNIX V7 Filesystem
        └─ ⟦this⟧ »libc/stdio/_fp.c« 

TextFile

/*
 * Standard I/O Library Internals
 * File structures
 * (note stderr default unbuffered)
 */

#include <stdio.h>

extern	int	_fginit(),
		_fpinit();
FILE	*_fp[_NFILE] = { &_stdin, &_stdout, &_stderr };
FILE	_stdin	= { NULL, NULL, NULL, 0, &_fginit, &_fpinit, _FINUSE, 0, 0 };
FILE	_stdout	= { NULL, NULL, NULL, 0, &_fginit, &_fpinit, _FINUSE, 1, 0 };
FILE	_stderr	= { NULL, NULL, NULL, 0, &_fginit, &_fpinit, _FINUSE|_FSTBUF, 2, 0 };