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

⟦3f30a3eb0⟧ TextFile

    Length: 484 (0x1e4)
    Types: TextFile
    Notes: UNIX file
    Names: »discbuf.h«

Derivation

└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code
    └─⟦f4b8d8c84⟧ UNIX V7 Filesystem
        └─ ⟦this⟧ »cmd/dump/discbuf.h« 

TextFile

/*
 * This is the format of a
 * disc buffer as managed by the
 * user level cache manager.
 */
typedef	struct	DISCBUF
{
	struct	DISCBUF	*db_fp;		/* Link */
	int	db_refc;		/* Reference count */
	long	db_block;		/* Block */
	int	db_flag;		/* Some flags */
	char	db_data[BUFSIZ];	/* Data block */
} 	DISCBUF;

#define	DB_DIRT	01			/* Dirty buffer */
#define	DB_OK	02			/* Valid buffer */

extern DISCBUF	*dbread();
extern DISCBUF	*dbgrab();
extern DISCBUF *dbzero();
extern FILE	*dbfp;