annotate src/s/ptx4.h @ 86192:9dd6df5cf48b

*** empty log message ***
author Glenn Morris <rgm@gnu.org>
date Sat, 17 Nov 2007 03:56:37 +0000
parents f06998349cfc
children 68df465b9550 f55f9811f5d7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
574a328ee4b2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
23
15860
bad765e6a8d9 Fix include file name.
Richard M. Stallman <rms@gnu.org>
parents: 15845
diff changeset
24 /* Tell usg5-4.h not to include filio.h. */
bad765e6a8d9 Fix include file name.
Richard M. Stallman <rms@gnu.org>
parents: 15845
diff changeset
25 #define NO_FILIO_H
bad765e6a8d9 Fix include file name.
Richard M. Stallman <rms@gnu.org>
parents: 15845
diff changeset
26
bad765e6a8d9 Fix include file name.
Richard M. Stallman <rms@gnu.org>
parents: 15845
diff changeset
27 #include "usg5-4.h"
15845
574a328ee4b2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
28
574a328ee4b2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
29 /* Marcus Daniels <marcus@sysc.pdx.edu> says that SIGINFO is defined
574a328ee4b2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
30 on ptx4 but it is not a signal. Prevent process.c from doing the
574a328ee4b2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
31 wrong thing. */
26090
63fd40a97a75 s/usg5-4.h:
Paul Eggert <eggert@twinsun.com>
parents: 24210
diff changeset
32 #define BROKEN_SIGINFO
15845
574a328ee4b2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
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
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 27677
diff changeset
59
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 27677
diff changeset
60 /* arch-tag: 14621824-8dca-432b-a97a-049fc4ce0e9f
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 27677
diff changeset
61 (do not change this comment) */