Article View: comp.unix.programmer
Article #110help me get the HP/UX equivalents of these SunOs calls!
From: mlevin
Date: Fri, 24 Jul 1992 16:09
Date: Fri, 24 Jul 1992 16:09
43 lines
2256 bytes
2256 bytes
I have a huge program written for BSD systems (it runs fine on
SunOs and Ultrix). I want to port it to HP/UX; when I tried to
recompile, I got several problems. I do not have a HP doc set (yet),
so if anyone would email me (at mlevin@presto.cs.tufts.edu) any
information on the HP/UX equivalents to the following BSD issues, I
would be very grateful. Here goes:
1. The macros for the wait3() call don't seem to work. On BSD, I used
an argument of union wait *; it appears that on HP/UX the argument is
an int. Can someone provide an example of a wait3() call on HP/UX
followed by an example of the use of those WT* macros that extract the
status from the wait3() result?
2. What is the deal with openlog() on HP/UX? How does it differ from
openlog() on SunOs?
3. There doesn't seem to be a TIOCNOTTY constant for the ioctl() call.
On SunOs, this constant tells the system you don't want to have a
control terminal for this process. How do you do that on HP/UX?
4. There doesn't seem to be a flock() function. What is it's
equivalent on HP/UX?
5. The constant HO doesn't seem to be defined in curses.h (it should
contain the string which homes the cursor on a particular terminal).
Where is it on HP/UX?
6. There doesn't seem to be a sys_siglist[] (a char ** array with the
names of signals in it). Is there one?
7. There doesn't seem to be a setpriority() call. What is its
equivalent on HP/UX?
8. What function does one use under HP/UX to test for the CPU type (in
order to make sure a program is used only on the CPU for which it is
intended)? What .h file contains the possible CPU type constants?
If anyone knows the answers to any of these questions, please email me
at mlevin@presto.cs.tufts.edu.
Mike Levin
Technical Details
Message-ID:
<1992Jul24.160955.18581@athena.mit.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!ogicse!mintaka.lcs.mit.edu!bloom-picayune.mit.edu!newsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!mintaka.lcs.mit.edu!bloom-picayune.mit.edu!news From: mlevin@forte.cs.tufts.edu Newsgroups: comp.unix.programmer Subject: help me get the HP/UX equivalents of these SunOs calls! Message-ID: <1992Jul24.160955.18581@athena.mit.edu> Date: 24 Jul 92 16:09:55 GMT Article-I.D.: athena.1992Jul24.160955.18581 Sender: news@athena.mit.edu (News system) Distribution: usa Organization: Tufts University Lines: 43 Nntp-Posting-Host: pit-manager.mit.edu