annotate src/s/dgux.h @ 2280:bd56d208ed22

* fileio.c (HAVE_FSYNC): Define, if appropriate. (Fwrite_region): Use HAVE_FSYNC. * s-aix3-2.h (HAVE_FSYNC): Define.
author Jim Blandy <jimb@redhat.com>
date Sat, 20 Mar 1993 19:45:17 +0000
parents 50b1987ff38a
children 560f7fcb759c
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
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
9 the Free Software Foundation; either version 1, or (at your option)
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
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
35 #define BSD
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
36 /* #define VMS */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
37
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
38 /* SYSTEM_TYPE should indicate the kind of system you are using.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
39 It sets the Lisp variable system-type. */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
40
1549
a83000ceb5df (SYSTEM_TYPE): Use berkeley-unix.
Richard M. Stallman <rms@gnu.org>
parents: 457
diff changeset
41 #define SYSTEM_TYPE "berkeley-unix"
457
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
42
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
43 /* NOMULTIPLEJOBS should be defined if your system's shell
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
44 does not have "job control" (the ability to stop a program,
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
45 run some other program, then continue the first one). */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
46
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
47 /* #define NOMULTIPLEJOBS */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
48
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
49 /* Emacs can read input using SIGIO and buffering characters itself,
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
50 or using CBREAK mode and making C-g cause SIGINT.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
51 The choice is controlled by the variable interrupt_input.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
52 Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO)
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
53
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
54 SIGIO can be used only on systems that implement it (4.2 and 4.3).
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
55 CBREAK mode has two disadvatages
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
56 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
57 I hear that in system V this problem does not exist.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
58 2) Control-G causes output to be discarded.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
59 I do not know whether this can be fixed in system V.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
60
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
61 Another method of doing input is planned but not implemented.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
62 It would have Emacs fork off a separate process
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
63 to read the input and send it to the true Emacs process
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
64 through a pipe.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
65 */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
66
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
67 #define INTERRUPT_INPUT
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
68
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
69 /* Letter to use in finding device name of first pty,
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
70 if system supports pty's. 'a' means it is /dev/ptya0 */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
71
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
72 #define FIRST_PTY_LETTER 'r'
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
73
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 * Define HAVE_TIMEVAL if the system supports the BSD style clock values.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
76 * Look in <sys/time.h> for a timeval structure.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
77 */
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 #define HAVE_TIMEVAL
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
80
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
81 /*
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
82 * Define HAVE_SELECT if the system supports the `select' system call.
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
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
85 #define HAVE_SELECT
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 /*
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
88 * Define HAVE_SOCKETS if the system supports sockets.
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
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
91 #define HAVE_SOCKETS
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
92
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
93 /*
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
94 * Define HAVE_PTYS if the system supports pty devices.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
95 */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
96
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
97 #define HAVE_PTYS
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
98
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
99 /*
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
100 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
101 * The 4.2 opendir, etc., library functions.
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
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
104 /* #define NONSYSTEM_DIR_LIBRARY */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
105
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
106 /* Define this symbol if your system has the functions bcopy, etc. */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
107
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
108 #define BSTRING
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
109
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
110 /* subprocesses should be defined if you want to
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
111 have code for asynchronous subprocesses
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
112 (as used in M-x compile and M-x shell).
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
113 This is generally OS dependent, and not supported
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
114 under most USG systems. */
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 subprocesses
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
117
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
118 /* 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
119 preprocessor symbol "COFF".
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
120
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
121 DGUX can use either COFF or ELF. To use ELF format, define ELF. */
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
122
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
123 #ifndef ELF
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
124 #define COFF
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
125 #endif
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
126
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
127 #ifndef COFF /* People will probably find this apparently unreliable
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
128 till the NFS dumping bug is fixed. */
457
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
129
2010
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
130 /* 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
131 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
132 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
133 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
134
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
135 #define UNEXEC unexelf.o
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
136
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
137 /* 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
138 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
139 libraries, additional information is stored in other sections.
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
140 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
141 shared libraries. In fact, it makes no difference. */
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
142
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
143 /* Necessary for shared libraries and Mxdb debugging information. */
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
144 #define USG_SHARED_LIBRARIES
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
145 #endif
457
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
146
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
147 /* define MAIL_USE_FLOCK if the mailer uses flock
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
148 to interlock access to /usr/spool/mail/$USER.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
149 The alternative is that a lock file named
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
150 /usr/spool/mail/$USER.lock. */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
151
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
152 /* #define MAIL_USE_FLOCK */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
153
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
154 /* Define CLASH_DETECTION if you want lock files to be written
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
155 so that Emacs can tell instantly when you try to modify
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
156 a file that someone else has modified in his Emacs. */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
157
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
158 /* #define CLASH_DETECTION */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
159
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
160 /* 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
161 from BSD. */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
162
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
163 #define BAUD_CONVERT { 0, 110, 134, 150, 300, 600, 1200, 1800, 2400, \
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
164 4800, 9600, 19200, 38400 }
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
165
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
166 /*
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
167 * Define HAVE_GETTIMEOFDAY if gettimeofday() system call is available.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
168 */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
169
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
170 #define HAVE_GETTIMEOFDAY
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
171
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
172 /*
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
173 * Define NLIST_STRUCT if the system has nlist.h
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
174 */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
175
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
176 #define NLIST_STRUCT
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
177
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
178 /*
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
179 * Make WM Interface Compliant.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
180 */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
181
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
182 #define XICCC
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
183
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
184 /* Here, on a separate page, add any special hacks needed
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
185 to make Emacs work on this system. For example,
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
186 you might define certain system call names that don't
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
187 exist on your system, or that do different things on
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
188 your system and must be used only through an encapsulation
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
189 (Which you should place, by convention, in sysdep.c). */
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 /* Some compilers tend to put everything declared static
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
192 into the initialized data area, which becomes pure after dumping Emacs.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
193 On these systems, you must #define static as nothing to foil this.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
194 Note that emacs carefully avoids static vars inside functions. */
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 static */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
197
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
198 /* DG/UX SPECIFIC ADDITIONS TO TEMPLATE FOLLOW: */
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 /* Use the Berkeley flavors of the library routines, instead of System V. */
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 #define setpgrp(pid,pgrp) setpgrp2(pid,pgrp)
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
203 #define getpgrp(pid) getpgrp2(pid)
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 /* Act like Berkeley. */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
206
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
207 #define _setjmp(env) sigsetjmp(env,0)
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
208 #define _longjmp(env,val) longjmp(env,val)
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
209
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
210 /* Use TERMINFO instead of termcap */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
211
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
212 #define TERMINFO
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
213
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
214 /*
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
215 * Define HAVE_TERMIO if the system provides sysV-style ioctls
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
216 * for terminal control.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
217 * DG/UX has both BSD and AT&T style ioctl's. Bsd ioctl's don't
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
218 * seem to wait for the output to drain properly, so use System V.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
219 */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
220
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
221 /* #define HAVE_TERMIO */
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 /*
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
224 * DG/UX 4.10 needs the following to turn on berkeley ioctl's.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
225 */
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 #ifndef HAVE_TERMIO
2010
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
228 #ifndef _BSD_TTY_FLAVOR /* Already defined, in dgux 4.30. */
457
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
229 #define _BSD_TTY_FLAVOR
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
230 #endif
2010
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
231 #endif
457
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
232
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 * Use a Berkeley style sys/wait.h.
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
235 * This makes WIF* macros operate on structures instead of ints.
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
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
238 #define _BSD_WAIT_FLAVOR
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
239
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
240 /* Enable the x-rebind keysym function. Do not try to map function
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
241 keys internally. */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
242
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
243 #define XREBINDKEYSYM
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
244
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
245 /*
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
246 * Use BSD and POSIX-style signals. This is crucial!
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
247 */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
248
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
249 /* MAKING_MAKEFILE must be defined in "ymakefile" before including config.h */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
250 #ifndef MAKING_MAKEFILE
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 /* 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
253 /* DG/UX include files prevent multiple inclusion. */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
254
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
255 #include <signal.h>
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 #define POSIX_SIGNALS
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
258
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
259 /* Not worth converting the old GNU malloc to work with POSIX_SIGNALS. */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
260 #define SYSTEM_MALLOC
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
261
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
262 /* Define this if you use System 5 Release 4 Streams */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
263 #define SYSV4_PTYS
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
264 #define open sys_open
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
265 #define close sys_close
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
266 #define read sys_read
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
267 #define write sys_write
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
268
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
269 #define INTERRUPTABLE_OPEN
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
270 #define INTERRUPTABLE_CLOSE
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
271 /* can't hurt to define these, even though read/write should auto restart */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
272 #define INTERRUPTABLE_IO
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 /* Can't use sys_signal because then etc/server.c would need sysdep.o. */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
275 #define signal(SIG,FUNC) berk_signal(SIG,FUNC)
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 #else /* MAKING_MAKEFILE */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
278 /* force gcc to be used */
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
279 CC=gcc
e442bb589751 entered into RCS
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
280 #endif /* not MAKING_MAKEFILE */
2010
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
281
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
282 /* definitions for xmakefile production */
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
283 #ifdef COFF
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
284
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
285 #define C_COMPILER \
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
286 TARGET_BINARY_INTERFACE=m88kdguxcoff gcc -traditional
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
287
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
288 #define LINKER \
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
289 TARGET_BINARY_INTERFACE=m88kdguxcoff gcc -nostdlib
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
290
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
291 #define MAKE_COMMAND \
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
292 TARGET_BINARY_INTERFACE=m88kdguxcoff make
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
293
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
294 #else /* not COFF */
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
295
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
296 #define C_COMPILER \
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
297 TARGET_BINARY_INTERFACE=m88kdguxelf gcc -traditional
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
298
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
299 #define LINKER \
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
300 TARGET_BINARY_INTERFACE=m88kdguxelf gcc -nostdlib
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
301
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
302 #define MAKE_COMMAND \
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
303 TARGET_BINARY_INTERFACE=m88kdguxelf make
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
304
50b1987ff38a (ELF): Handle this parameter.
Richard M. Stallman <rms@gnu.org>
parents: 1549
diff changeset
305 #endif /* COFF */