home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / hp / 8500 < prev    next >
Encoding:
Internet Message Format  |  1992-07-24  |  2.1 KB

  1. Path: sparky!uunet!olivea!mintaka.lcs.mit.edu!bloom-picayune.mit.edu!news
  2. From: mlevin@forte.cs.tufts.edu
  3. Newsgroups: comp.sys.hp
  4. Subject: help me find HP/UX equivalents for these SunOs calls
  5. Message-ID: <1992Jul24.161450.18873@athena.mit.edu>
  6. Date: 24 Jul 92 16:14:50 GMT
  7. Sender: news@athena.mit.edu (News system)
  8. Distribution: usa
  9. Organization: Tufts University
  10. Lines: 43
  11. Nntp-Posting-Host: pit-manager.mit.edu
  12.  
  13.  
  14.     I have a huge program written for BSD systems (it runs fine on
  15. SunOs and Ultrix). I want to port it to HP/UX; when I tried to
  16. recompile, I got several problems. I do not have a HP doc set (yet),
  17. so if anyone would email me (at mlevin@presto.cs.tufts.edu) any
  18. information on the HP/UX equivalents to the following BSD issues, I
  19. would be very grateful. Here goes:
  20.  
  21. 1. The macros for the wait3() call don't seem to work. On BSD, I used
  22. an argument of union wait *; it appears that on HP/UX the argument is
  23. an int. Can someone provide an example of a wait3() call on HP/UX
  24. followed by an example of the use of those WT* macros that extract the
  25. status from the wait3() result?
  26.  
  27. 2. What is the deal with openlog() on HP/UX? How does it differ from
  28. openlog() on SunOs?
  29.  
  30. 3. There doesn't seem to be a TIOCNOTTY constant for the ioctl() call.
  31. On SunOs, this constant tells the system you don't want to have a
  32. control terminal for this process. How do you do that on HP/UX?
  33.  
  34. 4. There doesn't seem to be a flock() function. What is it's
  35. equivalent on HP/UX?
  36.  
  37. 5. The constant HO doesn't seem to be defined in curses.h (it should
  38. contain the string which homes the cursor on a particular terminal).
  39. Where is it on HP/UX?
  40.  
  41. 6. There doesn't seem to be a sys_siglist[] (a char ** array with the
  42. names of signals in it). Is there one?
  43.  
  44. 7. There doesn't seem to be a setpriority() call. What is its
  45. equivalent on HP/UX?
  46.  
  47. 8. What function does one use under HP/UX to test for the CPU type (in
  48. order to make sure a program is used only on the CPU for which it is
  49. intended)? What .h file contains the possible CPU type constants?
  50.  
  51. If anyone knows the answers to any of these questions, please email me
  52. at mlevin@presto.cs.tufts.edu.
  53.  
  54.  
  55. Mike Levin
  56.