aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/s/gnu-linux.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h
index dc1becd5e69..ddedcc3cb0b 100644
--- a/src/s/gnu-linux.h
+++ b/src/s/gnu-linux.h
@@ -28,7 +28,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
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.
@@ -131,6 +131,21 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
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
@@ -152,6 +167,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
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
@@ -167,7 +185,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
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 */
@@ -189,5 +206,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
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