|
|
DataMuseum.dkPresents historical artifacts from the history of: Commodore CBM-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Commodore CBM-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 900 (0x384)
Types: TextFile
Notes: UNIX file
Names: »eprint.c«
└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code
└─⟦2d53db1df⟧ UNIX Filesystem
└─⟦this⟧ »frankh/format/eprint.c«
/* print the contents of errors and of timeouts */
#include <coherent.h>
#include <buf.h>
#include <con.h>
#include <stat.h>
#include <uproc.h>
#include <errno.h>
extern int errors;
extern int timeouts;
extern int badblk;
extern unsigned pass;
int ftload();
int ftuload();
int nulldev();
int nonedev();
CON wdcon = {
DFBLK|DFCHR, /* Flags */
6, /* Major index */
nulldev, /* Open */
nulldev, /* Close */
nulldev, /* Block */
nulldev, /* Read */
nulldev, /* Write */
nonedev, /* Ioctl */
nulldev, /* Powerfail */
nulldev, /* Timeout */
ftload, /* Load */
ftuload /* Unload */
};
/*
*/
ftload()
{
/*
Print cumulative timeouts and errors
*/
printf("\n Total errors to date: %d\n",errors);
printf(" Total timeouts to date: %d\n",timeouts);
printf(" Total passes to date: %d\n",pass);
printf(" Bad blocks on device: %d\n",badblk);
}
ftuload()
{
}