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

⟦7b490e46f⟧ TextFile

    Length: 320 (0x140)
    Types: TextFile
    Notes: UNIX file
    Names: »accton.c«

Derivation

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

TextFile

/*
 * Enable and disable system-wide
 * process accounting (for sa).
 */

#include <stdio.h>

main(argc, argv)
char *argv[];
{
	char *acfile;

	if (argc > 2)
		usage();
	acfile = argc==1 ? NULL : argv[1];
	if (acct(acfile) < 0)
		perror(acfile);
}

usage()
{
	fprintf(stderr, "Usage: /etc/accton [file]\n");
	exit(1);
}