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

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