Commit | Line | Data |
---|---|---|
4c288062 RS |
1 | /* s/ file for Sequent "ptx 4", which is a modified SVR5.4. */ |
2 | ||
5b4c672f RS |
3 | /* Tell usg5-4.h not to include filio.h. */ |
4 | #define NO_FILIO_H | |
5 | ||
6 | #include "usg5-4.h" | |
4c288062 RS |
7 | |
8 | /* Marcus Daniels <marcus@sysc.pdx.edu> says that SIGINFO is defined | |
9 | on ptx4 but it is not a signal. Prevent process.c from doing the | |
10 | wrong thing. */ | |
bb7b4368 | 11 | #define BROKEN_SIGINFO |
4c288062 | 12 | |
8828ae9b RS |
13 | /* pae@dim.com (Phil Ernhardt) says this correction to |
14 | the definition in usg5-4.h is needed to prevent | |
15 | all asynchronous subprocesses from exiting right away. */ | |
35fc36a1 RS |
16 | |
17 | /* James Youngman <jay@gnu.org> found that on "DYNIX/ptx ARNIE 4.0 | |
18 | * V4.4.2 i386", the push of the ttcompat module would fail. It seems | |
19 | * that PTX 4.4.2 doesn't have that module, so if the push fails we | |
20 | * don't kill ourselves. While this version lacks ttcompat, it also | |
21 | * has ptem, but the manual page for ptem indicates that it should | |
22 | * be pushed onto the slave side before the line discipline module. | |
23 | * See also the streampty manual page, if you're curious (and have | |
24 | * a ptx system). | |
25 | */ | |
26 | ||
27 | /* rms: I hope that older versions which do have ttcompat | |
28 | will not get confused by the code to use ptem. */ | |
29 | ||
8828ae9b RS |
30 | #undef SETUP_SLAVE_PTY |
31 | #define SETUP_SLAVE_PTY \ | |
35fc36a1 RS |
32 | if (ioctl (xforkin, I_PUSH, "ptem") == -1 && errno != EINVAL) \ |
33 | fatal ("ioctl I_PUSH ptem", errno); \ | |
8828ae9b RS |
34 | if (ioctl (xforkin, I_PUSH, "ldterm") == -1) \ |
35 | fatal ("ioctl I_PUSH ldterm", errno); \ | |
35fc36a1 | 36 | if (ioctl (xforkin, I_PUSH, "ttcompat") == -1 && errno != EINVAL) \ |
8828ae9b | 37 | fatal ("ioctl I_PUSH ttcompat", errno); |