Mercurial > emacs
annotate src/s/rtu.h @ 14472:8979515dac09 libc-960203 libc-960204 libc-960205 libc-960206 libc-960207 libc-960208 libc-960209 libc-960210
Add cygwin32; Put eabi .sdata2/.sbss2 into read-only memory
author | Michael Meissner <gnu@the-meissners.org> |
---|---|
date | Sat, 03 Feb 1996 01:03:27 +0000 |
parents | ee40177f6c68 |
children | 02044b05d8e0 |
rev | line source |
---|---|
456 | 1 /* Definitions file for GNU Emacs running on RTU 3.0, ucb universe. |
2 Copyright (C) 1986 Free Software Foundation, Inc. | |
3 | |
4 This file is part of GNU Emacs. | |
5 | |
6 GNU Emacs is free software; you can redistribute it and/or modify | |
7 it under the terms of the GNU General Public License as published by | |
3699 | 8 the Free Software Foundation; either version 2, or (at your option) |
456 | 9 any later version. |
10 | |
11 GNU Emacs is distributed in the hope that it will be useful, | |
12 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 GNU General Public License for more details. | |
15 | |
16 You should have received a copy of the GNU General Public License | |
17 along with GNU Emacs; see the file COPYING. If not, write to | |
14186
ee40177f6c68
Update FSF's address in the preamble.
Erik Naggum <erik@naggum.no>
parents:
8892
diff
changeset
|
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
ee40177f6c68
Update FSF's address in the preamble.
Erik Naggum <erik@naggum.no>
parents:
8892
diff
changeset
|
19 Boston, MA 02111-1307, USA. */ |
456 | 20 |
21 | |
22 /* | |
23 * Define symbols to identify the version of Unix this is. | |
24 * Define all the symbols that apply correctly. | |
25 */ | |
26 | |
27 #define BSD4_2 | |
28 #define BSD | |
29 #define RTU | |
30 | |
31 /* SYSTEM_TYPE should indicate the kind of system you are using. | |
32 It sets the Lisp variable system-type. */ | |
33 | |
34 #define SYSTEM_TYPE "rtu" | |
35 | |
36 /* NOMULTIPLEJOBS should be defined if your system's shell | |
37 does not have "job control" (the ability to stop a program, | |
38 run some other program, then continue the first one). */ | |
39 | |
40 #define NOMULTIPLEJOBS | |
41 | |
42 /* Emacs can read input using SIGIO and buffering characters itself, | |
43 or using CBREAK mode and making C-g cause SIGINT. | |
44 The choice is controlled by the variable interrupt_input. | |
45 Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO) | |
46 | |
47 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:
620
diff
changeset
|
48 CBREAK mode has two disadvantages |
456 | 49 1) At least in 4.2, it is impossible to handle the Meta key properly. |
50 I hear that in system V this problem does not exist. | |
51 2) Control-G causes output to be discarded. | |
52 I do not know whether this can be fixed in system V. | |
53 | |
54 Another method of doing input is planned but not implemented. | |
55 It would have Emacs fork off a separate process | |
56 to read the input and send it to the true Emacs process | |
57 through a pipe. | |
58 */ | |
59 | |
60 #undef INTERRUPT_INPUT | |
61 | |
62 /* Letter to use in finding device name of first pty, | |
63 if system supports pty's. 'a' means it is /dev/ptya0 */ | |
64 | |
65 #define FIRST_PTY_LETTER 'z' /* i.e. no PTY_LETTERs */ | |
66 | |
67 /* | |
68 * Define HAVE_PTYS if the system supports pty devices. | |
69 */ | |
70 | |
71 #define HAVE_PTYS | |
72 | |
73 /* Define this macro if system defines a type `union wait'. */ | |
74 | |
75 #define HAVE_UNION_WAIT | |
76 | |
77 /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */ | |
78 | |
79 #define HAVE_SOCKETS | |
80 | |
81 /* | |
82 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate | |
83 * The 4.2 opendir, etc., library functions. | |
84 */ | |
85 | |
86 #define NONSYSTEM_DIR_LIBRARY | |
87 | |
88 /* Define this symbol if your system has the functions bcopy, etc. */ | |
89 /* The system library bcopy() is broken in RTU. For one thing, it expects | |
90 the length to be less than 64k. */ | |
91 #undef BSTRING | |
92 | |
93 /* subprocesses should be defined if you want to | |
94 have code for asynchronous subprocesses | |
95 (as used in M-x compile and M-x shell). | |
96 This is generally OS dependent, and not supported | |
97 under most USG systems. */ | |
98 | |
99 #define subprocesses | |
100 | |
101 /* If your system uses COFF (Common Object File Format) then define the | |
102 preprocessor symbol "COFF". */ | |
103 | |
104 #undef COFF | |
105 | |
106 /* define MAIL_USE_FLOCK if the mailer uses flock | |
107 to interlock access to /usr/spool/mail/$USER. | |
108 The alternative is that a lock file named | |
109 /usr/spool/mail/$USER.lock. */ | |
110 | |
111 #undef MAIL_USE_FLOCK | |
112 | |
113 /* Define CLASH_DETECTION if you want lock files to be written | |
114 so that Emacs can tell instantly when you try to modify | |
115 a file that someone else has modified in his Emacs. */ | |
116 | |
117 #undef CLASH_DETECTION | |
118 | |
119 /* We use the Berkeley (and usg5.2.2) interface to nlist. */ | |
120 | |
121 #define NLIST_STRUCT | |
122 | |
123 /* The symbol in the kernel where the load average is found | |
124 is named _avenrun. */ | |
125 | |
126 #define LDAV_SYMBOL "_avenrun" | |
127 | |
128 /* Special hacks needed to make Emacs run on this system. */ | |
129 | |
3591
507f64624555
Apply typo patches from Paul Eggert.
Jim Blandy <jimb@redhat.com>
parents:
620
diff
changeset
|
130 /* On RTU systems (like USG) the system calls are interruptible by signals |
456 | 131 that the user program has elected to catch. Thus the system call |
132 must be retried in these cases. To handle this without massive | |
133 changes in the source code, we remap the standard system call names | |
134 to names for our own functions in sysdep.c that do the system call | |
135 with retries. */ | |
136 | |
137 #define read sys_read | |
138 #define open sys_open | |
139 #define write sys_write | |
140 | |
141 #define INTERRUPTIBLE_OPEN | |
142 #define INTERRUPTIBLE_IO | |
143 | |
144 /* The "fsync" call on RTU versions 3.0 and 3.1 is badly broken! | |
145 This hack below isn't the best solution, but without it this | |
146 program will cause the whole system to hang! !@#$#%$ Masscomp! */ | |
147 | |
148 #define fsync(x) 0 /* "Comment out" fsync calls */ | |
149 | |
150 /* RTU has IPC instead of Unix-domain sockets. */ | |
151 | |
152 #define HAVE_SYSVIPC | |
153 | |
154 /* This is how to get the device name of the tty end of a pty. */ | |
155 #define PTY_TTY_NAME_SPRINTF \ | |
620 | 156 sprintf (pty_name, "/dev/ttyp%x", i); |
456 | 157 |
158 /* This is how to get the device name of the control end of a pty. */ | |
159 #define PTY_NAME_SPRINTF \ | |
620 | 160 sprintf (pty_name, "/dev/pty%x", i); |
4485 | 161 |
162 /* (Assume) we do have vfork. */ | |
163 | |
164 #define HAVE_VFORK | |
5966 | 165 |
166 /* Process groups work in the traditional BSD manner. */ | |
167 | |
168 #define BSD_PGRPS |