home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / sysv386 / 12501 < prev    next >
Encoding:
Text File  |  1992-07-27  |  1.5 KB  |  78 lines

  1. Path: sparky!uunet!cs.utexas.edu!swrinde!mips!darwin.sura.net!jvnc.net!mtcusa
  2. From: mtcusa@tigger.jvnc.net (Multilingual Technogies Corporation)
  3. Newsgroups: comp.unix.sysv386
  4. Subject: SCO Unix - getting version level - uname doesn't work
  5. Message-ID: <1992Jul27.202508.9870@tigger.jvnc.net>
  6. Date: 27 Jul 92 20:25:08 GMT
  7. Sender: news@tigger.jvnc.net (Zee News Genie)
  8. Distribution: usa
  9. Organization: JvNCnet, Princeton University, NJ
  10. Lines: 64
  11. Originator: mtcusa@tigger.jvnc.net
  12. Nntp-Posting-Host: tigger.jvnc.net
  13.  
  14. HELP:
  15.  
  16. I need to determine if I'm on a SCO 2 or SCO 4 box from software.
  17. One would think that the obvious solution would be 'uname(2)'.
  18.  
  19. Think again.
  20.  
  21. ******************
  22.  
  23. Here is program A:
  24.  
  25. #include <stdio.h>
  26. #include <sys/utsname.h>
  27.  
  28. main()
  29. {
  30. struct utsname x;
  31.  
  32.     uname(&x);
  33.  
  34.     printf("release: %s\n", x.release);
  35.     printf("version: %s\n", x.version);
  36.     printf("machine: %s\n", x.machine);
  37. }
  38.  
  39. On a SCO 2 box It produces:
  40.  
  41.     release: 3.2
  42.     version: 2
  43.     machine: i386
  44.  
  45. On a SCO 4 box It produces:
  46.  
  47.     release: 3.2
  48.     version: 2
  49.     machine: i386
  50.  
  51. Not much help here.
  52. ***********************
  53.  
  54. Here is some output of uname -X on a SCO 2 box
  55.  
  56. Release = 3.2v2.0
  57. KernelID = 90/06/10
  58. Machine = i80386
  59. BusType = AT
  60.  
  61. Here is some output of uname -X on a SCO 4 box
  62.  
  63. Release = 3.2v4.0
  64. KernelID = 92/01/20
  65. Machine = i80486
  66. BusType = ISA
  67.  
  68. **********************
  69.  
  70. AHA! you say, just use the same calls!!!
  71.  
  72. But what are those calls?  Where are they documented?
  73.  
  74. God!! I HATE guru software!!!!!   @#%&$%@&&%#!%!@&%$#$!!!!!!!!!!
  75.  
  76.  
  77. George Bogatko - mtcusa@tigger.jvnc.net
  78.