annotate src/s/dgux.h @ 5526:5131e7d642b9

(version): Fix sed regexp to match two-elt version number.
author Roland McGrath <roland@gnu.org>
date Sat, 08 Jan 1994 22:06:34 +0000
parents 8415001e90e2
children 50216826c507
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
457
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
1 /* Definitions file for GNU Emacs running on Data General's DG/UX
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
2 version 4.32 and above.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
3 Copyright (C) 1985, 1986, 1991 Free Software Foundation, Inc.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
4
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
5 This file is part of GNU Emacs.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
6
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
7 GNU Emacs is free software; you can redistribute it and/or modify
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
8 it under the terms of the GNU General Public License as published by
3699
7be0f0a02725 Updated GPL version to 2.
Jim Blandy <jimb@redhat.com>
parents: 3601
diff changeset
9 the Free Software Foundation; either version 2, or (at your option)
457
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
10 any later version.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
11
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
12 GNU Emacs is distributed in the hope that it will be useful,
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
15 GNU General Public License for more details.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
16
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
18 along with GNU Emacs; see the file COPYING. If not, write to
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
19 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
20
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
21
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
22 /*
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
23 * Define symbols to identify the version of Unix this is.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
24 * Define all the symbols that apply correctly.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
25 */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
26
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
27 /* #define UNIPLUS */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
28 /* #define USG5 */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
29 /* #define USG */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
30 /* #define HPUX */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
31 /* #define UMAX */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
32 /* #define BSD4_1 */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
33 #define BSD4_2
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
34 #define BSD4_3
3600
c0b91ff8928a * s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
35 #define BSD4_4
457
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
36 #define BSD
3600
c0b91ff8928a * s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
37 #define SVR4
457
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
38
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
39 /* SYSTEM_TYPE should indicate the kind of system you are using.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
40 It sets the Lisp variable system-type. */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
41
5258
8415001e90e2 (SYSTEM_TYPE): Make it dgux.
Richard M. Stallman <rms@gnu.org>
parents: 5094
diff changeset
42 #define SYSTEM_TYPE "dgux"
457
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
43
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
44 /* NOMULTIPLEJOBS should be defined if your system's shell
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
45 does not have "job control" (the ability to stop a program,
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
46 run some other program, then continue the first one). */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
47
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
48 /* #define NOMULTIPLEJOBS */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
49
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
50 /* Emacs can read input using SIGIO and buffering characters itself,
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
51 or using CBREAK mode and making C-g cause SIGINT.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
52 The choice is controlled by the variable interrupt_input.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
53 Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO)
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
54
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
55 SIGIO can be used only on systems that implement it (4.2 and 4.3).
3591
507f64624555 Apply typo patches from Paul Eggert.
Jim Blandy <jimb@redhat.com>
parents: 3584
diff changeset
56 CBREAK mode has two disadvantages
457
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
57 1) At least in 4.2, it is impossible to handle the Meta key properly.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
58 I hear that in system V this problem does not exist.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
59 2) Control-G causes output to be discarded.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
60 I do not know whether this can be fixed in system V.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
61
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
62 Another method of doing input is planned but not implemented.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
63 It would have Emacs fork off a separate process
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
64 to read the input and send it to the true Emacs process
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
65 through a pipe.
5008
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
66
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
67 NOTE: On DGUX, there is a problem using INTERRUPT_INPUT: When invoked
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
68 under X11 using a job control shell (csh, ksh) in the background,
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
69 emacs will stop on tty output. I suspect this is a kernel problem and
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
70 have reported it and a sample program to DGC. Meanwhile, a workaround
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
71 is to define BROKEN_FIONREAD and not use INTERRUPT_INPUT.
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
72
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
73 -pmr@rock.concert.net
457
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
74 */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
75
5008
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
76 #define BROKEN_FIONREAD
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
77 /* #define INTERRUPT_INPUT */
457
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
78
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
79 /*
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
80 * Define HAVE_TIMEVAL if the system supports the BSD style clock values.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
81 * Look in <sys/time.h> for a timeval structure.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
82 */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
83
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
84 #define HAVE_TIMEVAL
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
85
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
86 /*
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
87 * Define HAVE_SELECT if the system supports the `select' system call.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
88 */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
89
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
90 #define HAVE_SELECT
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
91
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
92 /*
3600
c0b91ff8928a * s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
93 * Define HAVE_SETSID if the system supports POSIX disassociate
c0b91ff8928a * s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
94 * terminal.
c0b91ff8928a * s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
95 */
5008
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
96
3600
c0b91ff8928a * s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
97 #define HAVE_SETSID
5008
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
98
3600
c0b91ff8928a * s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
99 /*
457
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
100 * Define HAVE_SOCKETS if the system supports sockets.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
101 */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
102
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
103 #define HAVE_SOCKETS
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
104
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
105 /*
3600
c0b91ff8928a * s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
106 * Define HAVE_UNIX_DOMAIN if the system supports Unix
c0b91ff8928a * s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
107 * domain sockets.
c0b91ff8928a * s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
108 */
5008
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
109
3600
c0b91ff8928a * s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
110 #define HAVE_UNIX_DOMAIN
5008
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
111
3600
c0b91ff8928a * s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
112 /*
457
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
113 * Define HAVE_PTYS if the system supports pty devices.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
114 */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
115
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
116 #define HAVE_PTYS
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
117
5008
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
118 /* (Assume) we do have vfork. */
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
119
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
120 #define HAVE_VFORK
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
121
457
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
122 /*
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
123 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
124 * The 4.2 opendir, etc., library functions.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
125 */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
126
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
127 /* #define NONSYSTEM_DIR_LIBRARY */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
128
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
129 /* Define this symbol if your system has the functions bcopy, etc. */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
130
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
131 #define BSTRING
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
132
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
133 /* subprocesses should be defined if you want to
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
134 have code for asynchronous subprocesses
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
135 (as used in M-x compile and M-x shell).
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
136 This is generally OS dependent, and not supported
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
137 under most USG systems. */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
138
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
139 #define subprocesses
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
140
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
141 /* If your system uses COFF (Common Object File Format) then define the
2010
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
142 preprocessor symbol "COFF".
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
143
2318
50737ca2fd45 Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents: 2302
diff changeset
144 DGUX can use either COFF or ELF; the default is ELF.
50737ca2fd45 Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents: 2302
diff changeset
145 To compile for COFF (or BCS) use the TARGET_BINARY_INTERFACE
50737ca2fd45 Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents: 2302
diff changeset
146 environment variable. */
2010
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
147
2318
50737ca2fd45 Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents: 2302
diff changeset
148 #if defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET)
50737ca2fd45 Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents: 2302
diff changeset
149 #undef ELF
50737ca2fd45 Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents: 2302
diff changeset
150 #ifndef COFF
50737ca2fd45 Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents: 2302
diff changeset
151 #define COFF
50737ca2fd45 Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents: 2302
diff changeset
152 #endif /* COFF */
50737ca2fd45 Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents: 2302
diff changeset
153 #else /* defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET) */
50737ca2fd45 Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents: 2302
diff changeset
154 #undef COFF
2010
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
155 #ifndef ELF
2318
50737ca2fd45 Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents: 2302
diff changeset
156 #define ELF
50737ca2fd45 Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents: 2302
diff changeset
157 #endif /* ELF */
50737ca2fd45 Decide automatically whether to use COFF or ELF.
Richard M. Stallman <rms@gnu.org>
parents: 2302
diff changeset
158 #endif /* defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET) */
2010
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
159
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
160 #ifndef COFF /* People will probably find this apparently unreliable
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
161 till the NFS dumping bug is fixed. */
457
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
162
2010
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
163 /* It is possible to undump to ELF with DG/UX 5.4, but for revisions below
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
164 5.4.1 the undump MUST be done on a local file system, or the kernel will
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
165 panic. ELF executables have the advantage of using shared libraries,
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
166 while COFF executables will still work on 4.2x systems. */
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
167
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
168 #define UNEXEC unexelf.o
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
169
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
170 /* This makes sure that all segments in the executable are undumped,
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
171 not just text, data, and bss. In the case of Mxdb and shared
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
172 libraries, additional information is stored in other sections.
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
173 It does not hurt to have this defined if you don't use Mxdb or
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
174 shared libraries. In fact, it makes no difference. */
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
175
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
176 /* Necessary for shared libraries and Mxdb debugging information. */
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
177 #define USG_SHARED_LIBRARIES
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
178 #endif
457
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
179
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
180 /* define MAIL_USE_FLOCK if the mailer uses flock
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
181 to interlock access to /usr/spool/mail/$USER.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
182 The alternative is that a lock file named
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
183 /usr/spool/mail/$USER.lock. */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
184
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
185 /* #define MAIL_USE_FLOCK */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
186
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
187 /* Define CLASH_DETECTION if you want lock files to be written
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
188 so that Emacs can tell instantly when you try to modify
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
189 a file that someone else has modified in his Emacs. */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
190
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
191 /* #define CLASH_DETECTION */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
192
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
193 /* Define a replacement for the baud rate switch, since DG/UX uses a different
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
194 from BSD. */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
195
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
196 #define BAUD_CONVERT { 0, 110, 134, 150, 300, 600, 1200, 1800, 2400, \
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
197 4800, 9600, 19200, 38400 }
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
198
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
199 /*
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
200 * Define NLIST_STRUCT if the system has nlist.h
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
201 */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
202
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
203 #define NLIST_STRUCT
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
204
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
205 /*
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
206 * Make WM Interface Compliant.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
207 */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
208
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
209 #define XICCC
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
210
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
211 /* Here, on a separate page, add any special hacks needed
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
212 to make Emacs work on this system. For example,
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
213 you might define certain system call names that don't
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
214 exist on your system, or that do different things on
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
215 your system and must be used only through an encapsulation
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
216 (Which you should place, by convention, in sysdep.c). */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
217
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
218 /* Some compilers tend to put everything declared static
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
219 into the initialized data area, which becomes pure after dumping Emacs.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
220 On these systems, you must #define static as nothing to foil this.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
221 Note that emacs carefully avoids static vars inside functions. */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
222
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
223 /* #define static */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
224
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
225 /* DG/UX SPECIFIC ADDITIONS TO TEMPLATE FOLLOW: */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
226
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
227 /* Use the Berkeley flavors of the library routines, instead of System V. */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
228
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
229 #define setpgrp(pid,pgrp) setpgrp2(pid,pgrp)
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
230 #define getpgrp(pid) getpgrp2(pid)
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
231
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
232 /* Act like Berkeley. */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
233
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
234 #define _setjmp(env) sigsetjmp(env,0)
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
235 #define _longjmp(env,val) longjmp(env,val)
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
236
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
237 /* Use TERMINFO instead of termcap */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
238
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
239 #define TERMINFO
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
240
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
241 /*
5258
8415001e90e2 (SYSTEM_TYPE): Make it dgux.
Richard M. Stallman <rms@gnu.org>
parents: 5094
diff changeset
242 * Send signals to subprocesses using characters.
8415001e90e2 (SYSTEM_TYPE): Make it dgux.
Richard M. Stallman <rms@gnu.org>
parents: 5094
diff changeset
243 *
8415001e90e2 (SYSTEM_TYPE): Make it dgux.
Richard M. Stallman <rms@gnu.org>
parents: 5094
diff changeset
244 */
8415001e90e2 (SYSTEM_TYPE): Make it dgux.
Richard M. Stallman <rms@gnu.org>
parents: 5094
diff changeset
245
8415001e90e2 (SYSTEM_TYPE): Make it dgux.
Richard M. Stallman <rms@gnu.org>
parents: 5094
diff changeset
246 #define SIGNALS_VIA_CHARACTERS
8415001e90e2 (SYSTEM_TYPE): Make it dgux.
Richard M. Stallman <rms@gnu.org>
parents: 5094
diff changeset
247
8415001e90e2 (SYSTEM_TYPE): Make it dgux.
Richard M. Stallman <rms@gnu.org>
parents: 5094
diff changeset
248 /*
3600
c0b91ff8928a * s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
249 * Define HAVE_TERMIOS since this is POSIX,
5008
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
250 * for terminal control. Prevent redundant inclusion of termio.h.
457
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
251 */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
252
3600
c0b91ff8928a * s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
253 #define HAVE_TERMIOS
5008
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
254 #define NO_TERMIO
457
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
255
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
256 /*
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
257 * Use a Berkeley style sys/wait.h.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
258 * This makes WIF* macros operate on structures instead of ints.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
259 */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
260
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
261 #define _BSD_WAIT_FLAVOR
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
262
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
263 /*
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
264 * Use BSD and POSIX-style signals. This is crucial!
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
265 */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
266
4995
51d0545729fa (SYSTEM_MALLOC): Turn off.
Richard M. Stallman <rms@gnu.org>
parents: 4485
diff changeset
267 /* pmr now says the GNU malloc works. */
3584
06708f4682d0 * s/dgux.h: Move #definition of SYSTEM_MALLOC outside of
Jim Blandy <jimb@redhat.com>
parents: 3544
diff changeset
268 /* pmr@rock.concert.net says Emacs fails without this. We don't know why. */
4995
51d0545729fa (SYSTEM_MALLOC): Turn off.
Richard M. Stallman <rms@gnu.org>
parents: 4485
diff changeset
269 /* #define SYSTEM_MALLOC */
3584
06708f4682d0 * s/dgux.h: Move #definition of SYSTEM_MALLOC outside of
Jim Blandy <jimb@redhat.com>
parents: 3544
diff changeset
270
457
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
271 /* MAKING_MAKEFILE must be defined in "ymakefile" before including config.h */
3600
c0b91ff8928a * s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
272 #ifndef THIS_IS_YMAKEFILE
457
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
273
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
274 /* Make sure signal.h is included so macros below don't mess with it. */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
275 /* DG/UX include files prevent multiple inclusion. */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
276
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
277 #include <signal.h>
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
278
3600
c0b91ff8928a * s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
279 /* but undefine the sigmask and sigpause macros since they will get
c0b91ff8928a * s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
280 #define'd later. */
c0b91ff8928a * s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
281 #undef sigmask
c0b91ff8928a * s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
282 #undef sigpause
c0b91ff8928a * s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
283
457
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
284 #define POSIX_SIGNALS
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
285
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
286 /* Define this if you use System 5 Release 4 Streams */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
287 #define open sys_open
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
288 #define close sys_close
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
289 #define read sys_read
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
290 #define write sys_write
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
291
3544
a1ccd96244f3 (INTERRUPTIBLE_*): Fix spelling of macros.
Richard M. Stallman <rms@gnu.org>
parents: 3318
diff changeset
292 #define INTERRUPTIBLE_OPEN
a1ccd96244f3 (INTERRUPTIBLE_*): Fix spelling of macros.
Richard M. Stallman <rms@gnu.org>
parents: 3318
diff changeset
293 #define INTERRUPTIBLE_CLOSE
457
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
294 /* can't hurt to define these, even though read/write should auto restart */
3544
a1ccd96244f3 (INTERRUPTIBLE_*): Fix spelling of macros.
Richard M. Stallman <rms@gnu.org>
parents: 3318
diff changeset
295 #define INTERRUPTIBLE_IO
457
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
296
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
297 /* Can't use sys_signal because then etc/server.c would need sysdep.o. */
3600
c0b91ff8928a * s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
298 extern struct sigaction act, oact;
457
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
299 #define signal(SIG,FUNC) berk_signal(SIG,FUNC)
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
300
3600
c0b91ff8928a * s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
301 #else /* THIS_IS_YMAKEFILE */
457
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
302 /* force gcc to be used */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
303 CC=gcc
3600
c0b91ff8928a * s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
304 #endif /* not THIS_IS_YMAKEFILE */
c0b91ff8928a * s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
305
c0b91ff8928a * s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
306 #define LD_SWITCH_SYSTEM
c0b91ff8928a * s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
307 #define START_FILES pre-crt0.o
5008
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
308 #define LIBS_SYSTEM -ldgc
3600
c0b91ff8928a * s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
309 #define LIB_GCC /usr/lib/gcc/libgcc.a
3005
8a5b38421850 (NO_GET_LOAD_AVG): Define, if __GNUC__.
Richard M. Stallman <rms@gnu.org>
parents: 2318
diff changeset
310
3046
965eb3b38ba2 (NO_GET_LOAD_AVG): Test _M88KBCS_TARGET, not __GNUC__.
Richard M. Stallman <rms@gnu.org>
parents: 3005
diff changeset
311 #ifdef _M88KBCS_TARGET
3005
8a5b38421850 (NO_GET_LOAD_AVG): Define, if __GNUC__.
Richard M. Stallman <rms@gnu.org>
parents: 2318
diff changeset
312 /* Karl Berry says: the environment
8a5b38421850 (NO_GET_LOAD_AVG): Define, if __GNUC__.
Richard M. Stallman <rms@gnu.org>
parents: 2318
diff changeset
313 recommended by gcc (88/open, a.k.a. m88kbcs) doesn't support some system
8a5b38421850 (NO_GET_LOAD_AVG): Define, if __GNUC__.
Richard M. Stallman <rms@gnu.org>
parents: 2318
diff changeset
314 functions, and gcc doesn't make it easy to switch environments. */
8a5b38421850 (NO_GET_LOAD_AVG): Define, if __GNUC__.
Richard M. Stallman <rms@gnu.org>
parents: 2318
diff changeset
315 #define NO_GET_LOAD_AVG
8a5b38421850 (NO_GET_LOAD_AVG): Define, if __GNUC__.
Richard M. Stallman <rms@gnu.org>
parents: 2318
diff changeset
316 #endif
2010
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
317
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
318 /* definitions for xmakefile production */
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
319 #ifdef COFF
5008
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
320
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
321 /* Define the following to use all of the available pty's. */
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
322
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
323 #define PTY_ITERATION \
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
324 for (c = 'p'; c < 't'; c++) \
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
325 for (i = 0; (((c == 'p') && (i < 64)) || ((c != 'p') && (i < 16))); i++)
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
326
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
327 #define PTY_NAME_SPRINTF \
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
328 if (c == 'p') \
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
329 sprintf (pty_name, "/dev/pty%c%d", c, i); \
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
330 else \
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
331 sprintf (pty_name, "/dev/pty%c%x", c, i);
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
332
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
333 #define PTY_TTY_NAME_SPRINTF \
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
334 if (c == 'p') \
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
335 sprintf (pty_name, "/dev/tty%c%d", c, i); \
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
336 else \
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
337 sprintf (pty_name, "/dev/tty%c%x", c, i);
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
338
2010
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
339 #define C_COMPILER \
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
340 TARGET_BINARY_INTERFACE=m88kdguxcoff gcc -traditional
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
341
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
342 #define LINKER \
5008
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
343 TARGET_BINARY_INTERFACE=m88kdguxcoff gcc
2010
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
344
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
345 #define MAKE_COMMAND \
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
346 TARGET_BINARY_INTERFACE=m88kdguxcoff make
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
347
5008
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
348 #define C_DEBUG_SWITCH -g
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
349
2010
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
350 #else /* not COFF */
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
351
5094
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
352 /* Pseudo-terminal support under SVR4 only loops to deal with errors. */
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
353
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
354 #define PTY_ITERATION for (i = 0; i < 1; i++)
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
355
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
356 /* This sets the name of the master side of the PTY. */
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
357
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
358 #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptmx");
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
359
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
360 /* This sets the name of the slave side of the PTY. On SysVr4,
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
361 grantpt(3) forks a subprocess, so keep sigchld_handler() from
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
362 intercepting that death. If any child but grantpt's should die
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
363 within, it should be caught after sigrelse(2). */
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
364
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
365 #define PTY_TTY_NAME_SPRINTF \
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
366 { \
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
367 char *ptsname(), *ptyname; \
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
368 \
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
369 sigblock(sigmask(SIGCLD)); \
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
370 if (grantpt(fd) == -1) \
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
371 fatal("could not grant slave pty"); \
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
372 sigunblock(sigmask(SIGCLD)); \
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
373 if (unlockpt(fd) == -1) \
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
374 fatal("could not unlock slave pty"); \
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
375 if (!(ptyname = ptsname(fd))) \
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
376 fatal ("could not enable slave pty"); \
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
377 strncpy(pty_name, ptyname, sizeof(pty_name)); \
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
378 pty_name[sizeof(pty_name) - 1] = 0; \
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
379 }
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
380
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
381 /* Push various streams modules onto a PTY channel. */
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
382
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
383 #define SETUP_SLAVE_PTY \
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
384 if (ioctl (xforkin, I_PUSH, "ptem") == -1) \
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
385 fatal ("ioctl I_PUSH ptem", errno); \
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
386 if (ioctl (xforkin, I_PUSH, "ldterm") == -1) \
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
387 fatal ("ioctl I_PUSH ldterm", errno); \
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
388 if (ioctl (xforkin, I_PUSH, "ttcompat") == -1) \
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
389 fatal ("ioctl I_PUSH ttcompat", errno);
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
390
8b59fb13665e (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Richard M. Stallman <rms@gnu.org>
parents: 5062
diff changeset
391
2010
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
392 #define C_COMPILER \
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
393 TARGET_BINARY_INTERFACE=m88kdguxelf gcc -traditional
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
394
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
395 #define LINKER \
5008
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
396 TARGET_BINARY_INTERFACE=m88kdguxelf gcc
2010
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
397
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
398 #define MAKE_COMMAND \
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
399 TARGET_BINARY_INTERFACE=m88kdguxelf make
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
400
3600
c0b91ff8928a * s/dgux.h: Changes from Paul M Reilly <pmr@rock.concert.net>:
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
401 #define C_DEBUG_SWITCH -g -V2 -mversion-03.00 -mstandard
2010
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
402 #endif /* COFF */
3601
d83673a740e8 * s/dgux.h (BROKEN_FASYNC): #define this.
Jim Blandy <jimb@redhat.com>
parents: 3600
diff changeset
403
5008
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
404 /* Extra stuff which probably should be someplace else but is here out
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
405 of expediency. */
4485
6e6fd9ff650f (HAVE_VFORK): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 3699
diff changeset
406
5008
0f979427b6ac (INTERRUPT_INPUT): Undefined.
Richard M. Stallman <rms@gnu.org>
parents: 4995
diff changeset
407 #define LIB_X11_LIB -lX11