diff options
| author | Eli Zaretskii | 2010-03-20 07:14:01 -0400 |
|---|---|---|
| committer | Eli Zaretskii | 2010-03-20 07:14:01 -0400 |
| commit | f2cdb04ac04fb8f9f92bce11df6e4a020720208b (patch) | |
| tree | 4d231ff66e4145ce8967ed0c4ab71b364d05675f /src/s | |
| parent | 8eef7665fa98baae93da5151c27ca0db4d1d6f5b (diff) | |
| parent | 22e8757456ea6608246d9c81a83f6c5119f2e1fb (diff) | |
| download | emacs-f2cdb04ac04fb8f9f92bce11df6e4a020720208b.tar.gz emacs-f2cdb04ac04fb8f9f92bce11df6e4a020720208b.zip | |
Merge from mainline.
Diffstat (limited to 'src/s')
| -rw-r--r-- | src/s/aix4-2.h | 2 | ||||
| -rw-r--r-- | src/s/bsd-common.h | 30 | ||||
| -rw-r--r-- | src/s/freebsd.h | 58 | ||||
| -rw-r--r-- | src/s/gnu.h | 24 | ||||
| -rw-r--r-- | src/s/irix6-5.h | 8 | ||||
| -rw-r--r-- | src/s/lynxos.h | 57 | ||||
| -rw-r--r-- | src/s/netbsd.h | 29 | ||||
| -rw-r--r-- | src/s/openbsd.h | 8 | ||||
| -rw-r--r-- | src/s/sol2-3.h | 98 | ||||
| -rw-r--r-- | src/s/sol2-4.h | 32 | ||||
| -rw-r--r-- | src/s/sol2-5.h | 32 | ||||
| -rw-r--r-- | src/s/sol2-6.h | 125 | ||||
| -rw-r--r-- | src/s/unixware.h | 69 | ||||
| -rw-r--r-- | src/s/usg5-4-2.h | 73 | ||||
| -rw-r--r-- | src/s/usg5-4.h | 29 |
15 files changed, 221 insertions, 453 deletions
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h index 29a68dbf6e3..a1abf13466d 100644 --- a/src/s/aix4-2.h +++ b/src/s/aix4-2.h | |||
| @@ -168,5 +168,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 168 | */ | 168 | */ |
| 169 | #define BROKEN_GET_CURRENT_DIR_NAME 1 | 169 | #define BROKEN_GET_CURRENT_DIR_NAME 1 |
| 170 | 170 | ||
| 171 | #define UNEXEC unexaix.o | ||
| 172 | |||
| 171 | /* arch-tag: 38fe75ea-6aef-42bd-8449-bc34d921a562 | 173 | /* arch-tag: 38fe75ea-6aef-42bd-8449-bc34d921a562 |
| 172 | (do not change this comment) */ | 174 | (do not change this comment) */ |
diff --git a/src/s/bsd-common.h b/src/s/bsd-common.h index 8094f50d317..2ef0883b2a7 100644 --- a/src/s/bsd-common.h +++ b/src/s/bsd-common.h | |||
| @@ -33,6 +33,36 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 33 | #define BSD_SYSTEM 43 | 33 | #define BSD_SYSTEM 43 |
| 34 | #endif /* BSD_SYSTEM */ | 34 | #endif /* BSD_SYSTEM */ |
| 35 | 35 | ||
| 36 | /* For mem-limits.h. */ | ||
| 37 | #define BSD4_2 | ||
| 38 | |||
| 39 | #define TABDLY OXTABS | ||
| 40 | #define TAB3 OXTABS | ||
| 41 | |||
| 42 | /* These aren't needed, since we have getloadavg. */ | ||
| 43 | #undef KERNEL_FILE | ||
| 44 | #undef LDAV_SYMBOL | ||
| 45 | |||
| 46 | #define HAVE_TERMIOS | ||
| 47 | #define NO_TERMIO | ||
| 48 | |||
| 49 | #define LIBS_DEBUG | ||
| 50 | |||
| 51 | #define SYSV_SYSTEM_DIR | ||
| 52 | |||
| 53 | /* POSIX-style pgrp behavior. */ | ||
| 54 | #undef BSD_PGRPS | ||
| 55 | |||
| 56 | #define UNEXEC unexelf.o | ||
| 57 | |||
| 58 | /* If the system's imake configuration file defines `NeedWidePrototypes' | ||
| 59 | as `NO', we must define NARROWPROTO manually. Such a define is | ||
| 60 | generated in the Makefile generated by `xmkmf'. If we don't | ||
| 61 | define NARROWPROTO, we will see the wrong function prototypes | ||
| 62 | for X functions taking float or double parameters. */ | ||
| 63 | |||
| 64 | #define NARROWPROTO 1 | ||
| 65 | |||
| 36 | /* SYSTEM_TYPE should indicate the kind of system you are using. | 66 | /* SYSTEM_TYPE should indicate the kind of system you are using. |
| 37 | It sets the Lisp variable system-type. */ | 67 | It sets the Lisp variable system-type. */ |
| 38 | 68 | ||
diff --git a/src/s/freebsd.h b/src/s/freebsd.h index e13941d2dcc..a84627d3268 100644 --- a/src/s/freebsd.h +++ b/src/s/freebsd.h | |||
| @@ -23,39 +23,14 @@ GNU General Public License for more details. | |||
| 23 | You should have received a copy of the GNU General Public License | 23 | You should have received a copy of the GNU General Public License |
| 24 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 24 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 25 | 25 | ||
| 26 | /* Get the correct __FreeBSD_version, even if this is before that was | ||
| 27 | defined. */ | ||
| 28 | #ifndef __FreeBSD_version | ||
| 29 | #ifndef __FreeBSD__ | ||
| 30 | #define __FreeBSD_version 199401 | ||
| 31 | #elif __FreeBSD__ == 1 | ||
| 32 | #define __FreeBSD_version 199405 | ||
| 33 | #else | ||
| 34 | #include <osreldate.h> | ||
| 35 | #endif | ||
| 36 | #endif /* !defined __FreeBSD_version */ | ||
| 37 | |||
| 38 | /* '__FreeBSD__' is defined by the preprocessor on FreeBSD-1.1 and up. | ||
| 39 | Earlier versions do not have shared libraries, so inhibit them. | ||
| 40 | You can inhibit them on newer systems if you wish | ||
| 41 | by defining NO_SHARED_LIBS. */ | ||
| 42 | #ifndef __FreeBSD__ | ||
| 43 | #define NO_SHARED_LIBS | ||
| 44 | #endif | ||
| 45 | |||
| 46 | /* Get most of the stuff from bsd-common */ | 26 | /* Get most of the stuff from bsd-common */ |
| 47 | #include "bsd-common.h" | 27 | #include "bsd-common.h" |
| 48 | 28 | ||
| 49 | /* For mem-limits.h. */ | 29 | /* For mem-limits.h. */ |
| 50 | #define BSD4_2 | 30 | #define BSD4_2 |
| 51 | 31 | ||
| 52 | /* These aren't needed, since we have getloadavg. */ | ||
| 53 | #undef KERNEL_FILE | ||
| 54 | #undef LDAV_SYMBOL | ||
| 55 | |||
| 56 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) | 32 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) |
| 57 | 33 | ||
| 58 | #define LIBS_DEBUG | ||
| 59 | #define LIBS_SYSTEM -lutil | 34 | #define LIBS_SYSTEM -lutil |
| 60 | #if __FreeBSD_version < 400000 | 35 | #if __FreeBSD_version < 400000 |
| 61 | #define LIBS_TERMCAP -ltermcap | 36 | #define LIBS_TERMCAP -ltermcap |
| @@ -64,44 +39,19 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 64 | #define LIBS_TERMCAP -lncurses | 39 | #define LIBS_TERMCAP -lncurses |
| 65 | #endif | 40 | #endif |
| 66 | 41 | ||
| 67 | #define SYSV_SYSTEM_DIR | ||
| 68 | |||
| 69 | /* freebsd has POSIX-style pgrp behavior. */ | ||
| 70 | #undef BSD_PGRPS | ||
| 71 | |||
| 72 | #ifdef __ELF__ | ||
| 73 | |||
| 74 | /* Let `ld' find image libs and similar things in /usr/local/lib. The | 42 | /* Let `ld' find image libs and similar things in /usr/local/lib. The |
| 75 | system compiler, GCC, has apparently been modified to not look | 43 | system compiler, GCC, has apparently been modified to not look |
| 76 | there, contrary to what a stock GCC would do. */ | 44 | there, contrary to what a stock GCC would do. */ |
| 77 | 45 | ||
| 78 | #define LD_SWITCH_SYSTEM -L/usr/local/lib | 46 | #define LD_SWITCH_SYSTEM -L/usr/local/lib |
| 79 | #define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o | 47 | #define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o |
| 80 | #define UNEXEC unexelf.o | ||
| 81 | #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o | 48 | #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o |
| 82 | #undef LIB_GCC | 49 | #undef LIB_GCC |
| 83 | #define LIB_GCC | 50 | #define LIB_GCC |
| 84 | 51 | ||
| 85 | #else /* not __ELF__ */ | ||
| 86 | |||
| 87 | #ifdef NO_SHARED_LIBS | ||
| 88 | #ifdef __FreeBSD__ /* shared libs are available, but the user prefers | ||
| 89 | not to use them. */ | ||
| 90 | #define LD_SWITCH_SYSTEM -Bstatic -L/usr/local/lib | ||
| 91 | #endif /* __FreeBSD__ */ | ||
| 92 | #endif /* NO_SHARED_LIBS */ | ||
| 93 | |||
| 94 | #endif /* not __ELF__ */ | ||
| 95 | |||
| 96 | #define HAVE_GETLOADAVG 1 | 52 | #define HAVE_GETLOADAVG 1 |
| 97 | #define HAVE_TERMIOS | ||
| 98 | #define NO_TERMIO | ||
| 99 | #define DECLARE_GETPWUID_WITH_UID_T | 53 | #define DECLARE_GETPWUID_WITH_UID_T |
| 100 | 54 | ||
| 101 | /* freebsd uses OXTABS instead of the expected TAB3. */ | ||
| 102 | #define TABDLY OXTABS | ||
| 103 | #define TAB3 OXTABS | ||
| 104 | |||
| 105 | /* this silences a few compilation warnings */ | 55 | /* this silences a few compilation warnings */ |
| 106 | #undef BSD_SYSTEM | 56 | #undef BSD_SYSTEM |
| 107 | #if __FreeBSD__ == 1 | 57 | #if __FreeBSD__ == 1 |
| @@ -117,14 +67,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 117 | ioctl TIOCSCTTY. */ | 67 | ioctl TIOCSCTTY. */ |
| 118 | #define DONT_REOPEN_PTY | 68 | #define DONT_REOPEN_PTY |
| 119 | 69 | ||
| 120 | /* If the system's imake configuration file defines `NeedWidePrototypes' | ||
| 121 | as `NO', we must define NARROWPROTO manually. Such a define is | ||
| 122 | generated in the Makefile generated by `xmkmf'. If we don't | ||
| 123 | define NARROWPROTO, we will see the wrong function prototypes | ||
| 124 | for X functions taking float or double parameters. */ | ||
| 125 | |||
| 126 | #define NARROWPROTO 1 | ||
| 127 | |||
| 128 | /* The following is needed to make `configure' find Xpm, Xaw3d and | 70 | /* The following is needed to make `configure' find Xpm, Xaw3d and |
| 129 | image include and library files if using /usr/bin/gcc. That | 71 | image include and library files if using /usr/bin/gcc. That |
| 130 | compiler seems to be modified to not find headers in | 72 | compiler seems to be modified to not find headers in |
diff --git a/src/s/gnu.h b/src/s/gnu.h index b43cd65c40a..bf68cabe051 100644 --- a/src/s/gnu.h +++ b/src/s/gnu.h | |||
| @@ -21,27 +21,13 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 21 | /* Get most of the stuff from bsd-common */ | 21 | /* Get most of the stuff from bsd-common */ |
| 22 | #include "bsd-common.h" | 22 | #include "bsd-common.h" |
| 23 | 23 | ||
| 24 | /* For mem-limits.h. */ | ||
| 25 | #define BSD4_2 | ||
| 26 | |||
| 27 | #undef SYSTEM_TYPE | 24 | #undef SYSTEM_TYPE |
| 28 | #define SYSTEM_TYPE "gnu" | 25 | #define SYSTEM_TYPE "gnu" |
| 29 | 26 | ||
| 30 | #undef NLIST_STRUCT | 27 | #undef NLIST_STRUCT |
| 31 | #undef KERNEL_FILE | ||
| 32 | #undef LDAV_SYMBOL | ||
| 33 | 28 | ||
| 34 | #define SIGNALS_VIA_CHARACTERS | 29 | #define SIGNALS_VIA_CHARACTERS |
| 35 | 30 | ||
| 36 | #define HAVE_TERMIOS | ||
| 37 | #define NO_TERMIO | ||
| 38 | |||
| 39 | #define LIBS_DEBUG | ||
| 40 | |||
| 41 | /* XXX emacs should not expect TAB3 to be defined. */ | ||
| 42 | #define TABDLY OXTABS | ||
| 43 | #define TAB3 OXTABS | ||
| 44 | |||
| 45 | /* 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 |
| 46 | of local termcap. (GNU uses ncurses.) */ | 32 | of local termcap. (GNU uses ncurses.) */ |
| 47 | #ifdef HAVE_LIBNCURSES | 33 | #ifdef HAVE_LIBNCURSES |
| @@ -49,11 +35,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 49 | #define LIBS_TERMCAP -lncurses | 35 | #define LIBS_TERMCAP -lncurses |
| 50 | #endif | 36 | #endif |
| 51 | 37 | ||
| 52 | #define SYSV_SYSTEM_DIR | ||
| 53 | |||
| 54 | /* GNU has POSIX-style pgrp behavior. */ | ||
| 55 | #undef BSD_PGRPS | ||
| 56 | |||
| 57 | /* Use mmap directly for allocating larger buffers. */ | 38 | /* Use mmap directly for allocating larger buffers. */ |
| 58 | #ifdef DOUG_LEA_MALLOC | 39 | #ifdef DOUG_LEA_MALLOC |
| 59 | #undef REL_ALLOC | 40 | #undef REL_ALLOC |
| @@ -63,17 +44,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 63 | #define ORDINARY_LINK | 44 | #define ORDINARY_LINK |
| 64 | #define DATA_START ({ extern int data_start; (char *) &data_start; }) | 45 | #define DATA_START ({ extern int data_start; (char *) &data_start; }) |
| 65 | 46 | ||
| 66 | /* GNU now always uses the ELF format. */ | ||
| 67 | #define UNEXEC unexelf.o | ||
| 68 | |||
| 69 | /* Some losing code fails to include this and then assumes | 47 | /* Some losing code fails to include this and then assumes |
| 70 | that because it is braindead that O_RDONLY==0. */ | 48 | that because it is braindead that O_RDONLY==0. */ |
| 71 | #ifndef NOT_C_CODE | 49 | #ifndef NOT_C_CODE |
| 72 | #include <fcntl.h> | 50 | #include <fcntl.h> |
| 73 | #endif | 51 | #endif |
| 74 | 52 | ||
| 75 | #define NARROWPROTO 1 | ||
| 76 | |||
| 77 | #ifdef emacs | 53 | #ifdef emacs |
| 78 | #include <stdio.h> /* Get the definition of _IO_STDIO_H. */ | 54 | #include <stdio.h> /* Get the definition of _IO_STDIO_H. */ |
| 79 | #if defined(_IO_STDIO_H) || defined(_STDIO_USES_IOSTREAM) | 55 | #if defined(_IO_STDIO_H) || defined(_STDIO_USES_IOSTREAM) |
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/lynxos.h b/src/s/lynxos.h deleted file mode 100644 index 180b6005692..00000000000 --- a/src/s/lynxos.h +++ /dev/null | |||
| @@ -1,57 +0,0 @@ | |||
| 1 | /* Definitions file for GNU Emacs running on LynxOS-3.0.1 | ||
| 2 | Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, | ||
| 3 | 2008, 2009, 2010 Free Software Foundation, Inc. | ||
| 4 | |||
| 5 | This file is part of GNU Emacs. | ||
| 6 | |||
| 7 | GNU Emacs is free software: you can redistribute it and/or modify | ||
| 8 | it under the terms of the GNU General Public License as published by | ||
| 9 | the Free Software Foundation, either version 3 of the License, or | ||
| 10 | (at your option) any later version. | ||
| 11 | |||
| 12 | GNU Emacs is distributed in the hope that it will be useful, | ||
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | GNU General Public License for more details. | ||
| 16 | |||
| 17 | You should have received a copy of the GNU General Public License | ||
| 18 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | ||
| 19 | |||
| 20 | /* LynxOS is almost a bsd 4.2 system */ | ||
| 21 | #include "s/bsd4-2.h" | ||
| 22 | |||
| 23 | /* SYSTEM_TYPE should indicate the kind of system you are using. | ||
| 24 | It sets the Lisp variable system-type. */ | ||
| 25 | |||
| 26 | /* override the bsd definition */ | ||
| 27 | #undef SYSTEM_TYPE | ||
| 28 | #define SYSTEM_TYPE "lynxos 3.0.1" | ||
| 29 | |||
| 30 | /* System stuff redefined from bsd4-2.h */ | ||
| 31 | #undef KERNEL_FILE | ||
| 32 | #define KERNEL_FILE "/lynx.os" | ||
| 33 | #undef LDAV_SYMBOL | ||
| 34 | #define LDAV_SYMBOL "load_average" | ||
| 35 | |||
| 36 | /* misc defines */ | ||
| 37 | #define LNOFLSH 0 | ||
| 38 | |||
| 39 | /* COFF related */ | ||
| 40 | #define COFF | ||
| 41 | #define NO_REMAP | ||
| 42 | #define SECTION_ALIGNMENT 0x1 | ||
| 43 | #define COFF_BSD_SYMBOLS | ||
| 44 | #define etext __etext | ||
| 45 | #define edata __edata | ||
| 46 | #define _start __text | ||
| 47 | |||
| 48 | /* Compilation options */ | ||
| 49 | #define LIBS_DEBUG | ||
| 50 | #define ORDINARY_LINK | ||
| 51 | /* we define following to prevent all the lynxos's stupid compilation */ | ||
| 52 | /* warning messages */ | ||
| 53 | #define C_SWITCH_SYSTEM -D__NO_INCLUDE_WARN__ | ||
| 54 | #define LIBS_SYSTEM -lbsd | ||
| 55 | |||
| 56 | /* arch-tag: fbc81ec9-1c45-416b-a368-799ae7c094a1 | ||
| 57 | (do not change this comment) */ | ||
diff --git a/src/s/netbsd.h b/src/s/netbsd.h index 17d3b33451e..1af4c94d105 100644 --- a/src/s/netbsd.h +++ b/src/s/netbsd.h | |||
| @@ -22,44 +22,20 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 22 | /* Get most of the stuff from bsd-common */ | 22 | /* Get most of the stuff from bsd-common */ |
| 23 | #include "bsd-common.h" | 23 | #include "bsd-common.h" |
| 24 | 24 | ||
| 25 | #if defined (__alpha__) && !defined (__ELF__) | ||
| 26 | #define NO_SHARED_LIBS | ||
| 27 | #endif | ||
| 28 | |||
| 29 | /* For mem-limits.h. */ | ||
| 30 | #define BSD4_2 | ||
| 31 | |||
| 32 | #undef KERNEL_FILE | ||
| 33 | #undef LDAV_SYMBOL | ||
| 34 | #define HAVE_GETLOADAVG 1 | 25 | #define HAVE_GETLOADAVG 1 |
| 35 | 26 | ||
| 36 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) | 27 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) |
| 37 | 28 | ||
| 38 | /* netbsd uses OXTABS instead of the expected TAB3. */ | ||
| 39 | #define TABDLY OXTABS | ||
| 40 | #define TAB3 OXTABS | ||
| 41 | |||
| 42 | #define HAVE_TERMIOS | ||
| 43 | #define NO_TERMIO | ||
| 44 | |||
| 45 | #define LIBS_DEBUG | ||
| 46 | /* -lutil is not needed for NetBSD >0.9. */ | 29 | /* -lutil is not needed for NetBSD >0.9. */ |
| 47 | /* #define LIBS_SYSTEM -lutil */ | 30 | /* #define LIBS_SYSTEM -lutil */ |
| 48 | #define LIBS_TERMCAP -ltermcap | 31 | #define LIBS_TERMCAP -ltermcap |
| 49 | 32 | ||
| 50 | #define NEED_ERRNO | 33 | #define NEED_ERRNO |
| 51 | #define SYSV_SYSTEM_DIR | ||
| 52 | 34 | ||
| 53 | /* Netbsd has POSIX-style pgrp behavior. */ | ||
| 54 | #undef BSD_PGRPS | ||
| 55 | |||
| 56 | #if !defined (NO_SHARED_LIBS) && defined (__ELF__) | ||
| 57 | #define START_FILES pre-crt0.o /usr/lib/crt0.o START_FILES_1 /usr/lib/crtbegin.o | 35 | #define START_FILES pre-crt0.o /usr/lib/crt0.o START_FILES_1 /usr/lib/crtbegin.o |
| 58 | #define UNEXEC unexelf.o | ||
| 59 | #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o END_FILES_1 | 36 | #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o END_FILES_1 |
| 60 | #undef LIB_GCC | 37 | #undef LIB_GCC |
| 61 | #define LIB_GCC | 38 | #define LIB_GCC |
| 62 | #endif | ||
| 63 | 39 | ||
| 64 | #ifdef HAVE_CRTIN | 40 | #ifdef HAVE_CRTIN |
| 65 | #define START_FILES_1 /usr/lib/crti.o | 41 | #define START_FILES_1 /usr/lib/crti.o |
| @@ -71,7 +47,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 71 | 47 | ||
| 72 | #define AMPERSAND_FULL_NAME | 48 | #define AMPERSAND_FULL_NAME |
| 73 | 49 | ||
| 74 | #ifdef __ELF__ | ||
| 75 | /* Here is how to find X Windows. LD_SWITCH_X_SITE_AUX gives an -R option | 50 | /* Here is how to find X Windows. LD_SWITCH_X_SITE_AUX gives an -R option |
| 76 | says where to find X windows at run time. We convert it to a -rpath option | 51 | says where to find X windows at run time. We convert it to a -rpath option |
| 77 | which is what OSF1 uses. */ | 52 | which is what OSF1 uses. */ |
| @@ -92,8 +67,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 92 | 67 | ||
| 93 | #define LD_SWITCH_SYSTEM_TEMACS -Wl,-z,nocombreloc | 68 | #define LD_SWITCH_SYSTEM_TEMACS -Wl,-z,nocombreloc |
| 94 | 69 | ||
| 95 | #endif /* __ELF__ */ | ||
| 96 | |||
| 97 | /* On post 1.3 releases of NetBSD, gcc -nostdlib also clears | 70 | /* On post 1.3 releases of NetBSD, gcc -nostdlib also clears |
| 98 | the library search parth, i.e. it won't search /usr/lib | 71 | the library search parth, i.e. it won't search /usr/lib |
| 99 | for libc and friends. Using -nostartfiles instead avoids | 72 | for libc and friends. Using -nostartfiles instead avoids |
| @@ -101,8 +74,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 101 | 74 | ||
| 102 | #define LINKER $(CC) -nostartfiles | 75 | #define LINKER $(CC) -nostartfiles |
| 103 | 76 | ||
| 104 | #define NARROWPROTO 1 | ||
| 105 | |||
| 106 | #define DEFAULT_SOUND_DEVICE "/dev/audio" | 77 | #define DEFAULT_SOUND_DEVICE "/dev/audio" |
| 107 | 78 | ||
| 108 | /* Greg A. Woods <woods@weird.com> says we must include signal.h | 79 | /* Greg A. Woods <woods@weird.com> says we must include signal.h |
diff --git a/src/s/openbsd.h b/src/s/openbsd.h index 3b996de7059..a74601d3ad8 100644 --- a/src/s/openbsd.h +++ b/src/s/openbsd.h | |||
| @@ -19,7 +19,6 @@ | |||
| 19 | 19 | ||
| 20 | #undef LD_SWITCH_SYSTEM_TEMACS | 20 | #undef LD_SWITCH_SYSTEM_TEMACS |
| 21 | #undef LD_SWITCH_SYSTEM | 21 | #undef LD_SWITCH_SYSTEM |
| 22 | #ifdef __ELF__ | ||
| 23 | 22 | ||
| 24 | /* Han Boetes <han@mijncomputer.nl> says this | 23 | /* Han Boetes <han@mijncomputer.nl> says this |
| 25 | is necessary, otherwise Emacs dumps core on elf systems. */ | 24 | is necessary, otherwise Emacs dumps core on elf systems. */ |
| @@ -29,12 +28,5 @@ | |||
| 29 | default. */ | 28 | default. */ |
| 30 | #define LD_SWITCH_X_DEFAULT -L/usr/local/lib | 29 | #define LD_SWITCH_X_DEFAULT -L/usr/local/lib |
| 31 | 30 | ||
| 32 | #else | ||
| 33 | |||
| 34 | #define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp | ||
| 35 | #define LD_SWITCH_X_DEFAULT -L/usr/local/lib | ||
| 36 | |||
| 37 | #endif | ||
| 38 | |||
| 39 | /* arch-tag: 7e3f65ca-3f48-4237-933f-2b208b21e8e2 | 31 | /* arch-tag: 7e3f65ca-3f48-4237-933f-2b208b21e8e2 |
| 40 | (do not change this comment) */ | 32 | (do not change this comment) */ |
diff --git a/src/s/sol2-3.h b/src/s/sol2-3.h deleted file mode 100644 index fa05aa45b67..00000000000 --- a/src/s/sol2-3.h +++ /dev/null | |||
| @@ -1,98 +0,0 @@ | |||
| 1 | /* Definitions file for GNU Emacs running on Solaris 2.3. | ||
| 2 | |||
| 3 | Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, | ||
| 4 | 2008, 2009, 2010 Free Software Foundation, Inc. | ||
| 5 | |||
| 6 | This file is part of GNU Emacs. | ||
| 7 | |||
| 8 | GNU Emacs is free software: you can redistribute it and/or modify | ||
| 9 | it under the terms of the GNU General Public License as published by | ||
| 10 | the Free Software Foundation, either version 3 of the License, or | ||
| 11 | (at your option) any later version. | ||
| 12 | |||
| 13 | GNU Emacs is distributed in the hope that it will be useful, | ||
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 16 | GNU General Public License for more details. | ||
| 17 | |||
| 18 | You should have received a copy of the GNU General Public License | ||
| 19 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | ||
| 20 | |||
| 21 | #include "usg5-4.h" | ||
| 22 | |||
| 23 | #define SOLARIS2 | ||
| 24 | |||
| 25 | /* This triggers a conditional in xfaces.c. */ | ||
| 26 | #define XOS_NEEDS_TIME_H | ||
| 27 | |||
| 28 | #define POSIX | ||
| 29 | |||
| 30 | #define LIBS_SYSTEM -lsocket -lnsl -lkstat | ||
| 31 | |||
| 32 | /* Prefer kstat over kvm in getloadavg.c, kstat doesn't require root. | ||
| 33 | ghazi@caip.rutgers.edu, 7/21/97. Don't redefine if already defined | ||
| 34 | (e.g., by config.h). */ | ||
| 35 | #ifndef HAVE_LIBKSTAT | ||
| 36 | #define HAVE_LIBKSTAT | ||
| 37 | #endif | ||
| 38 | |||
| 39 | /* inoue@ainet.or.jp says Solaris has a bug related to X11R6-style | ||
| 40 | XIM support. */ | ||
| 41 | |||
| 42 | #define INHIBIT_X11R6_XIM | ||
| 43 | |||
| 44 | /* Must use the system's termcap, if we use any termcap. | ||
| 45 | It does special things. */ | ||
| 46 | |||
| 47 | #ifndef TERMINFO | ||
| 48 | #define LIBS_TERMCAP -ltermcap | ||
| 49 | #endif | ||
| 50 | |||
| 51 | #define USE_MMAP_FOR_BUFFERS 1 | ||
| 52 | |||
| 53 | #ifndef __GNUC__ | ||
| 54 | #define LD_SWITCH_SYSTEM -L /usr/ccs/lib LD_SWITCH_X_SITE_AUX | ||
| 55 | /* eggert thinks all versions of SunPro C allowed this. */ | ||
| 56 | #define C_DEBUG_SWITCH -g -O | ||
| 57 | #else /* GCC */ | ||
| 58 | /* We use ./prefix-args because we don't know whether LD_SWITCH_X_SITE_AUX | ||
| 59 | has anything in it. It can be empty. | ||
| 60 | This works ok in src. Luckily lib-src does not use LD_SWITCH_SYSTEM. */ | ||
| 61 | #define LD_SWITCH_SYSTEM -L /usr/ccs/lib \ | ||
| 62 | `./prefix-args -Xlinker LD_SWITCH_X_SITE_AUX` | ||
| 63 | #endif /* GCC */ | ||
| 64 | |||
| 65 | /* Info from fnf@cygnus.com suggests this is appropriate. */ | ||
| 66 | #define POSIX_SIGNALS | ||
| 67 | |||
| 68 | /* We don't need the definition from usg5-4.h with POSIX_SIGNALS. */ | ||
| 69 | #undef sigsetmask | ||
| 70 | |||
| 71 | /* This is the same definition as in usg5-4.h, but with sigblock/sigunblock | ||
| 72 | rather than sighold/sigrelse, which appear to be BSD4.1 specific and won't | ||
| 73 | work if POSIX_SIGNALS is defined. It may also be appropriate for SVR4.x | ||
| 74 | (x<2) but I'm not sure. fnf@cygnus.com */ | ||
| 75 | /* This sets the name of the slave side of the PTY. On SysVr4, | ||
| 76 | grantpt(3) forks a subprocess, so keep sigchld_handler() from | ||
| 77 | intercepting that death. If any child but grantpt's should die | ||
| 78 | within, it should be caught after sigrelse(2). */ | ||
| 79 | |||
| 80 | #undef PTY_TTY_NAME_SPRINTF | ||
| 81 | #define PTY_TTY_NAME_SPRINTF \ | ||
| 82 | { \ | ||
| 83 | char *ptsname (), *ptyname; \ | ||
| 84 | \ | ||
| 85 | sigblock (sigmask (SIGCLD)); \ | ||
| 86 | if (grantpt (fd) == -1) \ | ||
| 87 | { emacs_close (fd); return -1; } \ | ||
| 88 | sigunblock (sigmask (SIGCLD)); \ | ||
| 89 | if (unlockpt (fd) == -1) \ | ||
| 90 | { emacs_close (fd); return -1; } \ | ||
| 91 | if (!(ptyname = ptsname (fd))) \ | ||
| 92 | { emacs_close (fd); return -1; } \ | ||
| 93 | strncpy (pty_name, ptyname, sizeof (pty_name)); \ | ||
| 94 | pty_name[sizeof (pty_name) - 1] = 0; \ | ||
| 95 | } | ||
| 96 | |||
| 97 | /* arch-tag: a8fe2e15-e517-49cb-a863-f346b80885fe | ||
| 98 | (do not change this comment) */ | ||
diff --git a/src/s/sol2-4.h b/src/s/sol2-4.h deleted file mode 100644 index df8552e9562..00000000000 --- a/src/s/sol2-4.h +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | /* Handle Solaris 2.4. */ | ||
| 2 | |||
| 3 | #include "sol2-3.h" | ||
| 4 | |||
| 5 | #undef LD_SWITCH_SYSTEM | ||
| 6 | |||
| 7 | /* `#ifdef USE_MOTIF' won't work here, since USE_MOTIF isn't defined yet. | ||
| 8 | Instead, dynamically check whether USE_MOTIF expands to something. */ | ||
| 9 | #define NOT_USING_MOTIF { set x USE_MOTIF; test "$$2" = "USE_MOTIF"; } | ||
| 10 | |||
| 11 | #ifndef __GNUC__ | ||
| 12 | #define LD_SWITCH_SYSTEM_TEMACS -L/usr/ccs/lib LD_SWITCH_X_SITE_AUX \ | ||
| 13 | `NOT_USING_MOTIF || echo ' -R/usr/dt/lib'` | ||
| 14 | #else /* GCC */ | ||
| 15 | /* We use ./prefix-args because we don't know whether LD_SWITCH_X_SITE_AUX | ||
| 16 | has anything in it. It can be empty. | ||
| 17 | This works ok in temacs. */ | ||
| 18 | #define LD_SWITCH_SYSTEM_TEMACS -L/usr/ccs/lib \ | ||
| 19 | `./prefix-args -Xlinker LD_SWITCH_X_SITE_AUX` \ | ||
| 20 | `NOT_USING_MOTIF || echo ' -R/usr/dt/lib -L/usr/dt/lib'` | ||
| 21 | |||
| 22 | /* Get rid of -traditional and let const really do its thing. */ | ||
| 23 | #undef C_SWITCH_SYSTEM | ||
| 24 | #undef const | ||
| 25 | #endif /* GCC */ | ||
| 26 | |||
| 27 | /* Gregory Neil Shapiro <gshapiro@hhmi.org> reports the Motif header files | ||
| 28 | are in this directory on Solaris 2.4. */ | ||
| 29 | #define C_SWITCH_X_SYSTEM -I/usr/dt/include | ||
| 30 | |||
| 31 | /* arch-tag: 6f0de37b-cfda-427a-a5ae-b83ed54aaae7 | ||
| 32 | (do not change this comment) */ | ||
diff --git a/src/s/sol2-5.h b/src/s/sol2-5.h deleted file mode 100644 index 90163987e69..00000000000 --- a/src/s/sol2-5.h +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | /* Handle Solaris 2.5. */ | ||
| 2 | |||
| 3 | #include "sol2-4.h" | ||
| 4 | |||
| 5 | /* -lgen is needed for the regex and regcmp functions | ||
| 6 | which are used by Motif. In the future we can try changing | ||
| 7 | regex.c to provide them in Emacs, but this is safer for now. */ | ||
| 8 | #define LIB_MOTIF -lXm -lgen | ||
| 9 | |||
| 10 | /* This is the only known way to avoid some crashes | ||
| 11 | that seem to relate to screwed up malloc data | ||
| 12 | after deleting a frame. */ | ||
| 13 | /* rms: I think the problems using ralloc had to do with system | ||
| 14 | libraries that called the system malloc even if we linked in the | ||
| 15 | GNU malloc. I could not see any way to fix the problem except to | ||
| 16 | have just one malloc and that had to be the system one. */ | ||
| 17 | /* This is not always necessary. Turned off at present for testers to | ||
| 18 | identify any problems with gmalloc more accurately. */ | ||
| 19 | /* #define SYSTEM_MALLOC */ | ||
| 20 | |||
| 21 | /* There have problems reported with mmap at least on Solaris 2.6 | ||
| 22 | and 2.7. For simplicity, let's not use mmap for anything >= 2.5. | ||
| 23 | We can optimize this later. */ | ||
| 24 | |||
| 25 | #undef USE_MMAP_FOR_BUFFERS | ||
| 26 | |||
| 27 | /* Probably OK also on earlier versions. */ | ||
| 28 | #define GC_SETJMP_WORKS 1 | ||
| 29 | #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS | ||
| 30 | |||
| 31 | /* arch-tag: 96d65526-21c9-4547-a797-2bd575c05be7 | ||
| 32 | (do not change this comment) */ | ||
diff --git a/src/s/sol2-6.h b/src/s/sol2-6.h index a43443e48c2..8cd01511879 100644 --- a/src/s/sol2-6.h +++ b/src/s/sol2-6.h | |||
| @@ -1,11 +1,126 @@ | |||
| 1 | /* Handle Solaris 2.6. */ | 1 | /* Definitions file for GNU Emacs running on Solaris 2.6. |
| 2 | 2 | ||
| 3 | #include "sol2-5.h" | 3 | Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, |
| 4 | 2008, 2009, 2010 Free Software Foundation, Inc. | ||
| 4 | 5 | ||
| 5 | #if 0 /* dldump does not handle all the extensions used by GNU ld. */ | 6 | This file is part of GNU Emacs. |
| 6 | #undef UNEXEC | 7 | |
| 7 | #define UNEXEC unexsol.o | 8 | GNU Emacs is free software: you can redistribute it and/or modify |
| 9 | it under the terms of the GNU General Public License as published by | ||
| 10 | the Free Software Foundation, either version 3 of the License, or | ||
| 11 | (at your option) any later version. | ||
| 12 | |||
| 13 | GNU Emacs is distributed in the hope that it will be useful, | ||
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 16 | GNU General Public License for more details. | ||
| 17 | |||
| 18 | You should have received a copy of the GNU General Public License | ||
| 19 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | ||
| 20 | |||
| 21 | #include "usg5-4.h" | ||
| 22 | |||
| 23 | #define SOLARIS2 | ||
| 24 | |||
| 25 | /* This triggers a conditional in xfaces.c. */ | ||
| 26 | #define XOS_NEEDS_TIME_H | ||
| 27 | |||
| 28 | #define POSIX | ||
| 29 | |||
| 30 | #define LIBS_SYSTEM -lsocket -lnsl -lkstat | ||
| 31 | |||
| 32 | /* Prefer kstat over kvm in getloadavg.c, kstat doesn't require root. | ||
| 33 | ghazi@caip.rutgers.edu, 7/21/97. Don't redefine if already defined | ||
| 34 | (e.g., by config.h). */ | ||
| 35 | #ifndef HAVE_LIBKSTAT | ||
| 36 | #define HAVE_LIBKSTAT | ||
| 37 | #endif | ||
| 38 | |||
| 39 | /* inoue@ainet.or.jp says Solaris has a bug related to X11R6-style | ||
| 40 | XIM support. */ | ||
| 41 | |||
| 42 | #define INHIBIT_X11R6_XIM | ||
| 43 | |||
| 44 | /* Must use the system's termcap, if we use any termcap. | ||
| 45 | It does special things. */ | ||
| 46 | |||
| 47 | #ifndef TERMINFO | ||
| 48 | #define LIBS_TERMCAP -ltermcap | ||
| 8 | #endif | 49 | #endif |
| 9 | 50 | ||
| 51 | #ifndef __GNUC__ | ||
| 52 | /* eggert thinks all versions of SunPro C allowed this. */ | ||
| 53 | #define C_DEBUG_SWITCH -g -O | ||
| 54 | #endif /* GCC */ | ||
| 55 | |||
| 56 | /* This is the same definition as in usg5-4.h, but with sigblock/sigunblock | ||
| 57 | rather than sighold/sigrelse, which appear to be BSD4.1 specific and won't | ||
| 58 | work if POSIX_SIGNALS is defined. It may also be appropriate for SVR4.x | ||
| 59 | (x<2) but I'm not sure. fnf@cygnus.com */ | ||
| 60 | /* This sets the name of the slave side of the PTY. On SysVr4, | ||
| 61 | grantpt(3) forks a subprocess, so keep sigchld_handler() from | ||
| 62 | intercepting that death. If any child but grantpt's should die | ||
| 63 | within, it should be caught after sigrelse(2). */ | ||
| 64 | |||
| 65 | #define PTY_TTY_NAME_SPRINTF \ | ||
| 66 | { \ | ||
| 67 | char *ptsname (), *ptyname; \ | ||
| 68 | \ | ||
| 69 | sigblock (sigmask (SIGCLD)); \ | ||
| 70 | if (grantpt (fd) == -1) \ | ||
| 71 | { emacs_close (fd); return -1; } \ | ||
| 72 | sigunblock (sigmask (SIGCLD)); \ | ||
| 73 | if (unlockpt (fd) == -1) \ | ||
| 74 | { emacs_close (fd); return -1; } \ | ||
| 75 | if (!(ptyname = ptsname (fd))) \ | ||
| 76 | { emacs_close (fd); return -1; } \ | ||
| 77 | strncpy (pty_name, ptyname, sizeof (pty_name)); \ | ||
| 78 | pty_name[sizeof (pty_name) - 1] = 0; \ | ||
| 79 | } | ||
| 80 | |||
| 81 | /* `#ifdef USE_MOTIF' won't work here, since USE_MOTIF isn't defined yet. | ||
| 82 | Instead, dynamically check whether USE_MOTIF expands to something. */ | ||
| 83 | #define NOT_USING_MOTIF { set x USE_MOTIF; test "$$2" = "USE_MOTIF"; } | ||
| 84 | |||
| 85 | #ifndef __GNUC__ | ||
| 86 | #define LD_SWITCH_SYSTEM_TEMACS -L/usr/ccs/lib LD_SWITCH_X_SITE_AUX \ | ||
| 87 | `NOT_USING_MOTIF || echo ' -R/usr/dt/lib'` | ||
| 88 | #else /* GCC */ | ||
| 89 | /* We use ./prefix-args because we don't know whether LD_SWITCH_X_SITE_AUX | ||
| 90 | has anything in it. It can be empty. | ||
| 91 | This works ok in temacs. */ | ||
| 92 | #define LD_SWITCH_SYSTEM_TEMACS -L/usr/ccs/lib \ | ||
| 93 | `./prefix-args -Xlinker LD_SWITCH_X_SITE_AUX` \ | ||
| 94 | `NOT_USING_MOTIF || echo ' -R/usr/dt/lib -L/usr/dt/lib'` | ||
| 95 | |||
| 96 | /* Get rid of -traditional and let const really do its thing. */ | ||
| 97 | #undef C_SWITCH_SYSTEM | ||
| 98 | #undef const | ||
| 99 | #endif /* GCC */ | ||
| 100 | |||
| 101 | /* Gregory Neil Shapiro <gshapiro@hhmi.org> reports the Motif header files | ||
| 102 | are in this directory on Solaris 2.4. */ | ||
| 103 | #define C_SWITCH_X_SYSTEM -I/usr/dt/include | ||
| 104 | |||
| 105 | /* -lgen is needed for the regex and regcmp functions | ||
| 106 | which are used by Motif. In the future we can try changing | ||
| 107 | regex.c to provide them in Emacs, but this is safer for now. */ | ||
| 108 | #define LIB_MOTIF -lXm -lgen | ||
| 109 | |||
| 110 | /* This is the only known way to avoid some crashes | ||
| 111 | that seem to relate to screwed up malloc data | ||
| 112 | after deleting a frame. */ | ||
| 113 | /* rms: I think the problems using ralloc had to do with system | ||
| 114 | libraries that called the system malloc even if we linked in the | ||
| 115 | GNU malloc. I could not see any way to fix the problem except to | ||
| 116 | have just one malloc and that had to be the system one. */ | ||
| 117 | /* This is not always necessary. Turned off at present for testers to | ||
| 118 | identify any problems with gmalloc more accurately. */ | ||
| 119 | /* #define SYSTEM_MALLOC */ | ||
| 120 | |||
| 121 | /* Probably OK also on earlier versions. */ | ||
| 122 | #define GC_SETJMP_WORKS 1 | ||
| 123 | #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS | ||
| 124 | |||
| 10 | /* arch-tag: 71ea3857-89dc-4395-9623-77964e6ed3ca | 125 | /* arch-tag: 71ea3857-89dc-4395-9623-77964e6ed3ca |
| 11 | (do not change this comment) */ | 126 | (do not change this comment) */ |
diff --git a/src/s/unixware.h b/src/s/unixware.h index 934821dd166..9fedb426868 100644 --- a/src/s/unixware.h +++ b/src/s/unixware.h | |||
| @@ -1,4 +1,71 @@ | |||
| 1 | #include "usg5-4-2.h" | 1 | /* s/ file for Unixware. |
| 2 | |||
| 3 | Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, | ||
| 4 | 2008, 2009, 2010 Free Software Foundation, Inc. | ||
| 5 | |||
| 6 | This file is part of GNU Emacs. | ||
| 7 | |||
| 8 | GNU Emacs is free software: you can redistribute it and/or modify | ||
| 9 | it under the terms of the GNU General Public License as published by | ||
| 10 | the Free Software Foundation, either version 3 of the License, or | ||
| 11 | (at your option) any later version. | ||
| 12 | |||
| 13 | GNU Emacs is distributed in the hope that it will be useful, | ||
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 16 | GNU General Public License for more details. | ||
| 17 | |||
| 18 | You should have received a copy of the GNU General Public License | ||
| 19 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | ||
| 20 | |||
| 21 | |||
| 22 | #include "usg5-4.h" | ||
| 23 | |||
| 24 | /* fnf@cygnus.com says these exist. */ | ||
| 25 | #define HAVE_TCATTR | ||
| 26 | /* #define HAVE_GETWD (appears to be buggy on SVR4.2) */ | ||
| 27 | #undef HAVE_GETWD | ||
| 28 | |||
| 29 | #undef HAVE_SYSV_SIGPAUSE | ||
| 30 | |||
| 31 | /* Motif needs -lgen. */ | ||
| 32 | #define LIBS_SYSTEM -lsocket -lnsl -lelf -lgen | ||
| 33 | |||
| 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 | ||
| 36 | work if POSIX_SIGNALS is defined. It may also be appropriate for SVR4.x | ||
| 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, | ||
| 39 | grantpt(3) forks a subprocess, so keep sigchld_handler() from | ||
| 40 | intercepting that death. If any child but grantpt's should die | ||
| 41 | within, it should be caught after sigrelse(2). */ | ||
| 42 | |||
| 43 | #define PTY_TTY_NAME_SPRINTF \ | ||
| 44 | { \ | ||
| 45 | char *ptsname(), *ptyname; \ | ||
| 46 | \ | ||
| 47 | sigblock(sigmask(SIGCLD)); \ | ||
| 48 | if (grantpt(fd) == -1) \ | ||
| 49 | fatal("could not grant slave pty"); \ | ||
| 50 | sigunblock(sigmask(SIGCLD)); \ | ||
| 51 | if (unlockpt(fd) == -1) \ | ||
| 52 | fatal("could not unlock slave pty"); \ | ||
| 53 | if (!(ptyname = ptsname(fd))) \ | ||
| 54 | fatal ("could not enable slave pty"); \ | ||
| 55 | strncpy(pty_name, ptyname, sizeof(pty_name)); \ | ||
| 56 | pty_name[sizeof(pty_name) - 1] = 0; \ | ||
| 57 | } | ||
| 58 | |||
| 59 | /* Use libw.a along with X11R6 Xt. */ | ||
| 60 | #define NEED_LIBW | ||
| 61 | |||
| 62 | /* ryanr@ellingtn.ftc.nrcs.usda.gov (Richard Anthony Ryan) says -lXimp | ||
| 63 | is needed in UNIX_SV ... 4.2 1.1.2. */ | ||
| 64 | #define LIB_MOTIF -lXm -lXimp | ||
| 65 | |||
| 66 | /* arch-tag: 9bbfcfc1-19be-45a1-9699-af57b87da2c6 | ||
| 67 | (do not change this comment) */ | ||
| 68 | |||
| 2 | 69 | ||
| 3 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base) | 70 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base) |
| 4 | 71 | ||
diff --git a/src/s/usg5-4-2.h b/src/s/usg5-4-2.h deleted file mode 100644 index d7f2c60ffc1..00000000000 --- a/src/s/usg5-4-2.h +++ /dev/null | |||
| @@ -1,73 +0,0 @@ | |||
| 1 | /* s/ file for System V release 4.2. | ||
| 2 | |||
| 3 | Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, | ||
| 4 | 2008, 2009, 2010 Free Software Foundation, Inc. | ||
| 5 | |||
| 6 | This file is part of GNU Emacs. | ||
| 7 | |||
| 8 | GNU Emacs is free software: you can redistribute it and/or modify | ||
| 9 | it under the terms of the GNU General Public License as published by | ||
| 10 | the Free Software Foundation, either version 3 of the License, or | ||
| 11 | (at your option) any later version. | ||
| 12 | |||
| 13 | GNU Emacs is distributed in the hope that it will be useful, | ||
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 16 | GNU General Public License for more details. | ||
| 17 | |||
| 18 | You should have received a copy of the GNU General Public License | ||
| 19 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | ||
| 20 | |||
| 21 | |||
| 22 | #include "usg5-4.h" | ||
| 23 | |||
| 24 | /* fnf@cygnus.com says these exist. */ | ||
| 25 | #define HAVE_TCATTR | ||
| 26 | /* #define HAVE_GETWD (appears to be buggy on SVR4.2) */ | ||
| 27 | #undef HAVE_GETWD | ||
| 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 | ||
| 35 | |||
| 36 | /* Motif needs -lgen. */ | ||
| 37 | #define LIBS_SYSTEM -lsocket -lnsl -lelf -lgen | ||
| 38 | |||
| 39 | /* This is the same definition as in usg5-4.h, but with sigblock/sigunblock | ||
| 40 | rather than sighold/sigrelse, which appear to be BSD4.1 specific and won't | ||
| 41 | work if POSIX_SIGNALS is defined. It may also be appropriate for SVR4.x | ||
| 42 | (x<2) but I'm not sure. fnf@cygnus.com */ | ||
| 43 | /* This sets the name of the slave side of the PTY. On SysVr4, | ||
| 44 | grantpt(3) forks a subprocess, so keep sigchld_handler() from | ||
| 45 | intercepting that death. If any child but grantpt's should die | ||
| 46 | within, it should be caught after sigrelse(2). */ | ||
| 47 | |||
| 48 | #undef PTY_TTY_NAME_SPRINTF | ||
| 49 | #define PTY_TTY_NAME_SPRINTF \ | ||
| 50 | { \ | ||
| 51 | char *ptsname(), *ptyname; \ | ||
| 52 | \ | ||
| 53 | sigblock(sigmask(SIGCLD)); \ | ||
| 54 | if (grantpt(fd) == -1) \ | ||
| 55 | fatal("could not grant slave pty"); \ | ||
| 56 | sigunblock(sigmask(SIGCLD)); \ | ||
| 57 | if (unlockpt(fd) == -1) \ | ||
| 58 | fatal("could not unlock slave pty"); \ | ||
| 59 | if (!(ptyname = ptsname(fd))) \ | ||
| 60 | fatal ("could not enable slave pty"); \ | ||
| 61 | strncpy(pty_name, ptyname, sizeof(pty_name)); \ | ||
| 62 | pty_name[sizeof(pty_name) - 1] = 0; \ | ||
| 63 | } | ||
| 64 | |||
| 65 | /* Use libw.a along with X11R6 Xt. */ | ||
| 66 | #define NEED_LIBW | ||
| 67 | |||
| 68 | /* ryanr@ellingtn.ftc.nrcs.usda.gov (Richard Anthony Ryan) says -lXimp | ||
| 69 | is needed in UNIX_SV ... 4.2 1.1.2. */ | ||
| 70 | #define LIB_MOTIF -lXm -lXimp | ||
| 71 | |||
| 72 | /* arch-tag: 9bbfcfc1-19be-45a1-9699-af57b87da2c6 | ||
| 73 | (do not change this comment) */ | ||
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 \ |