diff options
Diffstat (limited to 'src/s/gnu-linux.h')
| -rw-r--r-- | src/s/gnu-linux.h | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index 2b9a80cf1a8..68b3e8d5a41 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* This file is the configuration file for Linux-based GNU systems | 1 | /* This file is the configuration file for Linux-based GNU systems |
| 2 | Copyright (C) 1985, 1986, 1992, 1994, 1996 Free Software Foundation, Inc. | 2 | Copyright (C) 1985, 86, 92, 94, 96, 1999 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -112,22 +112,6 @@ Boston, MA 02111-1307, USA. */ | |||
| 112 | your system and must be used only through an encapsulation | 112 | your system and must be used only through an encapsulation |
| 113 | (Which you should place, by convention, in sysdep.c). */ | 113 | (Which you should place, by convention, in sysdep.c). */ |
| 114 | 114 | ||
| 115 | /* On POSIX systems the system calls are interruptible by signals | ||
| 116 | that the user program has elected to catch. Thus the system call | ||
| 117 | must be retried in these cases. To handle this without massive | ||
| 118 | changes in the source code, we remap the standard system call names | ||
| 119 | to names for our own functions in sysdep.c that do the system call | ||
| 120 | with retries. */ | ||
| 121 | |||
| 122 | #define read sys_read | ||
| 123 | #define write sys_write | ||
| 124 | #define open sys_open | ||
| 125 | #define close sys_close | ||
| 126 | |||
| 127 | #define INTERRUPTIBLE_OPEN | ||
| 128 | #define INTERRUPTIBLE_CLOSE | ||
| 129 | #define INTERRUPTIBLE_IO | ||
| 130 | |||
| 131 | /* If you mount the proc file system somewhere other than /proc | 115 | /* If you mount the proc file system somewhere other than /proc |
| 132 | you will have to uncomment the following and make the proper | 116 | you will have to uncomment the following and make the proper |
| 133 | changes */ | 117 | changes */ |
| @@ -172,16 +156,15 @@ Boston, MA 02111-1307, USA. */ | |||
| 172 | 156 | ||
| 173 | /* As of version 1.1.51, Linux did not actually implement SIGIO. | 157 | /* As of version 1.1.51, Linux did not actually implement SIGIO. |
| 174 | But it works in newer versions. */ | 158 | But it works in newer versions. */ |
| 175 | /* Here we assume that signal.h is already included. */ | ||
| 176 | #ifdef emacs | 159 | #ifdef emacs |
| 177 | #ifdef LINUX_SIGIO_DOES_WORK | 160 | #ifdef LINUX_SIGIO_DOES_WORK |
| 178 | #define INTERRUPT_INPUT | 161 | #define INTERRUPT_INPUT |
| 179 | #else | 162 | #else |
| 180 | #undef SIGIO | 163 | #define BROKEN_SIGIO |
| 181 | /* Some versions of Linux define SIGURG and SIGPOLL as aliases for SIGIO. | 164 | /* Some versions of Linux define SIGURG and SIGPOLL as aliases for SIGIO. |
| 182 | This prevents lossage in process.c. */ | 165 | This prevents lossage in process.c. */ |
| 183 | #undef SIGURG | 166 | #define BROKEN_SIGURG |
| 184 | #undef SIGPOLL | 167 | #define BROKEN_SIGPOLL |
| 185 | #endif | 168 | #endif |
| 186 | #endif | 169 | #endif |
| 187 | 170 | ||