Mercurial > emacs
annotate src/s/ptx4.h @ 87070:c5768352ad3f
Require individual files if needed when compiling, rather than
esh-maint. Collect any require statements. Move provide statement to
end. Move any commentary to start.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Wed, 05 Dec 2007 07:01:49 +0000 |
parents | f06998349cfc |
children | 68df465b9550 f55f9811f5d7 |
rev | line source |
---|---|
75963
d1ea3bc6c40d
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
1 /* s/ file for Sequent "ptx 4", which is a modified SVR5.4. |
d1ea3bc6c40d
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
2 |
d1ea3bc6c40d
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
3 Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, |
d1ea3bc6c40d
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
4 2007 Free Software Foundation, Inc. |
d1ea3bc6c40d
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
5 |
d1ea3bc6c40d
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
6 This file is part of GNU Emacs. |
d1ea3bc6c40d
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
7 |
d1ea3bc6c40d
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
8 GNU Emacs is free software; you can redistribute it and/or modify |
d1ea3bc6c40d
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
9 it under the terms of the GNU General Public License as published by |
78259
f06998349cfc
Switch license to GPLv3 or later.
Glenn Morris <rgm@gnu.org>
parents:
75963
diff
changeset
|
10 the Free Software Foundation; either version 3, or (at your option) |
75963
d1ea3bc6c40d
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
11 any later version. |
d1ea3bc6c40d
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
12 |
d1ea3bc6c40d
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
13 GNU Emacs is distributed in the hope that it will be useful, |
d1ea3bc6c40d
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
14 but WITHOUT ANY WARRANTY; without even the implied warranty of |
d1ea3bc6c40d
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
d1ea3bc6c40d
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
16 GNU General Public License for more details. |
d1ea3bc6c40d
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
17 |
d1ea3bc6c40d
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
18 You should have received a copy of the GNU General Public License |
d1ea3bc6c40d
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
19 along with GNU Emacs; see the file COPYING. If not, write to |
d1ea3bc6c40d
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
20 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
d1ea3bc6c40d
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
21 Boston, MA 02110-1301, USA. */ |
d1ea3bc6c40d
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
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
469c3de61eb1
(SETUP_SLAVE_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents:
15860
diff
changeset
|
34 /* pae@dim.com (Phil Ernhardt) says this correction to |
469c3de61eb1
(SETUP_SLAVE_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents:
15860
diff
changeset
|
35 the definition in usg5-4.h is needed to prevent |
469c3de61eb1
(SETUP_SLAVE_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents:
15860
diff
changeset
|
36 all asynchronous subprocesses from exiting right away. */ |
24210
4dc06f8c8c33
(SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents:
21145
diff
changeset
|
37 |
4dc06f8c8c33
(SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents:
21145
diff
changeset
|
38 /* James Youngman <jay@gnu.org> found that on "DYNIX/ptx ARNIE 4.0 |
4dc06f8c8c33
(SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents:
21145
diff
changeset
|
39 * V4.4.2 i386", the push of the ttcompat module would fail. It seems |
4dc06f8c8c33
(SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents:
21145
diff
changeset
|
40 * that PTX 4.4.2 doesn't have that module, so if the push fails we |
4dc06f8c8c33
(SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents:
21145
diff
changeset
|
41 * don't kill ourselves. While this version lacks ttcompat, it also |
4dc06f8c8c33
(SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents:
21145
diff
changeset
|
42 * has ptem, but the manual page for ptem indicates that it should |
4dc06f8c8c33
(SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents:
21145
diff
changeset
|
43 * be pushed onto the slave side before the line discipline module. |
4dc06f8c8c33
(SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents:
21145
diff
changeset
|
44 * See also the streampty manual page, if you're curious (and have |
4dc06f8c8c33
(SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents:
21145
diff
changeset
|
45 * a ptx system). |
4dc06f8c8c33
(SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents:
21145
diff
changeset
|
46 */ |
4dc06f8c8c33
(SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents:
21145
diff
changeset
|
47 |
4dc06f8c8c33
(SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents:
21145
diff
changeset
|
48 /* rms: I hope that older versions which do have ttcompat |
4dc06f8c8c33
(SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents:
21145
diff
changeset
|
49 will not get confused by the code to use ptem. */ |
4dc06f8c8c33
(SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents:
21145
diff
changeset
|
50 |
21145
469c3de61eb1
(SETUP_SLAVE_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents:
15860
diff
changeset
|
51 #undef SETUP_SLAVE_PTY |
469c3de61eb1
(SETUP_SLAVE_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents:
15860
diff
changeset
|
52 #define SETUP_SLAVE_PTY \ |
24210
4dc06f8c8c33
(SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents:
21145
diff
changeset
|
53 if (ioctl (xforkin, I_PUSH, "ptem") == -1 && errno != EINVAL) \ |
4dc06f8c8c33
(SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents:
21145
diff
changeset
|
54 fatal ("ioctl I_PUSH ptem", errno); \ |
21145
469c3de61eb1
(SETUP_SLAVE_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents:
15860
diff
changeset
|
55 if (ioctl (xforkin, I_PUSH, "ldterm") == -1) \ |
469c3de61eb1
(SETUP_SLAVE_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents:
15860
diff
changeset
|
56 fatal ("ioctl I_PUSH ldterm", errno); \ |
24210
4dc06f8c8c33
(SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents:
21145
diff
changeset
|
57 if (ioctl (xforkin, I_PUSH, "ttcompat") == -1 && errno != EINVAL) \ |
21145
469c3de61eb1
(SETUP_SLAVE_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents:
15860
diff
changeset
|
58 fatal ("ioctl I_PUSH ttcompat", errno); |
52401 | 59 |
60 /* arch-tag: 14621824-8dca-432b-a97a-049fc4ce0e9f | |
61 (do not change this comment) */ |