home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!swrinde!mips!darwin.sura.net!jvnc.net!mtcusa
- From: mtcusa@tigger.jvnc.net (Multilingual Technogies Corporation)
- Newsgroups: comp.unix.sysv386
- Subject: SCO Unix - getting version level - uname doesn't work
- Message-ID: <1992Jul27.202508.9870@tigger.jvnc.net>
- Date: 27 Jul 92 20:25:08 GMT
- Sender: news@tigger.jvnc.net (Zee News Genie)
- Distribution: usa
- Organization: JvNCnet, Princeton University, NJ
- Lines: 64
- Originator: mtcusa@tigger.jvnc.net
- Nntp-Posting-Host: tigger.jvnc.net
-
- HELP:
-
- I need to determine if I'm on a SCO 2 or SCO 4 box from software.
- One would think that the obvious solution would be 'uname(2)'.
-
- Think again.
-
- ******************
-
- Here is program A:
-
- #include <stdio.h>
- #include <sys/utsname.h>
-
- main()
- {
- struct utsname x;
-
- uname(&x);
-
- printf("release: %s\n", x.release);
- printf("version: %s\n", x.version);
- printf("machine: %s\n", x.machine);
- }
-
- On a SCO 2 box It produces:
-
- release: 3.2
- version: 2
- machine: i386
-
- On a SCO 4 box It produces:
-
- release: 3.2
- version: 2
- machine: i386
-
- Not much help here.
- ***********************
-
- Here is some output of uname -X on a SCO 2 box
-
- Release = 3.2v2.0
- KernelID = 90/06/10
- Machine = i80386
- BusType = AT
-
- Here is some output of uname -X on a SCO 4 box
-
- Release = 3.2v4.0
- KernelID = 92/01/20
- Machine = i80486
- BusType = ISA
-
- **********************
-
- AHA! you say, just use the same calls!!!
-
- But what are those calls? Where are they documented?
-
- God!! I HATE guru software!!!!! @#%&$%@&&%#!%!@&%$#$!!!!!!!!!!
-
-
- George Bogatko - mtcusa@tigger.jvnc.net
-