home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.c:20286 comp.sys.hp:15395 comp.unix.programmer:6066
- Newsgroups: comp.lang.c,comp.sys.hp,comp.unix.programmer
- 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
- From: meyer@geomatic.no (Harald Martens Meyer)
- Subject: gethostid() call for HP720 with UX9.0
- Message-ID: <MEYER.93Jan27100512@ibsen.geomatic.no>
- Sender: meyer@geomatic.no (Harald Martens Meyer)
- Organization: Geomatic a.s, Norway.
- Date: Wed, 27 Jan 1993 09:05:12 GMT
- Lines: 29
-
- Before I upgraded to HP-UX 9.0, the following function return the
- same value, as gethostid() on SUN's. But now I only get 0 (zero)
-
- #ifdef HP
- int
- gethostid()
- {
- struct utsname cpu_name;
-
- uname (&cpu_name);
- return(atoi(cpu_name.idnumber));
- }
- #endif HP
-
-
- Anybody know how I can get the same return value as gethostid() on
- SUN's??
-
- I've got the same problem with our DecStation 5000.
-
- Any help appreciated!!!!
-
- 2
- HM
- --
- Harald Martens Meyer | Geomatic a.s | #_O_# Powder
- Email:meyer@geomatic.no | PO.Box 165 Skoyen | (/ _|_ \) Snow
- Tel: +47 2 50 43 30 | N-0212 OSLO 2 | \/ \/ Is
- Tfx: +47 2 50 05 55 | NORWAY | \ / Simply the Best!
-