aboutsummaryrefslogtreecommitdiffstats
path: root/src/s
diff options
context:
space:
mode:
authorDan Nicolaescu2010-05-03 21:00:10 -0700
committerDan Nicolaescu2010-05-03 21:00:10 -0700
commitef03a4e61efa0003b1b6be961b58297ccfddc664 (patch)
tree9a644546e94468429dfac802c3f885cdfa886d08 /src/s
parentede4834a2f3f657ff79a730b52605ad8d3ef533e (diff)
downloademacs-ef03a4e61efa0003b1b6be961b58297ccfddc664.tar.gz
emacs-ef03a4e61efa0003b1b6be961b58297ccfddc664.zip
Remove POSIX_SIGNALS.
* s/usg5-4.h (POSIX_SIGNALS): * s/netbsd.h (POSIX_SIGNALS): * s/msdos.h (POSIX_SIGNALS): * s/ms-w32.h (POSIX_SIGNALS): * s/hpux11.h (POSIX_SIGNALS): * s/gnu.h (POSIX_SIGNALS): * s/gnu-linux.h (POSIX_SIGNALS): * s/freebsd.h (POSIX_SIGNALS): * s/darwin.h (POSIX_SIGNALS): * s/cygwin.h (POSIX_SIGNALS): * s/aix4-2.h (POSIX_SIGNALS): Remove definition. * s/unixware.h: * s/sol2-6.h: Remove comments on POSIX_SIGNALS. * process.c (create_process): * syssignal.h: * sysdep.c (wait_for_termination, init_signals): * process.c (create_process): * msdos.c: POSIX_SIGNALS is always defined on all platforms, remove all code that assumes the contrary.
Diffstat (limited to 'src/s')
-rw-r--r--src/s/aix4-2.h1
-rw-r--r--src/s/cygwin.h1
-rw-r--r--src/s/darwin.h4
-rw-r--r--src/s/freebsd.h5
-rw-r--r--src/s/gnu-linux.h1
-rw-r--r--src/s/gnu.h2
-rw-r--r--src/s/hpux11.h5
-rw-r--r--src/s/ms-w32.h2
-rw-r--r--src/s/msdos.h3
-rw-r--r--src/s/netbsd.h5
-rw-r--r--src/s/sol2-6.h4
-rw-r--r--src/s/unixware.h4
-rw-r--r--src/s/usg5-4.h4
13 files changed, 4 insertions, 37 deletions
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h
index b7de0312f7b..0a36c8ff0df 100644
--- a/src/s/aix4-2.h
+++ b/src/s/aix4-2.h
@@ -126,7 +126,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
126#define CLASH_DETECTION 126#define CLASH_DETECTION
127 127
128/* Perry Smith <pedz@ddivt1.austin.ibm.com> says these are correct. */ 128/* Perry Smith <pedz@ddivt1.austin.ibm.com> says these are correct. */
129#define POSIX_SIGNALS
130#undef sigmask 129#undef sigmask
131 130
132#ifndef HAVE_LIBXMU 131#ifndef HAVE_LIBXMU
diff --git a/src/s/cygwin.h b/src/s/cygwin.h
index b2ade390c7e..a337f156914 100644
--- a/src/s/cygwin.h
+++ b/src/s/cygwin.h
@@ -104,7 +104,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
104#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) 104#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
105#define SYSV_SYSTEM_DIR 1 105#define SYSV_SYSTEM_DIR 1
106#define UNEXEC unexcw.o 106#define UNEXEC unexcw.o
107#define POSIX_SIGNALS 1
108#define LINKER $(CC) 107#define LINKER $(CC)
109 108
110/* Use terminfo instead of termcap. Fewer environment variables to 109/* Use terminfo instead of termcap. Fewer environment variables to
diff --git a/src/s/darwin.h b/src/s/darwin.h
index de8369ddae2..6743b65cce6 100644
--- a/src/s/darwin.h
+++ b/src/s/darwin.h
@@ -215,10 +215,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
215 ioctl TIOCSCTTY. */ 215 ioctl TIOCSCTTY. */
216#define DONT_REOPEN_PTY 216#define DONT_REOPEN_PTY
217 217
218/* This makes create_process in process.c save and restore signal
219 handlers correctly. Suggested by Nozomu Ando.*/
220#define POSIX_SIGNALS
221
222/* Use the GC_MAKE_GCPROS_NOOPS (see lisp.h) method for marking the 218/* Use the GC_MAKE_GCPROS_NOOPS (see lisp.h) method for marking the
223 stack. */ 219 stack. */
224#define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS 220#define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS
diff --git a/src/s/freebsd.h b/src/s/freebsd.h
index 6c4da8f0863..178eeffb1c3 100644
--- a/src/s/freebsd.h
+++ b/src/s/freebsd.h
@@ -101,10 +101,5 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
101 101
102#define USE_MMAP_FOR_BUFFERS 1 102#define USE_MMAP_FOR_BUFFERS 1
103 103
104/* Use sigprocmask(2) and friends instead of sigblock(2); the man page
105 of sigblock says it is obsolete. */
106
107#define POSIX_SIGNALS 1
108
109/* arch-tag: 426529ca-b7c4-448f-b10a-d4dcdc9c78eb 104/* arch-tag: 426529ca-b7c4-448f-b10a-d4dcdc9c78eb
110 (do not change this comment) */ 105 (do not change this comment) */
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h
index 73241f0c21f..218af42bac4 100644
--- a/src/s/gnu-linux.h
+++ b/src/s/gnu-linux.h
@@ -187,7 +187,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
187#define SYSV_SYSTEM_DIR /* use dirent.h */ 187#define SYSV_SYSTEM_DIR /* use dirent.h */
188 188
189#define POSIX /* affects getpagesize.h and systty.h */ 189#define POSIX /* affects getpagesize.h and systty.h */
190#define POSIX_SIGNALS
191 190
192#undef LIB_GCC 191#undef LIB_GCC
193#define LIB_GCC 192#define LIB_GCC
diff --git a/src/s/gnu.h b/src/s/gnu.h
index 13679a1db4e..946eaa6512b 100644
--- a/src/s/gnu.h
+++ b/src/s/gnu.h
@@ -28,8 +28,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
28 28
29#define SIGNALS_VIA_CHARACTERS 29#define SIGNALS_VIA_CHARACTERS
30 30
31#define POSIX_SIGNALS
32
33/* Tell Emacs that we are a terminfo based system; disable the use 31/* Tell Emacs that we are a terminfo based system; disable the use
34 of local termcap. (GNU uses ncurses.) */ 32 of local termcap. (GNU uses ncurses.) */
35#ifdef HAVE_LIBNCURSES 33#ifdef HAVE_LIBNCURSES
diff --git a/src/s/hpux11.h b/src/s/hpux11.h
index 3382395a90f..48f60841047 100644
--- a/src/s/hpux11.h
+++ b/src/s/hpux11.h
@@ -1,10 +1,5 @@
1#include "hpux10-20.h" 1#include "hpux10-20.h"
2 2
3#ifdef POSIX_SIGNALS
4#undef POSIX_SIGNALS
5#endif
6#define POSIX_SIGNALS 1
7
8/* SA_RESTART resets the timeout of `select', so don't use it. */ 3/* SA_RESTART resets the timeout of `select', so don't use it. */
9#define BROKEN_SA_RESTART 4#define BROKEN_SA_RESTART
10 5
diff --git a/src/s/ms-w32.h b/src/s/ms-w32.h
index 74e91c1e816..deb23322d9b 100644
--- a/src/s/ms-w32.h
+++ b/src/s/ms-w32.h
@@ -123,8 +123,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
123#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\') 123#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\')
124#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_)) 124#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_))
125 125
126/* Do we have POSIX signals? (We don't, but we don't care, either.) */
127#define POSIX_SIGNALS 1
128#include <sys/types.h> 126#include <sys/types.h>
129struct sigaction { 127struct sigaction {
130 int sa_flags; 128 int sa_flags;
diff --git a/src/s/msdos.h b/src/s/msdos.h
index bcef83ba03e..8cd9bfc8491 100644
--- a/src/s/msdos.h
+++ b/src/s/msdos.h
@@ -128,9 +128,6 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */
128/* Mode line description of a buffer's type. */ 128/* Mode line description of a buffer's type. */
129#define MODE_LINE_BINARY_TEXT(buf) (NILP(buf->buffer_file_type) ? "T" : "B") 129#define MODE_LINE_BINARY_TEXT(buf) (NILP(buf->buffer_file_type) ? "T" : "B")
130 130
131/* Do we have POSIX signals? */
132#define POSIX_SIGNALS
133
134/* We have (the code to control) a mouse. */ 131/* We have (the code to control) a mouse. */
135#define HAVE_MOUSE 132#define HAVE_MOUSE
136 133
diff --git a/src/s/netbsd.h b/src/s/netbsd.h
index 2e48c3580d3..147b2d1ad32 100644
--- a/src/s/netbsd.h
+++ b/src/s/netbsd.h
@@ -80,10 +80,5 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
80 80
81#define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS 81#define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS
82 82
83/* Use sigprocmask and friends instead of sigblock;
84 sigblock is considered obsolete on NetBSD. */
85
86#define POSIX_SIGNALS 1
87
88/* arch-tag: e80f364a-04e9-4faf-93cb-f36a0fe95c81 83/* arch-tag: e80f364a-04e9-4faf-93cb-f36a0fe95c81
89 (do not change this comment) */ 84 (do not change this comment) */
diff --git a/src/s/sol2-6.h b/src/s/sol2-6.h
index 5ca5cfbc0d0..c05387d47f4 100644
--- a/src/s/sol2-6.h
+++ b/src/s/sol2-6.h
@@ -49,8 +49,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
49#endif 49#endif
50 50
51/* This is the same definition as in usg5-4.h, but with sigblock/sigunblock 51/* This is the same definition as in usg5-4.h, but with sigblock/sigunblock
52 rather than sighold/sigrelse, which appear to be BSD4.1 specific and won't 52 rather than sighold/sigrelse, which appear to be BSD4.1 specific.
53 work if POSIX_SIGNALS is defined. It may also be appropriate for SVR4.x 53 It may also be appropriate for SVR4.x
54 (x<2) but I'm not sure. fnf@cygnus.com */ 54 (x<2) but I'm not sure. fnf@cygnus.com */
55/* This sets the name of the slave side of the PTY. On SysVr4, 55/* This sets the name of the slave side of the PTY. On SysVr4,
56 grantpt(3) forks a subprocess, so keep sigchld_handler() from 56 grantpt(3) forks a subprocess, so keep sigchld_handler() from
diff --git a/src/s/unixware.h b/src/s/unixware.h
index d1e8748d913..6e42a0d4c56 100644
--- a/src/s/unixware.h
+++ b/src/s/unixware.h
@@ -32,8 +32,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
32#define LIBS_SYSTEM -lsocket -lnsl -lelf -lgen 32#define LIBS_SYSTEM -lsocket -lnsl -lelf -lgen
33 33
34/* This is the same definition as in usg5-4.h, but with sigblock/sigunblock 34/* This is the same definition as in usg5-4.h, but with sigblock/sigunblock
35 rather than sighold/sigrelse, which appear to be BSD4.1 specific and won't 35 rather than sighold/sigrelse, which appear to be BSD4.1 specific.
36 work if POSIX_SIGNALS is defined. It may also be appropriate for SVR4.x 36 It may also be appropriate for SVR4.x
37 (x<2) but I'm not sure. fnf@cygnus.com */ 37 (x<2) but I'm not sure. fnf@cygnus.com */
38/* This sets the name of the slave side of the PTY. On SysVr4, 38/* This sets the name of the slave side of the PTY. On SysVr4,
39 grantpt(3) forks a subprocess, so keep sigchld_handler() from 39 grantpt(3) forks a subprocess, so keep sigchld_handler() from
diff --git a/src/s/usg5-4.h b/src/s/usg5-4.h
index b02caf9a3da..8907781294f 100644
--- a/src/s/usg5-4.h
+++ b/src/s/usg5-4.h
@@ -61,10 +61,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
61 61
62#define LDAV_SYMBOL "avenrun" 62#define LDAV_SYMBOL "avenrun"
63 63
64/* Special hacks needed to make Emacs run on this system. */
65
66#define POSIX_SIGNALS
67
68/* setjmp and longjmp can safely replace _setjmp and _longjmp, 64/* setjmp and longjmp can safely replace _setjmp and _longjmp,
69 but they will run slower. */ 65 but they will run slower. */
70 66