75963
|
1 /* s/ file for Sequent "ptx 4", which is a modified SVR5.4.
|
|
2
|
|
3 Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
|
|
4 2007 Free Software Foundation, Inc.
|
|
5
|
|
6 This file is part of GNU Emacs.
|
|
7
|
|
8 GNU Emacs is free software; you can redistribute it and/or modify
|
|
9 it under the terms of the GNU General Public License as published by
|
78259
|
10 the Free Software Foundation; either version 3, or (at your option)
|
75963
|
11 any later version.
|
|
12
|
|
13 GNU Emacs is distributed in the hope that it will be useful,
|
|
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16 GNU General Public License for more details.
|
|
17
|
|
18 You should have received a copy of the GNU General Public License
|
|
19 along with GNU Emacs; see the file COPYING. If not, write to
|
|
20 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
21 Boston, MA 02110-1301, USA. */
|
|
22
|
15845
|
23
|
15860
|
24 /* Tell usg5-4.h not to include filio.h. */
|
|
25 #define NO_FILIO_H
|
|
26
|
|
27 #include "usg5-4.h"
|
15845
|
28
|
|
29 /* Marcus Daniels <marcus@sysc.pdx.edu> says that SIGINFO is defined
|
|
30 on ptx4 but it is not a signal. Prevent process.c from doing the
|
|
31 wrong thing. */
|
26090
|
32 #define BROKEN_SIGINFO
|
15845
|
33
|
21145
|
34 /* pae@dim.com (Phil Ernhardt) says this correction to
|
|
35 the definition in usg5-4.h is needed to prevent
|
|
36 all asynchronous subprocesses from exiting right away. */
|
24210
|
37
|
|
38 /* James Youngman <jay@gnu.org> found that on "DYNIX/ptx ARNIE 4.0
|
|
39 * V4.4.2 i386", the push of the ttcompat module would fail. It seems
|
|
40 * that PTX 4.4.2 doesn't have that module, so if the push fails we
|
|
41 * don't kill ourselves. While this version lacks ttcompat, it also
|
|
42 * has ptem, but the manual page for ptem indicates that it should
|
|
43 * be pushed onto the slave side before the line discipline module.
|
|
44 * See also the streampty manual page, if you're curious (and have
|
|
45 * a ptx system).
|
|
46 */
|
|
47
|
|
48 /* rms: I hope that older versions which do have ttcompat
|
|
49 will not get confused by the code to use ptem. */
|
|
50
|
21145
|
51 #undef SETUP_SLAVE_PTY
|
|
52 #define SETUP_SLAVE_PTY \
|
24210
|
53 if (ioctl (xforkin, I_PUSH, "ptem") == -1 && errno != EINVAL) \
|
|
54 fatal ("ioctl I_PUSH ptem", errno); \
|
21145
|
55 if (ioctl (xforkin, I_PUSH, "ldterm") == -1) \
|
|
56 fatal ("ioctl I_PUSH ldterm", errno); \
|
24210
|
57 if (ioctl (xforkin, I_PUSH, "ttcompat") == -1 && errno != EINVAL) \
|
21145
|
58 fatal ("ioctl I_PUSH ttcompat", errno);
|
52401
|
59
|
|
60 /* arch-tag: 14621824-8dca-432b-a97a-049fc4ce0e9f
|
|
61 (do not change this comment) */
|