File:  [Research Unix] / researchv10dc / cmd / oworm / scsi / scsish.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 3 months ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

#include	"scsi.h"

main()
{
	if(scsiinit(1))
		exit(1);
	scsi_verbose = 1;
	scsiid(2);
	Ftie(0, 1);
	Fprint(1, "running\n");
	Fflush(1);
	while(yyparse())
		fprint(2, "error!!\n");
	exit(0);
}

getc()
{
	register c;

	if((c = Fgetc(0)) < 0)
		return(0);
	else
		return(c);
}

help()
{
	extern char *helpstrs[];
	int i;

	Fprint(1, "\n>> grammar\n");
	for(i = 0; helpstrs[i]; i++)
		Fprint(1, "%s\n", helpstrs[i]);
	Fprint(1, "\n");
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.