aboutsummaryrefslogtreecommitdiffstats
path: root/src/s
diff options
context:
space:
mode:
authorPaul Eggert1999-10-19 07:28:36 +0000
committerPaul Eggert1999-10-19 07:28:36 +0000
commitbb7b4368705653b7a2de353e4fd689f5cc8798f9 (patch)
treecf00a391f0b59b71eb5acd30d8c3ef0fff8d40c8 /src/s
parent332d98c75d54e8a9eead3a1c2fbeb171d94bb7dd (diff)
downloademacs-bb7b4368705653b7a2de353e4fd689f5cc8798f9.tar.gz
emacs-bb7b4368705653b7a2de353e4fd689f5cc8798f9.zip
s/usg5-4.h:
(NSIG): Remove. (NSIG_MINIMUM): New macro. s/gnu-linux.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/umips.h, s/usg5-4.h: (SIGIO): Do not undef. (BROKEN_SIGIO): New macro. * s/gnu-linux.h: (SIGPOLL, SIGURG): Do not undef. (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros. * s/ptx4.h: (SIGINFO): Do not undef. (BROKEN_SIGINFO): New macros. * s/ptx.h, s/template.h: Doc fix. * s/aix3-1.h, s/bsd4-1.h, s/dgux.h, s/gnu-linux.h, s/hiuxmpp.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/osf1.h, s/rtu.h, s/sunos4-1.h, s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h, s/usg5-3.h, s/xenix.h: (open, close, read, write, INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Remove. * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros.
Diffstat (limited to 'src/s')
-rw-r--r--src/s/aix3-1.h16
-rw-r--r--src/s/bsd4-1.h6
-rw-r--r--src/s/dgux.h13
-rw-r--r--src/s/gnu-linux.h25
-rw-r--r--src/s/hiuxmpp.h9
-rw-r--r--src/s/hpux.h23
-rw-r--r--src/s/iris3-5.h18
-rw-r--r--src/s/iris3-6.h18
-rw-r--r--src/s/irix3-3.h16
-rw-r--r--src/s/osf1.h9
-rw-r--r--src/s/ptx.h4
-rw-r--r--src/s/ptx4.h2
-rw-r--r--src/s/rtu.h16
-rw-r--r--src/s/sol2-3.h6
-rw-r--r--src/s/sol2-5.h9
-rw-r--r--src/s/sunos4-1.h11
-rw-r--r--src/s/template.h4
-rw-r--r--src/s/umips.h2
-rw-r--r--src/s/unipl5-0.h16
-rw-r--r--src/s/unipl5-2.h16
-rw-r--r--src/s/usg5-0.h16
-rw-r--r--src/s/usg5-2-2.h16
-rw-r--r--src/s/usg5-2.h16
-rw-r--r--src/s/usg5-3.h18
-rw-r--r--src/s/usg5-4.h15
-rw-r--r--src/s/xenix.h16
26 files changed, 47 insertions, 289 deletions
diff --git a/src/s/aix3-1.h b/src/s/aix3-1.h
index ab82ae0d3a0..f9c3cbeeba7 100644
--- a/src/s/aix3-1.h
+++ b/src/s/aix3-1.h
@@ -1,5 +1,5 @@
1/* Definitions file for GNU Emacs running on IBM AIX version 3.1 1/* Definitions file for GNU Emacs running on IBM AIX version 3.1
2 Copyright (C) 1985, 1986, 1990 Free Software Foundation, Inc. 2 Copyright (C) 1985, 1986, 1990, 1999 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -168,20 +168,6 @@ Boston, MA 02111-1307, USA. */
168#define _setjmp setjmp 168#define _setjmp setjmp
169#define _longjmp longjmp 169#define _longjmp longjmp
170 170
171/* On USG systems the system calls are interruptible by signals
172 that the user program has elected to catch. Thus the system call
173 must be retried in these cases. To handle this without massive
174 changes in the source code, we remap the standard system call names
175 to names for our own functions in sysdep.c that do the system call
176 with retries. */
177
178#define read sys_read
179#define open sys_open
180#define write sys_write
181
182#define INTERRUPTIBLE_OPEN
183#define INTERRUPTIBLE_IO
184
185/* On USG systems these have different names */ 171/* On USG systems these have different names */
186 172
187#define index strchr 173#define index strchr
diff --git a/src/s/bsd4-1.h b/src/s/bsd4-1.h
index 9bca58f08b5..b0b7246e909 100644
--- a/src/s/bsd4-1.h
+++ b/src/s/bsd4-1.h
@@ -1,5 +1,5 @@
1/* Definitions file for GNU Emacs running on bsd 4.1. 1/* Definitions file for GNU Emacs running on bsd 4.1.
2 Copyright (C) 1985, 1986 Free Software Foundation, Inc. 2 Copyright (C) 1985, 1986, 1999 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -122,10 +122,6 @@ Boston, MA 02111-1307, USA. */
122 122
123#define lstat stat 123#define lstat stat
124 124
125/* sys_open handles the necessary 4.2 features for open. */
126
127#define open sys_open
128
129/* Names of flags for open. */ 125/* Names of flags for open. */
130#define O_RDONLY 0 126#define O_RDONLY 0
131#define O_WRONLY 1 127#define O_WRONLY 1
diff --git a/src/s/dgux.h b/src/s/dgux.h
index 633777a0e26..5e958a59d61 100644
--- a/src/s/dgux.h
+++ b/src/s/dgux.h
@@ -1,6 +1,6 @@
1/* Definitions file for GNU Emacs running on Data General's DG/UX 1/* Definitions file for GNU Emacs running on Data General's DG/UX
2 version 4.32 upto and including 5.4.1. 2 version 4.32 upto and including 5.4.1.
3 Copyright (C) 1994 Free Software Foundation, Inc. 3 Copyright (C) 1994, 1999 Free Software Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
6 6
@@ -252,17 +252,6 @@ Boston, MA 02111-1307, USA. */
252 252
253#define POSIX_SIGNALS 253#define POSIX_SIGNALS
254 254
255/* Define this if you use System 5 Release 4 Streams */
256#define open sys_open
257#define close sys_close
258#define read sys_read
259#define write sys_write
260
261#define INTERRUPTIBLE_OPEN
262#define INTERRUPTIBLE_CLOSE
263/* can't hurt to define these, even though read/write should auto restart */
264#define INTERRUPTIBLE_IO
265
266#ifndef NO_DGUX_SIGNAL_REDEF 255#ifndef NO_DGUX_SIGNAL_REDEF
267/* Can't use sys_signal because then etc/server.c would need sysdep.o. */ 256/* Can't use sys_signal because then etc/server.c would need sysdep.o. */
268extern struct sigaction act, oact; 257extern struct sigaction act, oact;
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
4This file is part of GNU Emacs. 4This 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
diff --git a/src/s/hiuxmpp.h b/src/s/hiuxmpp.h
index 022eb40562b..2ad57403fb7 100644
--- a/src/s/hiuxmpp.h
+++ b/src/s/hiuxmpp.h
@@ -24,15 +24,6 @@
24 24
25#define GETPGRP_NO_ARG 25#define GETPGRP_NO_ARG
26 26
27#define read sys_read
28#define write sys_write
29#define open sys_open
30#define close sys_close
31
32#define INTERRUPTIBLE_OPEN
33#define INTERRUPTIBLE_CLOSE
34#define INTERRUPTIBLE_IO
35
36#define SYSV_SYSTEM_DIR 27#define SYSV_SYSTEM_DIR
37 28
38/* If your system uses COFF (Common Object File Format) then define the 29/* If your system uses COFF (Common Object File Format) then define the
diff --git a/src/s/hpux.h b/src/s/hpux.h
index 5b1f42d1501..69290ea802d 100644
--- a/src/s/hpux.h
+++ b/src/s/hpux.h
@@ -1,6 +1,6 @@
1/* Definitions file for GNU Emacs running on HPUX release 7.0. 1/* Definitions file for GNU Emacs running on HPUX release 7.0.
2 Based on AT&T System V.2. 2 Based on AT&T System V.2.
3 Copyright (C) 1985, 1986 Free Software Foundation, Inc. 3 Copyright (C) 1985, 1986, 1999 Free Software Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
6 6
@@ -155,20 +155,6 @@ Boston, MA 02111-1307, USA. */
155#define _longjmp longjmp 155#define _longjmp longjmp
156*/ 156*/
157 157
158/* On USG systems the system calls are interruptible by signals
159 that the user program has elected to catch. Thus the system call
160 must be retried in these cases. To handle this without massive
161 changes in the source code, we remap the standard system call names
162 to names for our own functions in sysdep.c that do the system call
163 with retries. */
164
165#define read sys_read
166#define open sys_open
167#define write sys_write
168
169#define INTERRUPTIBLE_OPEN
170#define INTERRUPTIBLE_IO
171
172/* Use the system provided termcap(3) library */ 158/* Use the system provided termcap(3) library */
173#define TERMINFO 159#define TERMINFO
174 160
@@ -178,12 +164,9 @@ Boston, MA 02111-1307, USA. */
178#define srandom srand48 164#define srandom srand48
179 165
180/* In hpux, the symbol SIGIO is defined, but the feature 166/* In hpux, the symbol SIGIO is defined, but the feature
181 doesn't work in the way Emacs needs it to. 167 doesn't work in the way Emacs needs it to. */
182
183 Here we assume that signal.h is included before config.h
184 so that we can override it here. */
185 168
186#undef SIGIO 169#define BROKEN_SIGIO
187 170
188/* USG systems tend to put everything declared static 171/* USG systems tend to put everything declared static
189 into the initialized data area, which becomes pure after dumping Emacs. 172 into the initialized data area, which becomes pure after dumping Emacs.
diff --git a/src/s/iris3-5.h b/src/s/iris3-5.h
index c3d576cfde2..7659289ad9b 100644
--- a/src/s/iris3-5.h
+++ b/src/s/iris3-5.h
@@ -1,5 +1,5 @@
1/* Definitions file for GNU Emacs running on Silicon Graphics 3.5 1/* Definitions file for GNU Emacs running on Silicon Graphics 3.5
2 Copyright (C) 1987 Free Software Foundation, Inc. 2 Copyright (C) 1987, 1999 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -127,7 +127,7 @@ Boston, MA 02111-1307, USA. */
127#define sigsetmask(mask) /* Null expansion */ 127#define sigsetmask(mask) /* Null expansion */
128 128
129/* The IRIS defines SIGIO in signal.h, but doesn't implement it. */ 129/* The IRIS defines SIGIO in signal.h, but doesn't implement it. */
130#undef SIGIO 130#define BROKEN_SIGIO
131 131
132#define LIBS_MACHINE -lbsd -ldbm -lPW 132#define LIBS_MACHINE -lbsd -ldbm -lPW
133#define C_SWITCH_MACHINE -I/usr/include/bsd 133#define C_SWITCH_MACHINE -I/usr/include/bsd
@@ -138,20 +138,6 @@ Boston, MA 02111-1307, USA. */
138#define _setjmp setjmp 138#define _setjmp setjmp
139#define _longjmp longjmp 139#define _longjmp longjmp
140 140
141/* On USG systems the system calls are interruptible by signals
142 that the user program has elected to catch. Thus the system call
143 must be retried in these cases. To handle this without massive
144 changes in the source code, we remap the standard system call names
145 to names for our own functions in sysdep.c that do the system call
146 with retries. */
147
148#define read sys_read
149#define open sys_open
150#define write sys_write
151
152#define INTERRUPTIBLE_OPEN
153#define INTERRUPTIBLE_IO
154
155/* On USG systems these have different names */ 141/* On USG systems these have different names */
156 142
157#define index strchr 143#define index strchr
diff --git a/src/s/iris3-6.h b/src/s/iris3-6.h
index 8b5d7495424..80a4ccc5e85 100644
--- a/src/s/iris3-6.h
+++ b/src/s/iris3-6.h
@@ -1,5 +1,5 @@
1/* Definitions file for GNU Emacs running on Silicon Graphics system 3.6. 1/* Definitions file for GNU Emacs running on Silicon Graphics system 3.6.
2 Copyright (C) 1987 Free Software Foundation, Inc. 2 Copyright (C) 1987, 1999 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -128,7 +128,7 @@ Boston, MA 02111-1307, USA. */
128#define sigblock(x) x 128#define sigblock(x) x
129 129
130/* The IRIS defines SIGIO in signal.h, but doesn't implement it. */ 130/* The IRIS defines SIGIO in signal.h, but doesn't implement it. */
131#undef SIGIO 131#define BROKEN_SIGIO
132 132
133#define LIBS_MACHINE -lbsd -ldbm -lPW 133#define LIBS_MACHINE -lbsd -ldbm -lPW
134#define C_SWITCH_MACHINE -I/usr/include/bsd 134#define C_SWITCH_MACHINE -I/usr/include/bsd
@@ -139,20 +139,6 @@ Boston, MA 02111-1307, USA. */
139#define _setjmp setjmp 139#define _setjmp setjmp
140#define _longjmp longjmp 140#define _longjmp longjmp
141 141
142/* On USG systems the system calls are interruptible by signals
143 that the user program has elected to catch. Thus the system call
144 must be retried in these cases. To handle this without massive
145 changes in the source code, we remap the standard system call names
146 to names for our own functions in sysdep.c that do the system call
147 with retries. */
148
149#define read sys_read
150#define open sys_open
151#define write sys_write
152
153#define INTERRUPTIBLE_OPEN
154#define INTERRUPTIBLE_IO
155
156/* On USG systems these have different names */ 142/* On USG systems these have different names */
157 143
158#define index strchr 144#define index strchr
diff --git a/src/s/irix3-3.h b/src/s/irix3-3.h
index e41b05d7069..45961cc1b2b 100644
--- a/src/s/irix3-3.h
+++ b/src/s/irix3-3.h
@@ -1,5 +1,5 @@
1/* Definitions file for GNU Emacs running on Silicon Graphics Irix system 3.3. 1/* Definitions file for GNU Emacs running on Silicon Graphics Irix system 3.3.
2 Copyright (C) 1987,1990 Free Software Foundation, Inc. 2 Copyright (C) 1987, 1990, 1999 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -125,20 +125,6 @@ Boston, MA 02111-1307, USA. */
125#define _setjmp setjmp 125#define _setjmp setjmp
126#define _longjmp longjmp 126#define _longjmp longjmp
127 127
128/* On USG systems the system calls are interruptible by signals
129 that the user program has elected to catch. Thus the system call
130 must be retried in these cases. To handle this without massive
131 changes in the source code, we remap the standard system call names
132 to names for our own functions in sysdep.c that do the system call
133 with retries. */
134
135#define read sys_read
136#define open sys_open
137#define write sys_write
138
139#define INTERRUPTIBLE_OPEN
140#define INTERRUPTIBLE_IO
141
142/* On USG systems these have different names */ 128/* On USG systems these have different names */
143 129
144#define index strchr 130#define index strchr
diff --git a/src/s/osf1.h b/src/s/osf1.h
index 133ec88dd85..d0e11fcf3ca 100644
--- a/src/s/osf1.h
+++ b/src/s/osf1.h
@@ -12,15 +12,6 @@
12 12
13#define GETPGRP_NO_ARG 13#define GETPGRP_NO_ARG
14 14
15#define read sys_read
16#define write sys_write
17#define open sys_open
18#define close sys_close
19
20#define INTERRUPTIBLE_OPEN
21#define INTERRUPTIBLE_CLOSE
22#define INTERRUPTIBLE_IO
23
24#define SYSV_SYSTEM_DIR 15#define SYSV_SYSTEM_DIR
25 16
26/* If your system uses COFF (Common Object File Format) then define the 17/* If your system uses COFF (Common Object File Format) then define the
diff --git a/src/s/ptx.h b/src/s/ptx.h
index d9d223d1cc5..6fff6de543c 100644
--- a/src/s/ptx.h
+++ b/src/s/ptx.h
@@ -1,5 +1,5 @@
1/* Definitions file for GNU Emacs running on Sequent DYNIX/ptx 1.x/2.x 1/* Definitions file for GNU Emacs running on Sequent DYNIX/ptx 1.x/2.x
2 Copyright (C) 1987, 1990 Free Software Foundation, Inc. 2 Copyright (C) 1987, 1990, 1999 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -84,7 +84,7 @@ Boston, MA 02111-1307, USA. */
84#include <sys/stropts.h> /* Support for pty's */ 84#include <sys/stropts.h> /* Support for pty's */
85#include <sys/conf.h> 85#include <sys/conf.h>
86 86
87/*#undef SIGIO*/ /* SIGIO is already undef'd elsewhere. PTX 87/*#define BROKEN_SIGIO*/ /* BROKEN_SIGIO is already defined. PTX
88 has SIGIO, but it's just an alias for 88 has SIGIO, but it's just an alias for
89 SIGPOLL. */ 89 SIGPOLL. */
90 90
diff --git a/src/s/ptx4.h b/src/s/ptx4.h
index 25cf6882986..32cbb26586d 100644
--- a/src/s/ptx4.h
+++ b/src/s/ptx4.h
@@ -8,7 +8,7 @@
8/* Marcus Daniels <marcus@sysc.pdx.edu> says that SIGINFO is defined 8/* Marcus Daniels <marcus@sysc.pdx.edu> says that SIGINFO is defined
9 on ptx4 but it is not a signal. Prevent process.c from doing the 9 on ptx4 but it is not a signal. Prevent process.c from doing the
10 wrong thing. */ 10 wrong thing. */
11#undef SIGINFO 11#define BROKEN_SIGINFO
12 12
13/* Marcus Daniels <marcus@sysc.pdx.edu> says vfork does exist. */ 13/* Marcus Daniels <marcus@sysc.pdx.edu> says vfork does exist. */
14#define HAVE_VFORK 14#define HAVE_VFORK
diff --git a/src/s/rtu.h b/src/s/rtu.h
index 45266f2716d..9b655db2f51 100644
--- a/src/s/rtu.h
+++ b/src/s/rtu.h
@@ -1,5 +1,5 @@
1/* Definitions file for GNU Emacs running on RTU 3.0, ucb universe. 1/* Definitions file for GNU Emacs running on RTU 3.0, ucb universe.
2 Copyright (C) 1986 Free Software Foundation, Inc. 2 Copyright (C) 1986, 1999 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -127,20 +127,6 @@ Boston, MA 02111-1307, USA. */
127 127
128/* Special hacks needed to make Emacs run on this system. */ 128/* Special hacks needed to make Emacs run on this system. */
129 129
130/* On RTU systems (like USG) the system calls are interruptible by signals
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! 130/* 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 131 This hack below isn't the best solution, but without it this
146 program will cause the whole system to hang! !@#$#%$ Masscomp! */ 132 program will cause the whole system to hang! !@#$#%$ Masscomp! */
diff --git a/src/s/sol2-3.h b/src/s/sol2-3.h
index 9d9018aa0be..a4fc6097905 100644
--- a/src/s/sol2-3.h
+++ b/src/s/sol2-3.h
@@ -39,12 +39,12 @@
39 \ 39 \
40 sigblock (sigmask (SIGCLD)); \ 40 sigblock (sigmask (SIGCLD)); \
41 if (grantpt (fd) == -1) \ 41 if (grantpt (fd) == -1) \
42 { close (fd); return -1; } \ 42 { emacs_close (fd); return -1; } \
43 sigunblock (sigmask (SIGCLD)); \ 43 sigunblock (sigmask (SIGCLD)); \
44 if (unlockpt (fd) == -1) \ 44 if (unlockpt (fd) == -1) \
45 { close (fd); return -1; } \ 45 { emacs_close (fd); return -1; } \
46 if (!(ptyname = ptsname (fd))) \ 46 if (!(ptyname = ptsname (fd))) \
47 { close (fd); return -1; } \ 47 { emacs_close (fd); return -1; } \
48 strncpy (pty_name, ptyname, sizeof (pty_name)); \ 48 strncpy (pty_name, ptyname, sizeof (pty_name)); \
49 pty_name[sizeof (pty_name) - 1] = 0; \ 49 pty_name[sizeof (pty_name) - 1] = 0; \
50 } 50 }
diff --git a/src/s/sol2-5.h b/src/s/sol2-5.h
index ffb3c2d5528..d80c22b37ba 100644
--- a/src/s/sol2-5.h
+++ b/src/s/sol2-5.h
@@ -1,5 +1,14 @@
1/* Handle Solaris 2.5. */ 1/* Handle Solaris 2.5. */
2 2
3/* Enable large-file support if available (Solaris 2.6 and later).
4 Do this before including any system include file. */
5#ifndef _LARGEFILE_SOURCE
6#define _LARGEFILE_SOURCE 1
7#endif
8#ifndef _FILE_OFFSET_BITS
9#define _FILE_OFFSET_BITS 64
10#endif
11
3#include "sol2-4.h" 12#include "sol2-4.h"
4 13
5/* -lgen is needed for the regex and regcmp functions 14/* -lgen is needed for the regex and regcmp functions
diff --git a/src/s/sunos4-1.h b/src/s/sunos4-1.h
index 7aa0946d381..9c6b9cede23 100644
--- a/src/s/sunos4-1.h
+++ b/src/s/sunos4-1.h
@@ -1,16 +1,5 @@
1#include "sunos4-0.h" 1#include "sunos4-0.h"
2 2
3/* 4.1.1 makes these system calls interruptible. */
4
5#define read sys_read
6#define write sys_write
7#define open sys_open
8#define close sys_close
9
10#define INTERRUPTIBLE_OPEN
11#define INTERRUPTIBLE_CLOSE
12#define INTERRUPTIBLE_IO
13
14/* Cause the compilation of oldxmenu to use the right -I option. */ 3/* Cause the compilation of oldxmenu to use the right -I option. */
15#define OLDXMENU_OPTIONS CFLAGS=C_SWITCH_SYSTEM 4#define OLDXMENU_OPTIONS CFLAGS=C_SWITCH_SYSTEM
16 5
diff --git a/src/s/template.h b/src/s/template.h
index 7f49ca3047e..070e5ed259f 100644
--- a/src/s/template.h
+++ b/src/s/template.h
@@ -54,8 +54,8 @@ Boston, MA 02111-1307, USA. */
54 54
55 Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO) 55 Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO)
56 56
57 Emacs uses the presence or absence of the SIGIO macro to indicate 57 Emacs uses the presence or absence of the SIGIO and BROKEN_SIGIO macros
58 whether or not signal-driven I/O is possible. It uses 58 to indicate whether or not signal-driven I/O is possible. It uses
59 INTERRUPT_INPUT to decide whether to use it by default. 59 INTERRUPT_INPUT to decide whether to use it by default.
60 60
61 SIGIO can be used only on systems that implement it (4.2 and 4.3). 61 SIGIO can be used only on systems that implement it (4.2 and 4.3).
diff --git a/src/s/umips.h b/src/s/umips.h
index 07a4cd6bbb0..17590c493cf 100644
--- a/src/s/umips.h
+++ b/src/s/umips.h
@@ -36,7 +36,7 @@
36#undef static 36#undef static
37 37
38/* Don't try to use SIGIO or FIONREAD even though they are defined. */ 38/* Don't try to use SIGIO or FIONREAD even though they are defined. */
39#undef SIGIO 39#define BROKEN_SIGIO
40#define BROKEN_FIONREAD 40#define BROKEN_FIONREAD
41 41
42/* Describe special kernel features. */ 42/* Describe special kernel features. */
diff --git a/src/s/unipl5-0.h b/src/s/unipl5-0.h
index 465c654f370..4c815d917e1 100644
--- a/src/s/unipl5-0.h
+++ b/src/s/unipl5-0.h
@@ -1,6 +1,6 @@
1/* Definitions file for GNU Emacs running on UniSoft's UniPlus 5.0 1/* Definitions file for GNU Emacs running on UniSoft's UniPlus 5.0
2 Support for this system is not finished; don't expect this to work. 2 Support for this system is not finished; don't expect this to work.
3 Copyright (C) 1985, 1986 Free Software Foundation, Inc. 3 Copyright (C) 1985, 1986, 1999 Free Software Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
6 6
@@ -148,20 +148,6 @@ Boston, MA 02111-1307, USA. */
148#define _setjmp setjmp 148#define _setjmp setjmp
149#define _longjmp longjmp 149#define _longjmp longjmp
150 150
151/* On USG systems the system calls are interruptible by signals
152 that the user program has elected to catch. Thus the system call
153 must be retried in these cases. To handle this without massive
154 changes in the source code, we remap the standard system call names
155 to names for our own functions in sysdep.c that do the system call
156 with retries. */
157
158#define read sys_read
159#define open sys_open
160#define write sys_write
161
162#define INTERRUPTIBLE_OPEN
163#define INTERRUPTIBLE_IO
164
165/* On USG systems these have different names */ 151/* On USG systems these have different names */
166 152
167#define index strchr 153#define index strchr
diff --git a/src/s/unipl5-2.h b/src/s/unipl5-2.h
index df505e48f16..85ab0973fe8 100644
--- a/src/s/unipl5-2.h
+++ b/src/s/unipl5-2.h
@@ -1,5 +1,5 @@
1/* Definitions file for GNU Emacs running on UniSoft's UniPlus 5.2 1/* Definitions file for GNU Emacs running on UniSoft's UniPlus 5.2
2 Copyright (C) 1985, 1986 Free Software Foundation, Inc. 2 Copyright (C) 1985, 1986, 1999 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -142,20 +142,6 @@ Boston, MA 02111-1307, USA. */
142#define _setjmp setjmp 142#define _setjmp setjmp
143#define _longjmp longjmp 143#define _longjmp longjmp
144 144
145/* On USG systems the system calls are interruptible by signals
146 that the user program has elected to catch. Thus the system call
147 must be retried in these cases. To handle this without massive
148 changes in the source code, we remap the standard system call names
149 to names for our own functions in sysdep.c that do the system call
150 with retries. */
151
152#define read sys_read
153#define open sys_open
154#define write sys_write
155
156#define INTERRUPTIBLE_OPEN
157#define INTERRUPTIBLE_IO
158
159/* On USG systems these have different names */ 145/* On USG systems these have different names */
160 146
161#define index strchr 147#define index strchr
diff --git a/src/s/usg5-0.h b/src/s/usg5-0.h
index cf31a3d1404..915211feb9c 100644
--- a/src/s/usg5-0.h
+++ b/src/s/usg5-0.h
@@ -1,5 +1,5 @@
1/* Definitions file for GNU Emacs running on AT&T's System V.0 1/* Definitions file for GNU Emacs running on AT&T's System V.0
2 Copyright (C) 1985, 1986 Free Software Foundation, Inc. 2 Copyright (C) 1985, 1986, 1999 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -137,20 +137,6 @@ Boston, MA 02111-1307, USA. */
137#define _setjmp setjmp 137#define _setjmp setjmp
138#define _longjmp longjmp 138#define _longjmp longjmp
139 139
140/* On USG systems the system calls are interruptible by signals
141 that the user program has elected to catch. Thus the system call
142 must be retried in these cases. To handle this without massive
143 changes in the source code, we remap the standard system call names
144 to names for our own functions in sysdep.c that do the system call
145 with retries. */
146
147#define read sys_read
148#define open sys_open
149#define write sys_write
150
151#define INTERRUPTIBLE_OPEN
152#define INTERRUPTIBLE_IO
153
154/* On USG systems these have different names */ 140/* On USG systems these have different names */
155 141
156#define index strchr 142#define index strchr
diff --git a/src/s/usg5-2-2.h b/src/s/usg5-2-2.h
index 98698f2fefb..14b7fa3d335 100644
--- a/src/s/usg5-2-2.h
+++ b/src/s/usg5-2-2.h
@@ -1,5 +1,5 @@
1/* Definitions file for GNU Emacs running on AT&T's System V Release 2.2 1/* Definitions file for GNU Emacs running on AT&T's System V Release 2.2
2 Copyright (C) 1985, 1986 Free Software Foundation, Inc. 2 Copyright (C) 1985, 1986, 1999 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -136,20 +136,6 @@ Boston, MA 02111-1307, USA. */
136#define _setjmp setjmp 136#define _setjmp setjmp
137#define _longjmp longjmp 137#define _longjmp longjmp
138 138
139/* On USG systems the system calls are interruptible by signals
140 that the user program has elected to catch. Thus the system call
141 must be retried in these cases. To handle this without massive
142 changes in the source code, we remap the standard system call names
143 to names for our own functions in sysdep.c that do the system call
144 with retries. */
145
146#define read sys_read
147#define open sys_open
148#define write sys_write
149
150#define INTERRUPTIBLE_OPEN
151#define INTERRUPTIBLE_IO
152
153/* On USG systems these have different names */ 139/* On USG systems these have different names */
154 140
155#define index strchr 141#define index strchr
diff --git a/src/s/usg5-2.h b/src/s/usg5-2.h
index 51b73bda462..7c8cb134094 100644
--- a/src/s/usg5-2.h
+++ b/src/s/usg5-2.h
@@ -1,5 +1,5 @@
1/* Definitions file for GNU Emacs running on AT&T's System V Release 2.0 1/* Definitions file for GNU Emacs running on AT&T's System V Release 2.0
2 Copyright (C) 1985, 1986 Free Software Foundation, Inc. 2 Copyright (C) 1985, 1986, 1999 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -136,20 +136,6 @@ Boston, MA 02111-1307, USA. */
136#define _setjmp setjmp 136#define _setjmp setjmp
137#define _longjmp longjmp 137#define _longjmp longjmp
138 138
139/* On USG systems the system calls are interruptible by signals
140 that the user program has elected to catch. Thus the system call
141 must be retried in these cases. To handle this without massive
142 changes in the source code, we remap the standard system call names
143 to names for our own functions in sysdep.c that do the system call
144 with retries. */
145
146#define read sys_read
147#define open sys_open
148#define write sys_write
149
150#define INTERRUPTIBLE_OPEN
151#define INTERRUPTIBLE_IO
152
153/* On USG systems these have different names */ 139/* On USG systems these have different names */
154 140
155#define index strchr 141#define index strchr
diff --git a/src/s/usg5-3.h b/src/s/usg5-3.h
index 01eea23c4b6..f3bd5d38f6e 100644
--- a/src/s/usg5-3.h
+++ b/src/s/usg5-3.h
@@ -1,5 +1,5 @@
1/* Definitions file for GNU Emacs running on AT&T's System V Release 3 1/* Definitions file for GNU Emacs running on AT&T's System V Release 3
2 Copyright (C) 1987 Free Software Foundation, Inc. 2 Copyright (C) 1987, 1999 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -151,22 +151,6 @@ Boston, MA 02111-1307, USA. */
151#define _setjmp setjmp 151#define _setjmp setjmp
152#define _longjmp longjmp 152#define _longjmp longjmp
153 153
154/* On USG systems the system calls are interruptible by signals
155 that the user program has elected to catch. Thus the system call
156 must be retried in these cases. To handle this without massive
157 changes in the source code, we remap the standard system call names
158 to names for our own functions in sysdep.c that do the system call
159 with retries. */
160
161#define read sys_read
162#define write sys_write
163#define open sys_open
164#define close sys_close
165
166#define INTERRUPTIBLE_OPEN
167#define INTERRUPTIBLE_CLOSE
168#define INTERRUPTIBLE_IO
169
170/* On USG systems these have different names */ 154/* On USG systems these have different names */
171#define index strchr 155#define index strchr
172#define rindex strrchr 156#define rindex strrchr
diff --git a/src/s/usg5-4.h b/src/s/usg5-4.h
index 8681cee6acc..2c10a7550c7 100644
--- a/src/s/usg5-4.h
+++ b/src/s/usg5-4.h
@@ -1,5 +1,5 @@
1/* Definitions file for GNU Emacs running on AT&T's System V Release 4 1/* Definitions file for GNU Emacs running on AT&T's System V Release 4
2 Copyright (C) 1987, 1990 Free Software Foundation, Inc. 2 Copyright (C) 1987, 1990, 1999 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -95,17 +95,14 @@ Boston, MA 02111-1307, USA. */
95#include <sys/stream.h> 95#include <sys/stream.h>
96#include <sys/stropts.h> 96#include <sys/stropts.h>
97#include <sys/termios.h> 97#include <sys/termios.h>
98#undef SIGIO 98#define BROKEN_SIGIO
99#endif 99#endif
100 100
101/* Some SVr4s don't define NSIG in sys/signal.h for ANSI environments; 101/* Some SVr4s don't define NSIG in sys/signal.h for ANSI environments;
102 * instead, there's a system variable _sys_nsig. Unfortunately, we need the 102 * instead, there's a system variable _sys_nsig. Unfortunately, we need the
103 * constant to dimension an array. So wire in the appropriate value here. 103 * constant to dimension an array. So wire in the appropriate value here.
104 */ 104 */
105 105#define NSIG_MINIMUM 32
106#ifndef NSIG
107#define NSIG 32
108#endif
109 106
110/* We need bss_end from emacs.c for undumping */ 107/* We need bss_end from emacs.c for undumping */
111 108
@@ -162,12 +159,12 @@ Boston, MA 02111-1307, USA. */
162 \ 159 \
163 sighold (SIGCLD); \ 160 sighold (SIGCLD); \
164 if (grantpt (fd) == -1) \ 161 if (grantpt (fd) == -1) \
165 { close (fd); return -1; } \ 162 { emacs_close (fd); return -1; } \
166 sigrelse (SIGCLD); \ 163 sigrelse (SIGCLD); \
167 if (unlockpt (fd) == -1) \ 164 if (unlockpt (fd) == -1) \
168 { close (fd); return -1; } \ 165 { emacs_close (fd); return -1; } \
169 if (!(ptyname = ptsname (fd))) \ 166 if (!(ptyname = ptsname (fd))) \
170 { close (fd); return -1; } \ 167 { emacs_close (fd); return -1; } \
171 strncpy (pty_name, ptyname, sizeof (pty_name)); \ 168 strncpy (pty_name, ptyname, sizeof (pty_name)); \
172 pty_name[sizeof (pty_name) - 1] = 0; \ 169 pty_name[sizeof (pty_name) - 1] = 0; \
173 } 170 }
diff --git a/src/s/xenix.h b/src/s/xenix.h
index 74c14f818d0..7550baa4cd4 100644
--- a/src/s/xenix.h
+++ b/src/s/xenix.h
@@ -1,5 +1,5 @@
1/* Definitions file for GNU Emacs running SCO Xenix 386 Release 2.2 1/* Definitions file for GNU Emacs running SCO Xenix 386 Release 2.2
2 Copyright (C) 1988 Free Software Foundation, Inc. 2 Copyright (C) 1988, 1999 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -168,20 +168,6 @@ Boston, MA 02111-1307, USA. */
168#define _setjmp setjmp 168#define _setjmp setjmp
169#define _longjmp longjmp 169#define _longjmp longjmp
170 170
171/* On USG systems the system calls are interruptible by signals
172 that the user program has elected to catch. Thus the system call
173 must be retried in these cases. To handle this without massive
174 changes in the source code, we remap the standard system call names
175 to names for our own functions in sysdep.c that do the system call
176 with retries. */
177
178#define read sys_read
179#define open sys_open
180#define write sys_write
181
182#define INTERRUPTIBLE_OPEN
183#define INTERRUPTIBLE_IO
184
185/* On USG systems these have different names */ 171/* On USG systems these have different names */
186 172
187#define index strchr 173#define index strchr