[comp.unix.wizards] kernel

pulsar@lsrhs.UUCP (Jim King) (03/30/88)

I have a problem I hope somebody out there can figure out.  There is an
include file for C called cpu.h.  IT contains a whole bunch of numbers
pertaining to certain cpu types.  I have a program I am trying to get to
work under ultrix.  I need a foolproof way that would work
on any ultrix-related system that would give me the type of cpu that
the ultrix is running on, and the version number.  Any suggestions?
-- 
<>			King DragonSlayer (pulsar)			    <>
<> UUCP: mit-eddie!mit-caf!lsrhs!pulsar | ARPA lsrhs!pulsar@caf.mit.edu     <>
[] Hello, I am looking for a nuclear wessel..  Do you know where the naval  []
[] Base in Alamida is?  Hello?  Hello?                                      []

ftw@datacube.UUCP (03/31/88)

If portability is not a problem, and Ultrix only runs on a VAX ;-), then you
may hard-wire in the notion that the program is being compiled for a VAX.

I'll be the first to admit that this not an elegant solution, but it may
be the quickest.



				Farrell T. Woods 

Datacube Inc. Systems / Software Group	4 Dearborn Rd. Peabody, Ma 01960
VOICE:	617-535-6644;	FAX: (617) 535-5643;  TWX: (710) 347-0125
INTERNET: ftw@datacube.COM
UUCP: {rutgers, ihnp4, mirror}!datacube!ftw

"OS/2 -- Half an operating system"