Mercurial > emacs
comparison src/s/gnu-linux.h @ 3335:580d53a2e450
(HAVE_TCATTR): Deleted.
(BSD): Don't define.
(read, write, open, close): Defined.
(INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Defined.
(C_SWITCH_SYSTEM): Defined.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 31 May 1993 01:27:19 +0000 |
parents | 40cbb2abad94 |
children | 507f64624555 |
comparison
equal
deleted
inserted
replaced
3334:7900edb84c4f | 3335:580d53a2e450 |
---|---|
26 */ | 26 */ |
27 | 27 |
28 /* #define UNIPLUS */ | 28 /* #define UNIPLUS */ |
29 /* #define USG5 */ | 29 /* #define USG5 */ |
30 #define USG | 30 #define USG |
31 #define BSD | 31 /* #define BSD */ |
32 #define LINUX | 32 #define LINUX |
33 | 33 |
34 /* SYSTEM_TYPE should indicate the kind of system you are using. | 34 /* SYSTEM_TYPE should indicate the kind of system you are using. |
35 It sets the Lisp variable system-type. */ | 35 It sets the Lisp variable system-type. */ |
36 | 36 |
129 you might define certain system call names that don't | 129 you might define certain system call names that don't |
130 exist on your system, or that do different things on | 130 exist on your system, or that do different things on |
131 your system and must be used only through an encapsulation | 131 your system and must be used only through an encapsulation |
132 (Which you should place, by convention, in sysdep.c). */ | 132 (Which you should place, by convention, in sysdep.c). */ |
133 | 133 |
134 /* On POSIX systems the system calls are interruptible by signals | |
135 that the user program has elected to catch. Thus the system call | |
136 must be retried in these cases. To handle this without massive | |
137 changes in the source code, we remap the standard system call names | |
138 to names for our own functions in sysdep.c that do the system call | |
139 with retries. */ | |
140 | |
141 #define read sys_read | |
142 #define write sys_write | |
143 #define open sys_open | |
144 #define close sys_close | |
145 | |
146 #define INTERRUPTIBLE_OPEN | |
147 #define INTERRUPTIBLE_CLOSE | |
148 #define INTERRUPTIBLE_IO | |
134 | 149 |
135 /* If you mount the proc file system somewhere other than /proc | 150 /* If you mount the proc file system somewhere other than /proc |
136 you will have to uncomment the following and make the proper | 151 you will have to uncomment the following and make the proper |
137 changes */ | 152 changes */ |
138 | 153 |
150 * INTERRUPT_INPUT define gets fully implemented. | 165 * INTERRUPT_INPUT define gets fully implemented. |
151 */ | 166 */ |
152 #ifdef emacs | 167 #ifdef emacs |
153 #include <signal.h> | 168 #include <signal.h> |
154 #undef SIGIO | 169 #undef SIGIO |
170 #undef signal | |
171 #define signal sys_signal | |
172 #include <values.h> | |
155 #endif | 173 #endif |
156 | 174 |
157 #define HAVE_SETSID | 175 #define HAVE_SETSID |
158 | 176 |
159 /* This is needed for sysdep.c */ | 177 /* This is needed for sysdep.c */ |
165 #define HAVE_CLOSEDIR | 183 #define HAVE_CLOSEDIR |
166 #define HAVE_GETPAGESIZE | 184 #define HAVE_GETPAGESIZE |
167 #define HAVE_VFORK | 185 #define HAVE_VFORK |
168 #define HAVE_SYS_SIGLIST | 186 #define HAVE_SYS_SIGLIST |
169 #define HAVE_GETWD /* cure conflict with getcwd? */ | 187 #define HAVE_GETWD /* cure conflict with getcwd? */ |
170 #define HAVE_TCATTR /* faith@cs.unc.edu says this is needed. */ | |
171 | 188 |
172 #define USE_UTIME /* don't have utimes */ | 189 #define USE_UTIME /* don't have utimes */ |
173 #define SYSV_SYSTEM_DIR /* use dirent.h */ | 190 #define SYSV_SYSTEM_DIR /* use dirent.h */ |
174 #define USG_SYS_TIME /* use sys/time.h, not time.h */ | 191 #define USG_SYS_TIME /* use sys/time.h, not time.h */ |
175 | 192 |
187 #define C_OPTIMIZE_SWITCH /* configure can guess this just fine */ | 204 #define C_OPTIMIZE_SWITCH /* configure can guess this just fine */ |
188 #ifdef HAVE_X11 | 205 #ifdef HAVE_X11 |
189 #define LD_SWITCH_SYSTEM -L/usr/X386/lib | 206 #define LD_SWITCH_SYSTEM -L/usr/X386/lib |
190 #endif | 207 #endif |
191 | 208 |
209 /* Work around a bug in glibc with _longjmp. */ | |
210 #define C_SWITCH_SYSTEM -D_BSD_SOURCE | |
211 | |
192 /* Let's try this out, just in case. */ | 212 /* Let's try this out, just in case. */ |
193 #define SIGNALS_VIA_CHARACTERS | 213 #define SIGNALS_VIA_CHARACTERS |