# HG changeset patch # User Karl Heuer # Date 842931834 0 # Node ID 02044b05d8e0a9c3dc8bf4449de62e105576159c # Parent 7f3f182f20a347068550b0b00b2623f387604a7d Replaced symbol BSD with BSD_SYSTEM. diff -r 7f3f182f20a3 -r 02044b05d8e0 src/floatfns.c --- a/src/floatfns.c Tue Sep 17 02:56:22 1996 +0000 +++ b/src/floatfns.c Tue Sep 17 03:43:54 1996 +0000 @@ -885,7 +885,7 @@ if (! in_float) fatal_error_signal (signo); -#ifdef BSD +#ifdef BSD_SYSTEM #ifdef BSD4_1 sigrelse (SIGILL); #else /* not BSD4_1 */ @@ -894,7 +894,7 @@ #else /* Must reestablish handler each time it is called. */ signal (SIGILL, float_error); -#endif /* BSD */ +#endif /* BSD_SYSTEM */ in_float = 0; diff -r 7f3f182f20a3 -r 02044b05d8e0 src/keyboard.c --- a/src/keyboard.c Tue Sep 17 02:56:22 1996 +0000 +++ b/src/keyboard.c Tue Sep 17 03:43:54 1996 +0000 @@ -7321,7 +7321,7 @@ Lisp_Object stuffstring; { /* stuff_char works only in BSD, versions 4.2 and up. */ -#ifdef BSD +#ifdef BSD_SYSTEM #ifndef BSD4_1 register unsigned char *p; @@ -7351,7 +7351,7 @@ } input_pending = 0; #endif -#endif /* BSD and not BSD4_1 */ +#endif /* BSD_SYSTEM and not BSD4_1 */ } set_waiting_for_input (time_to_clear) diff -r 7f3f182f20a3 -r 02044b05d8e0 src/m/intel386.h --- a/src/m/intel386.h Tue Sep 17 02:56:22 1996 +0000 +++ b/src/m/intel386.h Tue Sep 17 03:43:54 1996 +0000 @@ -200,9 +200,9 @@ #endif /* USG */ #endif /* not XENIX */ -#ifdef BSD +#ifdef BSD_SYSTEM #define HAVE_ALLOCA -#endif /* BSD */ +#endif /* BSD_SYSTEM */ /* If compiling with GCC, let GCC implement alloca. */ #if defined(__GNUC__) && !defined(alloca) diff -r 7f3f182f20a3 -r 02044b05d8e0 src/m/mips.h --- a/src/m/mips.h Tue Sep 17 02:56:22 1996 +0000 +++ b/src/m/mips.h Tue Sep 17 03:43:54 1996 +0000 @@ -130,7 +130,7 @@ /* Alter some of the options used when linking. */ #ifndef NEWSOS5 -#ifdef BSD +#ifdef BSD_SYSTEM /* DECstations don't have this library. #define LIBS_MACHINE -lmld */ @@ -140,7 +140,7 @@ #define LINKER /bsd43/bin/ld -#else /* not BSD */ +#else /* not BSD_SYSTEM */ #if defined(__GNUC__) && defined(_ABIN32) #define LIBS_MACHINE @@ -160,7 +160,7 @@ #define HAVE_VFORK /* Graciously provided by libX.a */ #endif -#endif /* not BSD */ +#endif /* not BSD_SYSTEM */ #endif /* not NEWSOS5 */ /* The standard definitions of these macros would work ok, @@ -214,11 +214,11 @@ #endif /* USG */ -#ifdef BSD +#ifdef BSD_SYSTEM #define COFF #define TERMINFO #undef MAIL_USE_FLOCK /* Someone should check this. */ #undef HAVE_UNION_WAIT -#endif /* BSD */ +#endif /* BSD_SYSTEM */ #endif /* not NEWSOS5 */ diff -r 7f3f182f20a3 -r 02044b05d8e0 src/m/mips4.h --- a/src/m/mips4.h Tue Sep 17 02:56:22 1996 +0000 +++ b/src/m/mips4.h Tue Sep 17 03:43:54 1996 +0000 @@ -50,8 +50,8 @@ #define NO_MODE_T /* These are needed on Riscos 4.0. - It appears that's the only system which uses mips4.h and defined BSD. */ -#ifdef BSD + It appears that's the only system which uses mips4.h and defines BSD. */ +#ifdef BSD_SYSTEM #undef HAVE_STRERROR #undef HAVE_XRMSETDATABASE #undef HAVE_XSCREENRESOURCESTRING diff -r 7f3f182f20a3 -r 02044b05d8e0 src/m/vax.h --- a/src/m/vax.h Tue Sep 17 02:56:22 1996 +0000 +++ b/src/m/vax.h Tue Sep 17 03:43:54 1996 +0000 @@ -70,7 +70,7 @@ #define DOT_GLOBAL_START -#ifdef BSD +#ifdef BSD_SYSTEM /* USG systems I know of running on Vaxes do not actually support the load average, so disable it for them. */ @@ -82,7 +82,7 @@ #define LOAD_AVE_CVT(x) ((int) ((x) * 100.0)) -#endif /* BSD */ +#endif /* BSD_SYSTEM */ #ifdef VMS @@ -111,9 +111,9 @@ #define TEXT_START 0 #endif /* USG */ -#ifdef BSD +#ifdef BSD_SYSTEM #define HAVE_ALLOCA -#endif /* BSD */ +#endif /* BSD_SYSTEM */ #ifdef VMS #define C_ALLOCA diff -r 7f3f182f20a3 -r 02044b05d8e0 src/mem-limits.h --- a/src/mem-limits.h Tue Sep 17 02:56:22 1996 +0000 +++ b/src/mem-limits.h Tue Sep 17 03:43:54 1996 +0000 @@ -83,7 +83,7 @@ #define EXCEEDS_LISP_PTR(ptr) ((EMACS_UINT) (ptr) >> VALBITS) #endif -#ifdef BSD +#ifdef BSD_SYSTEM #ifndef DATA_SEG_BITS extern char etext; #define start_of_data() &etext diff -r 7f3f182f20a3 -r 02044b05d8e0 src/process.c --- a/src/process.c Tue Sep 17 02:56:22 1996 +0000 +++ b/src/process.c Tue Sep 17 03:43:54 1996 +0000 @@ -73,12 +73,12 @@ #define NUMERIC_ADDR_ERROR (numeric_addr == -1) #endif -#if defined(BSD) || defined(STRIDE) +#if defined(BSD_SYSTEM) || defined(STRIDE) #include #if !defined (O_NDELAY) && defined (HAVE_PTYS) && !defined(USG5) #include #endif /* HAVE_PTYS and no O_NDELAY */ -#endif /* BSD or STRIDE */ +#endif /* BSD_SYSTEM || STRIDE */ #ifdef BROKEN_O_NONBLOCK #undef O_NONBLOCK @@ -1334,7 +1334,7 @@ #ifdef BSD4_1 sighold (SIGCHLD); #else /* not BSD4_1 */ -#if defined (BSD) || defined (UNIPLUS) || defined (HPUX) +#if defined (BSD_SYSTEM) || defined (UNIPLUS) || defined (HPUX) sigsetmask (sigmask (SIGCHLD)); #else /* ordinary USG */ #if 0 @@ -1504,7 +1504,7 @@ #ifdef BSD4_1 sigrelse (SIGCHLD); #else /* not BSD4_1 */ -#if defined (BSD) || defined (UNIPLUS) || defined (HPUX) +#if defined (BSD_SYSTEM) || defined (UNIPLUS) || defined (HPUX) sigsetmask (SIGEMPTYMASK); #else /* ordinary USG */ #if 0 @@ -1585,7 +1585,7 @@ #ifdef BSD4_1 sigrelse (SIGCHLD); #else /* not BSD4_1 */ -#if defined (BSD) || defined (UNIPLUS) || defined (HPUX) +#if defined (BSD_SYSTEM) || defined (UNIPLUS) || defined (HPUX) sigsetmask (SIGEMPTYMASK); #else /* ordinary USG */ #if 0 diff -r 7f3f182f20a3 -r 02044b05d8e0 src/s/bsd386.h --- a/src/s/bsd386.h Tue Sep 17 02:56:22 1996 +0000 +++ b/src/s/bsd386.h Tue Sep 17 03:43:54 1996 +0000 @@ -34,7 +34,7 @@ /* This silences a few compilation warnings. */ #ifdef emacs -#undef BSD +#undef BSD_SYSTEM #include /* To get BSD defined consistently. */ #endif diff -r 7f3f182f20a3 -r 02044b05d8e0 src/s/bsd4-1.h --- a/src/s/bsd4-1.h Tue Sep 17 02:56:22 1996 +0000 +++ b/src/s/bsd4-1.h Tue Sep 17 03:43:54 1996 +0000 @@ -26,7 +26,7 @@ #define BSD4_1 -#define BSD +#define BSD_SYSTEM /* SYSTEM_TYPE should indicate the kind of system you are using. It sets the Lisp variable system-type. */ diff -r 7f3f182f20a3 -r 02044b05d8e0 src/s/bsd4-2.h --- a/src/s/bsd4-2.h Tue Sep 17 02:56:22 1996 +0000 +++ b/src/s/bsd4-2.h Tue Sep 17 03:43:54 1996 +0000 @@ -28,9 +28,9 @@ #define BSD4_2 1 #endif /* BSD4_2 */ -#ifndef BSD -#define BSD 42 -#endif /* BSD */ +#ifndef BSD_SYSTEM +#define BSD_SYSTEM 42 +#endif /* BSD_SYSTEM */ /* SYSTEM_TYPE should indicate the kind of system you are using. It sets the Lisp variable system-type. */ diff -r 7f3f182f20a3 -r 02044b05d8e0 src/s/bsd4-3.h --- a/src/s/bsd4-3.h Tue Sep 17 02:56:22 1996 +0000 +++ b/src/s/bsd4-3.h Tue Sep 17 03:43:54 1996 +0000 @@ -30,9 +30,9 @@ #define BSD4_3 1 #endif /* BSD4_3 */ -#ifndef BSD -#define BSD 43 -#endif /* BSD */ +#ifndef BSD_SYSTEM +#define BSD_SYSTEM 43 +#endif /* BSD_SYSTEM */ /* SYSTEM_TYPE should indicate the kind of system you are using. It sets the Lisp variable system-type. */ diff -r 7f3f182f20a3 -r 02044b05d8e0 src/s/cxux.h --- a/src/s/cxux.h Tue Sep 17 02:56:22 1996 +0000 +++ b/src/s/cxux.h Tue Sep 17 03:43:54 1996 +0000 @@ -32,7 +32,7 @@ /* #define BSD4_1 */ /* #define BSD4_2 */ /* #define BSD4_3 */ -/* #define BSD */ +/* #define BSD_SYSTEM */ /* #define VMS */ #ifndef _CX_UX diff -r 7f3f182f20a3 -r 02044b05d8e0 src/s/freebsd.h --- a/src/s/freebsd.h Tue Sep 17 02:56:22 1996 +0000 +++ b/src/s/freebsd.h Tue Sep 17 03:43:54 1996 +0000 @@ -75,11 +75,11 @@ #define TAB3 OXTABS /* this silences a few compilation warnings */ -#undef BSD +#undef BSD_SYSTEM #if __FreeBSD__ == 1 -#define BSD 199103 +#define BSD_SYSTEM 199103 #elif __FreeBSD__ == 2 -#define BSD 199306 +#define BSD_SYSTEM 199306 #endif #define WAITTYPE int diff -r 7f3f182f20a3 -r 02044b05d8e0 src/s/msdos.h --- a/src/s/msdos.h Tue Sep 17 02:56:22 1996 +0000 +++ b/src/s/msdos.h Tue Sep 17 03:43:54 1996 +0000 @@ -35,7 +35,7 @@ /* #define BSD4_1 */ /* #define BSD4_2 */ /* #define BSD4_3 */ -/* #define BSD */ +/* #define BSD_SYSTEM */ /* #define VMS */ #ifndef MSDOS #define MSDOS @@ -50,7 +50,7 @@ #endif #define DOS_NT /* MSDOS or WINDOWSNT */ -#undef BSD +#undef BSD_SYSTEM #undef VMS /* SYSTEM_TYPE should indicate the kind of system you are using. diff -r 7f3f182f20a3 -r 02044b05d8e0 src/s/rtu.h --- a/src/s/rtu.h Tue Sep 17 02:56:22 1996 +0000 +++ b/src/s/rtu.h Tue Sep 17 03:43:54 1996 +0000 @@ -25,7 +25,7 @@ */ #define BSD4_2 -#define BSD +#define BSD_SYSTEM #define RTU /* SYSTEM_TYPE should indicate the kind of system you are using. diff -r 7f3f182f20a3 -r 02044b05d8e0 src/s/umax.h --- a/src/s/umax.h Tue Sep 17 02:56:22 1996 +0000 +++ b/src/s/umax.h Tue Sep 17 03:43:54 1996 +0000 @@ -30,7 +30,7 @@ /* #define BSD4_1 */ #define BSD4_2 /* #define BSD4_3 */ -#define BSD +#define BSD_SYSTEM #define UMAX4_2 #define UMAX /* #define VMS */ diff -r 7f3f182f20a3 -r 02044b05d8e0 src/s/umips.h --- a/src/s/umips.h Tue Sep 17 02:56:22 1996 +0000 +++ b/src/s/umips.h Tue Sep 17 03:43:54 1996 +0000 @@ -1,8 +1,9 @@ /* Definitions file for GNU Emacs running on Mips operating system. That system can emulate either BSD or Sys V, in either case with changes. - If BSD is defined, we assume BSD is being emulated; otherwise, Sys V. */ + If BSD_SYSTEM is defined, we assume BSD is being emulated; otherwise, + Sys V. */ -#ifdef BSD +#ifdef BSD_SYSTEM #include "bsd4-3.h" #define C_SWITCH_SYSTEM -systype bsd43 @@ -17,7 +18,7 @@ #undef MAIL_USE_FLOCK /* Someone should check this. */ #undef HAVE_UNION_WAIT -#else /* not BSD */ +#else /* not BSD_SYSTEM */ #include "usg5-2-2.h" @@ -70,7 +71,7 @@ /* ??? */ #define IRIS -#endif /* not BSD */ +#endif /* not BSD_SYSTEM */ /* High order bit must be stripped off nlist return values */ #define FIXUP_KERNEL_SYMBOL_ADDR(NL) (NL)[0].n_value &= 0x7fffffff; diff -r 7f3f182f20a3 -r 02044b05d8e0 src/syssignal.h --- a/src/syssignal.h Tue Sep 17 02:56:22 1996 +0000 +++ b/src/syssignal.h Tue Sep 17 03:43:54 1996 +0000 @@ -127,7 +127,7 @@ /* On bsd, [man says] kill does not accept a negative number to kill a pgrp. Must do that using the killpg call. */ -#ifdef BSD +#ifdef BSD_SYSTEM #define EMACS_KILLPG(gid, signo) (killpg ( (gid), (signo))) #else #ifdef WINDOWSNT diff -r 7f3f182f20a3 -r 02044b05d8e0 src/syswait.h --- a/src/syswait.h Tue Sep 17 02:56:22 1996 +0000 +++ b/src/syswait.h Tue Sep 17 03:43:54 1996 +0000 @@ -34,7 +34,7 @@ #else /* not WAIT_USE_INT */ -#if (!defined (BSD) && !defined (UNIPLUS) && !defined (STRIDE) && !(defined (HPUX) && !defined (NOMULTIPLEJOBS)) && !defined (HAVE_WAIT_HEADER)) +#if (!defined (BSD_SYSTEM) && !defined (UNIPLUS) && !defined (STRIDE) && !(defined (HPUX) && !defined (NOMULTIPLEJOBS)) && !defined (HAVE_WAIT_HEADER)) #define WAITTYPE int #define WIFSTOPPED(w) ((w&0377) == 0177) #define WIFSIGNALED(w) ((w&0377) != 0177 && (w&~0377) == 0) @@ -84,7 +84,7 @@ #ifndef WIFEXITED #define WIFEXITED(w) (WTERMSIG (w) == 0) #endif -#endif /* BSD or UNIPLUS or STRIDE */ +#endif /* BSD_SYSTEM || UNIPLUS || STRIDE || HPUX */ #endif /* not WAIT_USE_INT */ #endif /* no WAITTYPE */ diff -r 7f3f182f20a3 -r 02044b05d8e0 src/xterm.c --- a/src/xterm.c Tue Sep 17 02:56:22 1996 +0000 +++ b/src/xterm.c Tue Sep 17 03:43:54 1996 +0000 @@ -51,9 +51,9 @@ #endif /* makedev */ #endif /* USG */ -#ifdef BSD +#ifdef BSD_SYSTEM #include -#endif /* ! defined (BSD) */ +#endif /* ! defined (BSD_SYSTEM) */ #include "systty.h" #include "systime.h"