home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!natinst.com!news.dell.com!uudell!pensoft!usenet
- From: jpena@foo (Javier Pena)
- Newsgroups: comp.sys.hp
- Subject: gethostid problem
- Message-ID: <1992Sep14.213956.2341@pencom.com>
- Date: 14 Sep 92 21:39:56 GMT
- Sender: usenet@pencom.com (Usenet Psuedo User)
- Distribution: usa
- Organization: Pencom Software
- Lines: 29
-
- Hola Amigos,
- I am porting a program for the Sun to the HP, and this program
- uses the gethostid system call. This system call is not included in any of
- the header files in /usr/include but it's archived in the libc.a library.
- I included the prototype of the system call in the file and compiles OK. A
- simple test file looks as follows.
-
- #include <stdio.h>
- int gethostid(void);
- main()
- {
- printf("id = %i\n", gethostid());
- return 0;
- }
-
- When I ran the program I got a Bad system call (core dumped) message. If
- I'm doing something stupid ao If there is any other system call for the HP
- that does the job of gethostid please let me know ASAP.
-
- PS: I am using an HP 9000/705 with HP-UX A.08.07 A
- --
- ____ ___
- / __ __ __ / / __ ---- __
- / /_/ / / / /_ /_/ /__/ /_ /\ / /_/
- __/ / / |/ / /_ / \ / /_ / \/ / /
-
- jpena@pencom.com
- (512)343-1111
- "Julio Cesar Chavez for President of Mexico"
-