home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / c / 20286 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.3 KB

  1. Xref: sparky comp.lang.c:20286 comp.sys.hp:15395 comp.unix.programmer:6066
  2. Newsgroups: comp.lang.c,comp.sys.hp,comp.unix.programmer
  3. Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!usenet.ins.cwru.edu!agate!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sunic!aun.uninett.no!nuug!abel!abel!meyer
  4. From: meyer@geomatic.no (Harald Martens Meyer)
  5. Subject: gethostid() call for HP720 with UX9.0
  6. Message-ID: <MEYER.93Jan27100512@ibsen.geomatic.no>
  7. Sender: meyer@geomatic.no (Harald Martens Meyer)
  8. Organization: Geomatic a.s, Norway.
  9. Date: Wed, 27 Jan 1993 09:05:12 GMT
  10. Lines: 29
  11.  
  12. Before I upgraded to HP-UX 9.0, the following function return the
  13. same value, as gethostid() on SUN's. But now I only get 0 (zero)
  14.  
  15. #ifdef HP
  16. int
  17.   gethostid()
  18. {
  19.   struct utsname cpu_name;
  20.   
  21.   uname (&cpu_name);
  22.   return(atoi(cpu_name.idnumber));
  23. }
  24. #endif HP
  25.  
  26.  
  27. Anybody know how I can get the same return value as gethostid() on
  28. SUN's??
  29.  
  30. I've got the same problem with our DecStation 5000.
  31.  
  32. Any help appreciated!!!!
  33.  
  34.   2
  35. HM
  36. --
  37. Harald Martens Meyer    | Geomatic a.s       |      #_O_#      Powder
  38. Email:meyer@geomatic.no | PO.Box 165 Skoyen  |    (/ _|_ \)     Snow
  39. Tel: +47 2 50 43 30     | N-0212 OSLO 2      |     \/   \/       Is
  40. Tfx: +47 2 50 05 55     | NORWAY             |      \   /  Simply the Best!
  41.