home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / hp / 10427 < prev    next >
Encoding:
Text File  |  1992-09-14  |  1.3 KB  |  41 lines

  1. Path: sparky!uunet!cs.utexas.edu!natinst.com!news.dell.com!uudell!pensoft!usenet
  2. From: jpena@foo (Javier Pena)
  3. Newsgroups: comp.sys.hp
  4. Subject: gethostid problem
  5. Message-ID: <1992Sep14.213956.2341@pencom.com>
  6. Date: 14 Sep 92 21:39:56 GMT
  7. Sender: usenet@pencom.com (Usenet Psuedo User)
  8. Distribution: usa
  9. Organization: Pencom Software
  10. Lines: 29
  11.  
  12. Hola Amigos,
  13.     I am porting a program for the Sun to the HP, and this program  
  14. uses the gethostid system call. This system call is not included in any of  
  15. the header files in /usr/include but it's archived in the libc.a library.  
  16. I included the prototype of the system call in the file and compiles OK. A  
  17. simple test file looks as follows.
  18.  
  19. #include <stdio.h>
  20. int gethostid(void);
  21. main()
  22. {
  23.         printf("id = %i\n", gethostid());
  24.         return 0;
  25. }
  26.  
  27. When I ran the program I got a Bad system call (core dumped) message. If  
  28. I'm doing something stupid ao If there is any other system call for the HP  
  29. that does the job of gethostid please let me know ASAP.
  30.  
  31. PS: I am using an HP 9000/705 with HP-UX A.08.07 A
  32. --
  33.    ____                      ___
  34.     / __        __  __      /  / __ ----  __
  35.    / /_/ / / / /_  /_/     /__/ /_ /\  / /_/
  36. __/ / /  |/ / /_  / \     /    /_ /  \/ / /
  37.  
  38. jpena@pencom.com
  39. (512)343-1111
  40. "Julio Cesar Chavez for President of Mexico"
  41.