eric@nosun.west.sun.com (Eric Hanchrow) (03/10/90)
I think there's some code which lets you deduce a machine's architecture and maybe even its model number, given the host id. Anyone out there know what this code is??
sjs@cad.berkeley.edu (Steve Smith) (03/14/90)
The masks you need to determine machine and architecture from the host id are in /usr/include/machine/cpu.h for your host, and unader /usr/include/sun*/cpu.h for other architectures. For example, I am on a sun 3 and the files <machine/cpu.h> and <sun3/cpu.h> are identical. If you want to know about sun 4's look under /usr/include/sun4/cpu.h. The mask for the architecture is CPU_ARCH and the mask for the machine type is CPU_MACH. It makes sense after a little examination.