diff options
author | Kevin Steves <stevesk@pobox.com> | 2000-11-05 15:31:36 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@pobox.com> | 2000-11-05 15:31:36 +0000 |
commit | 85b3db6bcabfd6fd3fd97c871f4e29053a3338f3 (patch) | |
tree | 53885015c81e9c42d00057a03219c9cbb89d697b | |
parent | 67e21e1eb2366f4598f8ee483dfbacc92010a687 (diff) |
- (stevesk) pty.c: use __hpux to identify HP-UX.
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | pty.c | 7 |
2 files changed, 6 insertions, 2 deletions
@@ -10,6 +10,7 @@ | |||
10 | - (bal) auth2-skey.c - Checked in. Missing from portable tree. | 10 | - (bal) auth2-skey.c - Checked in. Missing from portable tree. |
11 | - (bal) Reworked NEWS-OS and NeXT ports to extract waitpid() and | 11 | - (bal) Reworked NEWS-OS and NeXT ports to extract waitpid() and |
12 | setsid() into more common files | 12 | setsid() into more common files |
13 | - (stevesk) pty.c: use __hpux to identify HP-UX. | ||
13 | 14 | ||
14 | 20001029 | 15 | 20001029 |
15 | - (stevesk) Fix typo in auth.c: USE_PAM not PAM | 16 | - (stevesk) Fix typo in auth.c: USE_PAM not PAM |
@@ -117,12 +117,15 @@ pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen) | |||
117 | return 0; | 117 | return 0; |
118 | } | 118 | } |
119 | #ifndef HAVE_CYGWIN | 119 | #ifndef HAVE_CYGWIN |
120 | /* Push the appropriate streams modules, as described in Solaris pts(7). */ | 120 | /* |
121 | * Push the appropriate streams modules, as described in Solaris pts(7). | ||
122 | * HP-UX pts(7) doesn't have ttcompat module. | ||
123 | */ | ||
121 | if (ioctl(*ttyfd, I_PUSH, "ptem") < 0) | 124 | if (ioctl(*ttyfd, I_PUSH, "ptem") < 0) |
122 | error("ioctl I_PUSH ptem: %.100s", strerror(errno)); | 125 | error("ioctl I_PUSH ptem: %.100s", strerror(errno)); |
123 | if (ioctl(*ttyfd, I_PUSH, "ldterm") < 0) | 126 | if (ioctl(*ttyfd, I_PUSH, "ldterm") < 0) |
124 | error("ioctl I_PUSH ldterm: %.100s", strerror(errno)); | 127 | error("ioctl I_PUSH ldterm: %.100s", strerror(errno)); |
125 | #ifndef _HPUX_SOURCE | 128 | #ifndef __hpux |
126 | if (ioctl(*ttyfd, I_PUSH, "ttcompat") < 0) | 129 | if (ioctl(*ttyfd, I_PUSH, "ttcompat") < 0) |
127 | error("ioctl I_PUSH ttcompat: %.100s", strerror(errno)); | 130 | error("ioctl I_PUSH ttcompat: %.100s", strerror(errno)); |
128 | #endif | 131 | #endif |