[13661] in Athena Bugs

home help back first fref pref prev next nref lref last post

sun4 7.7R: machtype

daemon@ATHENA.MIT.EDU (Albert Dvornik)
Fri Jul 14 15:19:30 1995

To: bugs@MIT.EDU
Date: Fri, 14 Jul 1995 15:19:19 EDT
From: Albert Dvornik <bert@MIT.EDU>

System name:		m2-032-5
Type and version:	SPARC/Classic 7.7R (1 update(s) to same version)
Display type:		cgthree

What were you trying to do?
	Check the CPU type on a SPARCstation 5.

What's wrong:
	machtype lies:
		% machtype -c
		SPARC/Classic
		% machtype -c -v
		SPARCstation Classic
	(see also "Type anv version:" line, above)

What should have happened:
	If possible, machtype should return the correct answer:
		% machtype -c
		SPARC/5
		% machtype -c -v
		SPARCstation 5
	If this is impossible, and no one comes up with a less
	misleading answer, this "feature" should at least be documented.

Please describe any relevant documentation references:

	The machtype(1) man page does not allow Sun machines to
	acknowledge their existence:

	     -c   Print the specific cpu type,  one  of  VAX780,  VAX750,
	          VAX730,  VAX8600,  VAX8200, MVAX-II, VAXSTAR, CVAXSTAR,
	          or VAX650  (on  a  VAX),  RTPC-ROMPC,  RTPC-SGP,  RTPC-
	          MOD135,  IBM-ATR  (on an IBM RT/PC), KN01 (on a Decsta-
	          tion 3100), KN02 (DS  5000),  KN210  (DS  5400),  KN220
	          (DS5500), KN02ba (DS5000/100), KN02ca (DS5000/25; "Max-
	          ine"), KN??? (unknown decstation) or POWER  (on  a  IBM
	          RISC/6000).

Please list any other disparaging remarks about the source code, which
we'll probably ignore because you are spewing anyway:

	I realize that Real Programmers never, ever write those
	time-wasting "if" statements when the answer can be
	conveniently hard-coded into the binary, but this pushing it:

		do_dpy(kernel, mf)
		char *kernel;
		int mf;
		{
		   puts(verbose? "cgthree frame buffer" : "cgthree");
		    return;
		}

	(taken from /afs/dev/source/src80/athena/bin/machtype/machtype_sol.c)

home help back first fref pref prev next nref lref last post