diff options
| author | Dan Nicolaescu | 2008-07-12 05:31:23 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-07-12 05:31:23 +0000 |
| commit | bba104c11e882cd9ea7c2c9ec4cf79b7f152d5ff (patch) | |
| tree | 6cae6cf2406e44c00e2ae670a4555f741bdb01d4 /src/s | |
| parent | 2f4ec7ce4fe0cb5036a919abdc101a611202ffd2 (diff) | |
| download | emacs-bba104c11e882cd9ea7c2c9ec4cf79b7f152d5ff.tar.gz emacs-bba104c11e882cd9ea7c2c9ec4cf79b7f152d5ff.zip | |
* syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
always defined as int.
* s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
* s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
* s/gnu-linux.h (HAVE_WAIT_HEADER):
* s/freebsd.h (HAVE_WAIT_HEADER):
* s/bsd-common.h (HAVE_UNION_WAIT):
* s/aix4-2.h (HAVE_WAIT_HEADER):
* m/mips.h (HAVE_UNION_WAIT):
* s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
(COFF, static): Do not define, they are undefined later in the file.
* process.c (update_status): Don't use a union.
(status_convert):
(sigchld_handler): Use int instead of WAITTYPE.
* movemail.c (main): Use int instead of WAITTYPE.
Diffstat (limited to 'src/s')
| -rw-r--r-- | src/s/aix4-2.h | 4 | ||||
| -rw-r--r-- | src/s/bsd-common.h | 4 | ||||
| -rw-r--r-- | src/s/freebsd.h | 1 | ||||
| -rw-r--r-- | src/s/gnu-linux.h | 2 | ||||
| -rw-r--r-- | src/s/gnu.h | 4 | ||||
| -rw-r--r-- | src/s/netbsd.h | 5 | ||||
| -rw-r--r-- | src/s/usg5-4.h | 19 |
7 files changed, 0 insertions, 39 deletions
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h index 9c075ead658..c435687bef1 100644 --- a/src/s/aix4-2.h +++ b/src/s/aix4-2.h | |||
| @@ -172,10 +172,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 172 | #define POSIX_SIGNALS | 172 | #define POSIX_SIGNALS |
| 173 | #undef sigmask | 173 | #undef sigmask |
| 174 | 174 | ||
| 175 | /* Dave Love <d.love@dl.ac.uk> reported this as needed on AIX 4.1. | ||
| 176 | It is just a guess which versions of AIX need this definition. */ | ||
| 177 | #define HAVE_WAIT_HEADER | ||
| 178 | |||
| 179 | /* olson@mcs.anl.gov says -li18n is needed by -lXm. */ | 175 | /* olson@mcs.anl.gov says -li18n is needed by -lXm. */ |
| 180 | #define LIB_MOTIF -lXm -li18n | 176 | #define LIB_MOTIF -lXm -li18n |
| 181 | 177 | ||
diff --git a/src/s/bsd-common.h b/src/s/bsd-common.h index 2a94916eb19..d0d374c8410 100644 --- a/src/s/bsd-common.h +++ b/src/s/bsd-common.h | |||
| @@ -59,10 +59,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 59 | 59 | ||
| 60 | #define HAVE_PTYS | 60 | #define HAVE_PTYS |
| 61 | 61 | ||
| 62 | /* Define this macro if system defines a type `union wait'. */ | ||
| 63 | |||
| 64 | #define HAVE_UNION_WAIT | ||
| 65 | |||
| 66 | /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */ | 62 | /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */ |
| 67 | 63 | ||
| 68 | #define HAVE_SOCKETS | 64 | #define HAVE_SOCKETS |
diff --git a/src/s/freebsd.h b/src/s/freebsd.h index 779d944b6f6..aa7c21b59a5 100644 --- a/src/s/freebsd.h +++ b/src/s/freebsd.h | |||
| @@ -110,7 +110,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 110 | 110 | ||
| 111 | #define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_1 -L/usr/local/lib | 111 | #define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_1 -L/usr/local/lib |
| 112 | 112 | ||
| 113 | #define HAVE_WAIT_HEADER | ||
| 114 | #define HAVE_GETLOADAVG 1 | 113 | #define HAVE_GETLOADAVG 1 |
| 115 | #define HAVE_TERMIOS | 114 | #define HAVE_TERMIOS |
| 116 | #define NO_TERMIO | 115 | #define NO_TERMIO |
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index 39b9db496fc..4267da05d4e 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h | |||
| @@ -204,8 +204,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 204 | 204 | ||
| 205 | #define NO_SIOCTL_H /* don't have sioctl.h */ | 205 | #define NO_SIOCTL_H /* don't have sioctl.h */ |
| 206 | 206 | ||
| 207 | #define HAVE_WAIT_HEADER | ||
| 208 | |||
| 209 | #define SYSV_SYSTEM_DIR /* use dirent.h */ | 207 | #define SYSV_SYSTEM_DIR /* use dirent.h */ |
| 210 | 208 | ||
| 211 | #define POSIX /* affects getpagesize.h and systty.h */ | 209 | #define POSIX /* affects getpagesize.h and systty.h */ |
diff --git a/src/s/gnu.h b/src/s/gnu.h index b5a839ec98a..857bf70a9cc 100644 --- a/src/s/gnu.h +++ b/src/s/gnu.h | |||
| @@ -64,10 +64,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 64 | #undef REL_ALLOC | 64 | #undef REL_ALLOC |
| 65 | #endif | 65 | #endif |
| 66 | 66 | ||
| 67 | #define HAVE_WAIT_HEADER | ||
| 68 | #define WAIT_USE_INT | ||
| 69 | #define HAVE_UNION_WAIT | ||
| 70 | |||
| 71 | /* GNU needs its own crt0, and libc defines data_start. */ | 67 | /* GNU needs its own crt0, and libc defines data_start. */ |
| 72 | #define ORDINARY_LINK | 68 | #define ORDINARY_LINK |
| 73 | #define DATA_START ({ extern int data_start; (char *) &data_start; }) | 69 | #define DATA_START ({ extern int data_start; (char *) &data_start; }) |
diff --git a/src/s/netbsd.h b/src/s/netbsd.h index 951e00091fc..5a667e30d2d 100644 --- a/src/s/netbsd.h +++ b/src/s/netbsd.h | |||
| @@ -33,8 +33,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 33 | #undef LDAV_SYMBOL | 33 | #undef LDAV_SYMBOL |
| 34 | #define HAVE_GETLOADAVG 1 | 34 | #define HAVE_GETLOADAVG 1 |
| 35 | 35 | ||
| 36 | #define HAVE_UNION_WAIT | ||
| 37 | |||
| 38 | #define SIGNALS_VIA_CHARACTERS | 36 | #define SIGNALS_VIA_CHARACTERS |
| 39 | 37 | ||
| 40 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) | 38 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) |
| @@ -92,9 +90,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 92 | #define END_FILES_1 | 90 | #define END_FILES_1 |
| 93 | #endif | 91 | #endif |
| 94 | 92 | ||
| 95 | #define HAVE_WAIT_HEADER | ||
| 96 | #define WAIT_USE_INT | ||
| 97 | |||
| 98 | #define AMPERSAND_FULL_NAME | 93 | #define AMPERSAND_FULL_NAME |
| 99 | 94 | ||
| 100 | #ifdef __ELF__ | 95 | #ifdef __ELF__ |
diff --git a/src/s/usg5-4.h b/src/s/usg5-4.h index 84c357c02a2..2dac039c43b 100644 --- a/src/s/usg5-4.h +++ b/src/s/usg5-4.h | |||
| @@ -82,11 +82,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 82 | 82 | ||
| 83 | #define subprocesses | 83 | #define subprocesses |
| 84 | 84 | ||
| 85 | /* If your system uses COFF (Common Object File Format) then define the | ||
| 86 | preprocessor symbol "COFF". */ | ||
| 87 | |||
| 88 | #define COFF | ||
| 89 | |||
| 90 | /* define MAIL_USE_FLOCK if the mailer uses flock | 85 | /* define MAIL_USE_FLOCK if the mailer uses flock |
| 91 | to interlock access to /usr/spool/mail/$USER. | 86 | to interlock access to /usr/spool/mail/$USER. |
| 92 | The alternative is that a lock file named | 87 | The alternative is that a lock file named |
| @@ -137,12 +132,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 137 | #define rindex strrchr | 132 | #define rindex strrchr |
| 138 | #endif /* ! defined (HAVE_RINDEX) */ | 133 | #endif /* ! defined (HAVE_RINDEX) */ |
| 139 | 134 | ||
| 140 | /* USG systems tend to put everything declared static | ||
| 141 | into the initialized data area, which becomes pure after dumping Emacs. | ||
| 142 | Foil this. Emacs carefully avoids static vars inside functions. */ | ||
| 143 | |||
| 144 | #define static | ||
| 145 | |||
| 146 | /* Compiler bug bites on many systems when default ADDR_CORRECT is used. */ | 135 | /* Compiler bug bites on many systems when default ADDR_CORRECT is used. */ |
| 147 | 136 | ||
| 148 | #define ADDR_CORRECT(x) (x) | 137 | #define ADDR_CORRECT(x) (x) |
| @@ -185,12 +174,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 185 | 174 | ||
| 186 | #define UNEXEC unexelf.o | 175 | #define UNEXEC unexelf.o |
| 187 | 176 | ||
| 188 | /* <sys/stat.h> *defines* stat(2) as a static function. If "static" | ||
| 189 | * is blank, then many files will have a public definition for stat(2). | ||
| 190 | */ | ||
| 191 | |||
| 192 | #undef static | ||
| 193 | |||
| 194 | /* Get FIONREAD from <sys/filio.h>. Get <sys/ttold.h> to get struct | 177 | /* Get FIONREAD from <sys/filio.h>. Get <sys/ttold.h> to get struct |
| 195 | * tchars. But get <termio.h> first to make sure ttold.h doesn't | 178 | * tchars. But get <termio.h> first to make sure ttold.h doesn't |
| 196 | * interfere. And don't try to use SIGIO yet. | 179 | * interfere. And don't try to use SIGIO yet. |
| @@ -229,8 +212,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 229 | without clearing the SIGCHLD pending info. So, use a non-blocking | 212 | without clearing the SIGCHLD pending info. So, use a non-blocking |
| 230 | wait3 instead, which maps to waitpid(2) in SysVr4. */ | 213 | wait3 instead, which maps to waitpid(2) in SysVr4. */ |
| 231 | 214 | ||
| 232 | #define HAVE_WAIT_HEADER | ||
| 233 | #define WAITTYPE int | ||
| 234 | #define wait3(status, options, rusage) \ | 215 | #define wait3(status, options, rusage) \ |
| 235 | waitpid ((pid_t) -1, (status), (options)) | 216 | waitpid ((pid_t) -1, (status), (options)) |
| 236 | #define WRETCODE(w) (w >> 8) | 217 | #define WRETCODE(w) (w >> 8) |