aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan Nicolaescu2010-03-20 00:09:31 -0700
committerDan Nicolaescu2010-03-20 00:09:31 -0700
commit2968f56146eac37708de08f30a58d662ce5f037f (patch)
tree0fd614eee20ca2fe7be7e63d911e1bb93cd6099a /src
parent15d25dc050dfda37f71813eb043826cef99b8dcc (diff)
downloademacs-2968f56146eac37708de08f30a58d662ce5f037f.tar.gz
emacs-2968f56146eac37708de08f30a58d662ce5f037f.zip
Consolidate redundant definitions.
* s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define, it's undefined in all files that include this one. (POSIX_SIGNALS): Define here instead of doing it in all files that include this one. * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef. (POSIX_SIGNALS): Do not define. * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef. (POSIX_SIGNALS): Do not define. * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef. (POSIX_SIGNALS): Do not define.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog12
-rw-r--r--src/s/irix6-5.h8
-rw-r--r--src/s/sol2-6.h7
-rw-r--r--src/s/unixware.h6
-rw-r--r--src/s/usg5-4.h29
5 files changed, 13 insertions, 49 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 858fbe394c5..5da33df70b9 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,17 @@
12010-03-20 Dan Nicolaescu <dann@ics.uci.edu> 12010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2 2
3 Consolidate redundant definitions.
4 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
5 it's undefined in all files that include this one.
6 (POSIX_SIGNALS): Define here instead of doing it in all files that
7 include this one.
8 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
9 (POSIX_SIGNALS): Do not define.
10 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
11 (POSIX_SIGNALS): Do not define.
12 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
13 (POSIX_SIGNALS): Do not define.
14
3 Remove support for old UNIX System V systems. 15 Remove support for old UNIX System V systems.
4 * s/unixware.h: Add the contents of s/usg-5-4-2.h. 16 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
5 * s/usg-5-4-2.h: Remove. 17 * s/usg-5-4-2.h: Remove.
diff --git a/src/s/irix6-5.h b/src/s/irix6-5.h
index 57429e41663..abd87b4aa2a 100644
--- a/src/s/irix6-5.h
+++ b/src/s/irix6-5.h
@@ -22,7 +22,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
22#define IRIX6_5 /* used in m/iris4d */ 22#define IRIX6_5 /* used in m/iris4d */
23#include "usg5-4.h" 23#include "usg5-4.h"
24 24
25#undef sigsetmask /* use sys_sigsetmask */
26#undef _longjmp /* use system versions, not conservative aliases */ 25#undef _longjmp /* use system versions, not conservative aliases */
27#undef _setjmp 26#undef _setjmp
28 27
@@ -46,9 +45,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
46#define SIGNALS_VIA_CHARACTERS 45#define SIGNALS_VIA_CHARACTERS
47 46
48/* No need to use sprintf to get the tty name--we get that from _getpty. */ 47/* No need to use sprintf to get the tty name--we get that from _getpty. */
49#ifdef PTY_TTY_NAME_SPRINTF
50#undef PTY_TTY_NAME_SPRINTF
51#endif
52#define PTY_TTY_NAME_SPRINTF 48#define PTY_TTY_NAME_SPRINTF
53/* No need to get the pty name at all. */ 49/* No need to get the pty name at all. */
54#ifdef PTY_NAME_SPRINTF 50#ifdef PTY_NAME_SPRINTF
@@ -80,10 +76,6 @@ char *_getpty();
80 strcpy (pty_name, name); \ 76 strcpy (pty_name, name); \
81} 77}
82 78
83/* Since we use POSIX constructs in PTY_OPEN, we must force POSIX
84 throughout. */
85#define POSIX_SIGNALS
86
87/* Ulimit(UL_GMEMLIM) is busted... */ 79/* Ulimit(UL_GMEMLIM) is busted... */
88#define ULIMIT_BREAK_VALUE 0x14000000 80#define ULIMIT_BREAK_VALUE 0x14000000
89 81
diff --git a/src/s/sol2-6.h b/src/s/sol2-6.h
index 233f38a7b31..8cd01511879 100644
--- a/src/s/sol2-6.h
+++ b/src/s/sol2-6.h
@@ -53,12 +53,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
53#define C_DEBUG_SWITCH -g -O 53#define C_DEBUG_SWITCH -g -O
54#endif /* GCC */ 54#endif /* GCC */
55 55
56/* Info from fnf@cygnus.com suggests this is appropriate. */
57#define POSIX_SIGNALS
58
59/* We don't need the definition from usg5-4.h with POSIX_SIGNALS. */
60#undef sigsetmask
61
62/* This is the same definition as in usg5-4.h, but with sigblock/sigunblock 56/* This is the same definition as in usg5-4.h, but with sigblock/sigunblock
63 rather than sighold/sigrelse, which appear to be BSD4.1 specific and won't 57 rather than sighold/sigrelse, which appear to be BSD4.1 specific and won't
64 work if POSIX_SIGNALS is defined. It may also be appropriate for SVR4.x 58 work if POSIX_SIGNALS is defined. It may also be appropriate for SVR4.x
@@ -68,7 +62,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
68 intercepting that death. If any child but grantpt's should die 62 intercepting that death. If any child but grantpt's should die
69 within, it should be caught after sigrelse(2). */ 63 within, it should be caught after sigrelse(2). */
70 64
71#undef PTY_TTY_NAME_SPRINTF
72#define PTY_TTY_NAME_SPRINTF \ 65#define PTY_TTY_NAME_SPRINTF \
73 { \ 66 { \
74 char *ptsname (), *ptyname; \ 67 char *ptsname (), *ptyname; \
diff --git a/src/s/unixware.h b/src/s/unixware.h
index d626e122b14..9fedb426868 100644
--- a/src/s/unixware.h
+++ b/src/s/unixware.h
@@ -26,11 +26,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
26/* #define HAVE_GETWD (appears to be buggy on SVR4.2) */ 26/* #define HAVE_GETWD (appears to be buggy on SVR4.2) */
27#undef HAVE_GETWD 27#undef HAVE_GETWD
28 28
29/* Info from fnf@cygnus.com suggests this is appropriate. */
30#define POSIX_SIGNALS
31
32/* We don't need the definition from usg5-3.h with POSIX_SIGNALS. */
33#undef sigsetmask
34#undef HAVE_SYSV_SIGPAUSE 29#undef HAVE_SYSV_SIGPAUSE
35 30
36/* Motif needs -lgen. */ 31/* Motif needs -lgen. */
@@ -45,7 +40,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
45 intercepting that death. If any child but grantpt's should die 40 intercepting that death. If any child but grantpt's should die
46 within, it should be caught after sigrelse(2). */ 41 within, it should be caught after sigrelse(2). */
47 42
48#undef PTY_TTY_NAME_SPRINTF
49#define PTY_TTY_NAME_SPRINTF \ 43#define PTY_TTY_NAME_SPRINTF \
50 { \ 44 { \
51 char *ptsname(), *ptyname; \ 45 char *ptsname(), *ptyname; \
diff --git a/src/s/usg5-4.h b/src/s/usg5-4.h
index c611911b0e8..180045cb7cf 100644
--- a/src/s/usg5-4.h
+++ b/src/s/usg5-4.h
@@ -63,13 +63,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
63 63
64/* Special hacks needed to make Emacs run on this system. */ 64/* Special hacks needed to make Emacs run on this system. */
65 65
66/* 66#define POSIX_SIGNALS
67 * Make the sigsetmask function go away. Don't know what the
68 * ramifications of this are, but doesn't seem possible to
69 * emulate it properly anyway at this point.
70 */
71
72#define sigsetmask(mask) /* Null expansion */
73 67
74/* setjmp and longjmp can safely replace _setjmp and _longjmp, 68/* setjmp and longjmp can safely replace _setjmp and _longjmp,
75 but they will run slower. */ 69 but they will run slower. */
@@ -176,27 +170,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
176 170
177#define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptmx"); 171#define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptmx");
178 172
179/* This sets the name of the slave side of the PTY. On SysVr4,
180 grantpt(3) forks a subprocess, so keep sigchld_handler() from
181 intercepting that death. If any child but grantpt's should die
182 within, it should be caught after sigrelse(2). */
183
184#define PTY_TTY_NAME_SPRINTF \
185 { \
186 char *ptsname (), *ptyname; \
187 \
188 sighold (SIGCLD); \
189 if (grantpt (fd) == -1) \
190 { emacs_close (fd); return -1; } \
191 sigrelse (SIGCLD); \
192 if (unlockpt (fd) == -1) \
193 { emacs_close (fd); return -1; } \
194 if (!(ptyname = ptsname (fd))) \
195 { emacs_close (fd); return -1; } \
196 strncpy (pty_name, ptyname, sizeof (pty_name)); \
197 pty_name[sizeof (pty_name) - 1] = 0; \
198 }
199
200/* Push various streams modules onto a PTY channel. */ 173/* Push various streams modules onto a PTY channel. */
201 174
202#define SETUP_SLAVE_PTY \ 175#define SETUP_SLAVE_PTY \