diff options
| author | Joakim Verona | 2011-06-16 00:22:07 +0200 |
|---|---|---|
| committer | Joakim Verona | 2011-06-16 00:22:07 +0200 |
| commit | a7513ade3bc0fe79430d5541d88c9dcda0932bec (patch) | |
| tree | 4383951ba698a11e9f8933a9d8c72e00aa872a10 /src/s | |
| parent | 4bd51ad5c3445b644dfb017d5b57b10a90aa325f (diff) | |
| parent | 4bba86e6210a74326e843a8fdc8409127105e1fe (diff) | |
| download | emacs-a7513ade3bc0fe79430d5541d88c9dcda0932bec.tar.gz emacs-a7513ade3bc0fe79430d5541d88c9dcda0932bec.zip | |
merge from upstream
Diffstat (limited to 'src/s')
| -rw-r--r-- | src/s/aix4-2.h | 9 | ||||
| -rw-r--r-- | src/s/bsd-common.h | 11 | ||||
| -rw-r--r-- | src/s/cygwin.h | 3 | ||||
| -rw-r--r-- | src/s/darwin.h | 3 | ||||
| -rw-r--r-- | src/s/freebsd.h | 2 | ||||
| -rw-r--r-- | src/s/gnu-linux.h | 2 | ||||
| -rw-r--r-- | src/s/hpux10-20.h | 21 | ||||
| -rw-r--r-- | src/s/irix6-5.h | 3 | ||||
| -rw-r--r-- | src/s/ms-w32.h | 5 | ||||
| -rw-r--r-- | src/s/msdos.h | 17 | ||||
| -rw-r--r-- | src/s/netbsd.h | 3 | ||||
| -rw-r--r-- | src/s/sol2-6.h | 3 | ||||
| -rw-r--r-- | src/s/template.h | 9 | ||||
| -rw-r--r-- | src/s/unixware.h | 12 | ||||
| -rw-r--r-- | src/s/usg5-4-common.h | 16 |
15 files changed, 29 insertions, 90 deletions
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h index c62aee249c5..c2715fffe01 100644 --- a/src/s/aix4-2.h +++ b/src/s/aix4-2.h | |||
| @@ -32,7 +32,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 32 | 32 | ||
| 33 | /* In AIX, you allocate a pty by opening /dev/ptc to get the master side. | 33 | /* In AIX, you allocate a pty by opening /dev/ptc to get the master side. |
| 34 | To get the name of the slave side, you just ttyname() the master side. */ | 34 | To get the name of the slave side, you just ttyname() the master side. */ |
| 35 | #define PTY_ITERATION for (c = 0; !c ; c++) | 35 | #define PTY_ITERATION int c; for (c = 0; !c ; c++) |
| 36 | #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptc"); | 36 | #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptc"); |
| 37 | #define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd)); | 37 | #define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd)); |
| 38 | 38 | ||
| @@ -41,12 +41,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 41 | 41 | ||
| 42 | /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */ | 42 | /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */ |
| 43 | #define HAVE_SOCKETS | 43 | #define HAVE_SOCKETS |
| 44 | |||
| 45 | /* The file containing the kernel's symbol table is called /unix. */ | ||
| 46 | #define KERNEL_FILE "/unix" | ||
| 47 | |||
| 48 | /* The kernel symbol where the load average is found is named avenrun. */ | ||
| 49 | #define LDAV_SYMBOL "avenrun" | ||
| 50 | 44 | ||
| 51 | /* Special items needed to make Emacs run on this system. */ | 45 | /* Special items needed to make Emacs run on this system. */ |
| 52 | 46 | ||
| @@ -86,4 +80,3 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 86 | Emacs currently calls xrealloc on the results of get_current_dir name, | 80 | Emacs currently calls xrealloc on the results of get_current_dir name, |
| 87 | to avoid a crash just use the Emacs implementation for that function. */ | 81 | to avoid a crash just use the Emacs implementation for that function. */ |
| 88 | #define BROKEN_GET_CURRENT_DIR_NAME 1 | 82 | #define BROKEN_GET_CURRENT_DIR_NAME 1 |
| 89 | |||
diff --git a/src/s/bsd-common.h b/src/s/bsd-common.h index 7d472c83ed1..0cca005b423 100644 --- a/src/s/bsd-common.h +++ b/src/s/bsd-common.h | |||
| @@ -37,10 +37,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 37 | #define TABDLY OXTABS | 37 | #define TABDLY OXTABS |
| 38 | #define TAB3 OXTABS | 38 | #define TAB3 OXTABS |
| 39 | 39 | ||
| 40 | /* These aren't needed, since we have getloadavg. */ | ||
| 41 | #undef KERNEL_FILE | ||
| 42 | #undef LDAV_SYMBOL | ||
| 43 | |||
| 44 | #define NO_TERMIO | 40 | #define NO_TERMIO |
| 45 | 41 | ||
| 46 | /* If the system's imake configuration file defines `NeedWidePrototypes' | 42 | /* If the system's imake configuration file defines `NeedWidePrototypes' |
| @@ -72,12 +68,5 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 72 | a file that someone else has modified in his Emacs. */ | 68 | a file that someone else has modified in his Emacs. */ |
| 73 | #define CLASH_DETECTION | 69 | #define CLASH_DETECTION |
| 74 | 70 | ||
| 75 | /* The file containing the kernel's symbol table is called /vmunix. */ | ||
| 76 | #define KERNEL_FILE "/vmunix" | ||
| 77 | |||
| 78 | /* The kernel symbol where the load average is found is named _avenrun. */ | ||
| 79 | #define LDAV_SYMBOL "_avenrun" | ||
| 80 | |||
| 81 | /* Send signals to subprocesses by "typing" special chars at them. */ | 71 | /* Send signals to subprocesses by "typing" special chars at them. */ |
| 82 | #define SIGNALS_VIA_CHARACTERS | 72 | #define SIGNALS_VIA_CHARACTERS |
| 83 | |||
diff --git a/src/s/cygwin.h b/src/s/cygwin.h index ceebe23f1e7..af5308ff7bb 100644 --- a/src/s/cygwin.h +++ b/src/s/cygwin.h | |||
| @@ -46,7 +46,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 46 | 46 | ||
| 47 | /* Define HAVE_PTYS if the system supports pty devices. */ | 47 | /* Define HAVE_PTYS if the system supports pty devices. */ |
| 48 | #define HAVE_PTYS | 48 | #define HAVE_PTYS |
| 49 | #define PTY_ITERATION for (i = 0; i < 1; i++) /* ick */ | 49 | #define PTY_ITERATION int i; for (i = 0; i < 1; i++) /* ick */ |
| 50 | #define PTY_NAME_SPRINTF /* none */ | 50 | #define PTY_NAME_SPRINTF /* none */ |
| 51 | #define PTY_TTY_NAME_SPRINTF /* none */ | 51 | #define PTY_TTY_NAME_SPRINTF /* none */ |
| 52 | #define PTY_OPEN \ | 52 | #define PTY_OPEN \ |
| @@ -102,4 +102,3 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 102 | 102 | ||
| 103 | /* Send signals to subprocesses by "typing" special chars at them. */ | 103 | /* Send signals to subprocesses by "typing" special chars at them. */ |
| 104 | #define SIGNALS_VIA_CHARACTERS | 104 | #define SIGNALS_VIA_CHARACTERS |
| 105 | |||
diff --git a/src/s/darwin.h b/src/s/darwin.h index 4fc2f4d1031..dd0d0c34021 100644 --- a/src/s/darwin.h +++ b/src/s/darwin.h | |||
| @@ -68,7 +68,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 68 | Note: PTYs are broken on darwin <6. Use at your own risk. */ | 68 | Note: PTYs are broken on darwin <6. Use at your own risk. */ |
| 69 | #define HAVE_PTYS | 69 | #define HAVE_PTYS |
| 70 | /* Run only once. We need a `for'-loop because the code uses `continue'. */ | 70 | /* Run only once. We need a `for'-loop because the code uses `continue'. */ |
| 71 | #define PTY_ITERATION for (i = 0; i < 1; i++) | 71 | #define PTY_ITERATION int i; for (i = 0; i < 1; i++) |
| 72 | #define PTY_NAME_SPRINTF /* none */ | 72 | #define PTY_NAME_SPRINTF /* none */ |
| 73 | #define PTY_TTY_NAME_SPRINTF /* none */ | 73 | #define PTY_TTY_NAME_SPRINTF /* none */ |
| 74 | /* Note that openpty may fork via grantpt on Mac OS X 10.4/Darwin 8. | 74 | /* Note that openpty may fork via grantpt on Mac OS X 10.4/Darwin 8. |
| @@ -148,4 +148,3 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 148 | 148 | ||
| 149 | /* Use the GC_MAKE_GCPROS_NOOPS (see lisp.h) method for marking the stack. */ | 149 | /* Use the GC_MAKE_GCPROS_NOOPS (see lisp.h) method for marking the stack. */ |
| 150 | #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS | 150 | #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS |
| 151 | |||
diff --git a/src/s/freebsd.h b/src/s/freebsd.h index 222ebc91c4a..24b34e02f69 100644 --- a/src/s/freebsd.h +++ b/src/s/freebsd.h | |||
| @@ -25,8 +25,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 25 | 25 | ||
| 26 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) | 26 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) |
| 27 | 27 | ||
| 28 | #define HAVE_GETLOADAVG 1 | ||
| 29 | |||
| 30 | /* This silences a few compilation warnings. */ | 28 | /* This silences a few compilation warnings. */ |
| 31 | #undef BSD_SYSTEM | 29 | #undef BSD_SYSTEM |
| 32 | #if __FreeBSD__ == 1 | 30 | #if __FreeBSD__ == 1 |
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index 84fe5b92da9..178d7082f72 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h | |||
| @@ -44,7 +44,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 44 | #define UNIX98_PTYS | 44 | #define UNIX98_PTYS |
| 45 | 45 | ||
| 46 | /* Run only once. We need a `for'-loop because the code uses `continue'. */ | 46 | /* Run only once. We need a `for'-loop because the code uses `continue'. */ |
| 47 | #define PTY_ITERATION for (i = 0; i < 1; i++) | 47 | #define PTY_ITERATION int i; for (i = 0; i < 1; i++) |
| 48 | 48 | ||
| 49 | #ifdef HAVE_GETPT | 49 | #ifdef HAVE_GETPT |
| 50 | #define PTY_NAME_SPRINTF | 50 | #define PTY_NAME_SPRINTF |
diff --git a/src/s/hpux10-20.h b/src/s/hpux10-20.h index d745f8d09c4..1cd91a41b55 100644 --- a/src/s/hpux10-20.h +++ b/src/s/hpux10-20.h | |||
| @@ -47,9 +47,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 47 | a file that someone else has modified in his Emacs. */ | 47 | a file that someone else has modified in his Emacs. */ |
| 48 | #define CLASH_DETECTION | 48 | #define CLASH_DETECTION |
| 49 | 49 | ||
| 50 | /* The symbol in the kernel where the load average is found | ||
| 51 | depends on the cpu type, so we let the m- files define LDAV_SYMBOL. */ | ||
| 52 | |||
| 53 | /* Special hacks needed to make Emacs run on this system. */ | 50 | /* Special hacks needed to make Emacs run on this system. */ |
| 54 | 51 | ||
| 55 | /* In hpux, the symbol SIGIO is defined, but the feature | 52 | /* In hpux, the symbol SIGIO is defined, but the feature |
| @@ -91,9 +88,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 91 | #undef random | 88 | #undef random |
| 92 | #undef HAVE_RANDOM | 89 | #undef HAVE_RANDOM |
| 93 | 90 | ||
| 94 | /* AlainF 20-Jul-1996 says this is right. */ | ||
| 95 | #define KERNEL_FILE "/stand/vmunix" | ||
| 96 | |||
| 97 | 91 | ||
| 98 | /* Rainer Malzbender <rainer@displaytech.com> says definining | 92 | /* Rainer Malzbender <rainer@displaytech.com> says definining |
| 99 | HAVE_XRMSETDATABASE allows Emacs to compile on HP-UX 10.20 using GCC. */ | 93 | HAVE_XRMSETDATABASE allows Emacs to compile on HP-UX 10.20 using GCC. */ |
| @@ -119,18 +113,3 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 119 | #define DATA_SEG_BITS 0x40000000 | 113 | #define DATA_SEG_BITS 0x40000000 |
| 120 | 114 | ||
| 121 | #define DATA_START 0x40000000 | 115 | #define DATA_START 0x40000000 |
| 122 | |||
| 123 | /* Data type of load average, as read out of kmem. */ | ||
| 124 | #define LOAD_AVE_TYPE double | ||
| 125 | |||
| 126 | /* Convert that into an integer that is 100 for a load average of 1.0 */ | ||
| 127 | #define LOAD_AVE_CVT(x) ((int) (x * 100.0)) | ||
| 128 | |||
| 129 | /* The kernel symbol where the load average is found is named _avenrun. | ||
| 130 | At this time there are two major flavors of hp-ux (there is the s800 | ||
| 131 | and s300 (s200) flavors). The differences are thusly moved to the | ||
| 132 | corresponding machine description file. */ | ||
| 133 | |||
| 134 | /* No underscore please. */ | ||
| 135 | #define LDAV_SYMBOL "avenrun" | ||
| 136 | |||
diff --git a/src/s/irix6-5.h b/src/s/irix6-5.h index 92465ded2ef..d283571d8fb 100644 --- a/src/s/irix6-5.h +++ b/src/s/irix6-5.h | |||
| @@ -60,6 +60,7 @@ char *_getpty(); | |||
| 60 | #define PTY_OPEN \ | 60 | #define PTY_OPEN \ |
| 61 | { \ | 61 | { \ |
| 62 | struct sigaction ocstat, cstat; \ | 62 | struct sigaction ocstat, cstat; \ |
| 63 | struct stat stb; \ | ||
| 63 | char * name; \ | 64 | char * name; \ |
| 64 | sigemptyset(&cstat.sa_mask); \ | 65 | sigemptyset(&cstat.sa_mask); \ |
| 65 | cstat.sa_handler = SIG_DFL; \ | 66 | cstat.sa_handler = SIG_DFL; \ |
| @@ -95,5 +96,3 @@ char *_getpty(); | |||
| 95 | /* Tested on Irix 6.5. SCM worked on earlier versions. */ | 96 | /* Tested on Irix 6.5. SCM worked on earlier versions. */ |
| 96 | #define GC_SETJMP_WORKS 1 | 97 | #define GC_SETJMP_WORKS 1 |
| 97 | #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS | 98 | #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS |
| 98 | |||
| 99 | |||
diff --git a/src/s/ms-w32.h b/src/s/ms-w32.h index 4c3b84dfe4c..bf6cc66798c 100644 --- a/src/s/ms-w32.h +++ b/src/s/ms-w32.h | |||
| @@ -181,8 +181,6 @@ struct sigaction { | |||
| 181 | #define HAVE_MENUS 1 | 181 | #define HAVE_MENUS 1 |
| 182 | #endif | 182 | #endif |
| 183 | 183 | ||
| 184 | #define MODE_LINE_BINARY_TEXT(_b_) (NILP ((_b_)->buffer_file_type) ? "T" : "B") | ||
| 185 | |||
| 186 | /* Get some redefinitions in place. */ | 184 | /* Get some redefinitions in place. */ |
| 187 | 185 | ||
| 188 | #ifdef emacs | 186 | #ifdef emacs |
| @@ -206,6 +204,7 @@ struct sigaction { | |||
| 206 | #define dup2 sys_dup2 | 204 | #define dup2 sys_dup2 |
| 207 | #define fopen sys_fopen | 205 | #define fopen sys_fopen |
| 208 | #define link sys_link | 206 | #define link sys_link |
| 207 | #define localtime sys_localtime | ||
| 209 | #define mkdir sys_mkdir | 208 | #define mkdir sys_mkdir |
| 210 | #undef mktemp | 209 | #undef mktemp |
| 211 | #define mktemp sys_mktemp | 210 | #define mktemp sys_mktemp |
| @@ -348,6 +347,8 @@ extern char *get_emacs_configuration_options (void); | |||
| 348 | #endif | 347 | #endif |
| 349 | #include <string.h> | 348 | #include <string.h> |
| 350 | 349 | ||
| 350 | extern int getloadavg (double *, int); | ||
| 351 | |||
| 351 | /* We need a little extra space, see ../../lisp/loadup.el. */ | 352 | /* We need a little extra space, see ../../lisp/loadup.el. */ |
| 352 | #define SYSTEM_PURESIZE_EXTRA 50000 | 353 | #define SYSTEM_PURESIZE_EXTRA 50000 |
| 353 | 354 | ||
diff --git a/src/s/msdos.h b/src/s/msdos.h index 88afaa83455..29ca0629899 100644 --- a/src/s/msdos.h +++ b/src/s/msdos.h | |||
| @@ -73,6 +73,21 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */ | |||
| 73 | #define HAVE_INVERSE_HYPERBOLIC | 73 | #define HAVE_INVERSE_HYPERBOLIC |
| 74 | #define FLOAT_CHECK_DOMAIN | 74 | #define FLOAT_CHECK_DOMAIN |
| 75 | 75 | ||
| 76 | /* Start of gnulib-related stuff */ | ||
| 77 | |||
| 78 | /* lib/ftoastr.c wants strtold, but DJGPP only has _strtold. DJGPP > | ||
| 79 | 2.03 has it, but it also has _strtold as a stub that jumps to | ||
| 80 | strtold, so use _strtold in all versions. */ | ||
| 81 | #define strtold _strtold | ||
| 82 | |||
| 83 | #if __DJGPP__ > 2 || __DJGPP_MINOR__ > 3 | ||
| 84 | # define HAVE_LSTAT 1 | ||
| 85 | #else | ||
| 86 | # define lstat stat | ||
| 87 | #endif | ||
| 88 | |||
| 89 | /* End of gnulib-related stuff. */ | ||
| 90 | |||
| 76 | /* When $TERM is "internal" then this is substituted: */ | 91 | /* When $TERM is "internal" then this is substituted: */ |
| 77 | #define INTERNAL_TERMINAL "pc|bios|IBM PC with color display:\ | 92 | #define INTERNAL_TERMINAL "pc|bios|IBM PC with color display:\ |
| 78 | :co#80:li#25:Co#16:pa#256:km:ms:cm=<CM>:cl=<CL>:ce=<CE>:\ | 93 | :co#80:li#25:Co#16:pa#256:km:ms:cm=<CM>:cl=<CL>:ce=<CE>:\ |
| @@ -92,7 +107,7 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */ | |||
| 92 | 107 | ||
| 93 | 108 | ||
| 94 | /* Mode line description of a buffer's type. */ | 109 | /* Mode line description of a buffer's type. */ |
| 95 | #define MODE_LINE_BINARY_TEXT(buf) (NILP(buf->buffer_file_type) ? "T" : "B") | 110 | #define MODE_LINE_BINARY_TEXT(buf) (NILP(B_(buf,buffer_file_type)) ? "T" : "B") |
| 96 | 111 | ||
| 97 | /* We have (the code to control) a mouse. */ | 112 | /* We have (the code to control) a mouse. */ |
| 98 | #define HAVE_MOUSE | 113 | #define HAVE_MOUSE |
diff --git a/src/s/netbsd.h b/src/s/netbsd.h index 8a639b93c84..52cda717a2d 100644 --- a/src/s/netbsd.h +++ b/src/s/netbsd.h | |||
| @@ -21,8 +21,6 @@ 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 | #define HAVE_GETLOADAVG 1 | ||
| 25 | |||
| 26 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) | 24 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) |
| 27 | 25 | ||
| 28 | #define DEFAULT_SOUND_DEVICE "/dev/audio" | 26 | #define DEFAULT_SOUND_DEVICE "/dev/audio" |
| @@ -43,4 +41,3 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 43 | 41 | ||
| 44 | /* Use the GC_MAKE_GCPROS_NOOPS (see lisp.h) method. */ | 42 | /* Use the GC_MAKE_GCPROS_NOOPS (see lisp.h) method. */ |
| 45 | #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS | 43 | #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS |
| 46 | |||
diff --git a/src/s/sol2-6.h b/src/s/sol2-6.h index 4c6fd3e2f9b..3d9bd6ddafc 100644 --- a/src/s/sol2-6.h +++ b/src/s/sol2-6.h | |||
| @@ -44,7 +44,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 44 | 44 | ||
| 45 | #define PTY_TTY_NAME_SPRINTF \ | 45 | #define PTY_TTY_NAME_SPRINTF \ |
| 46 | { \ | 46 | { \ |
| 47 | char *ptsname (), *ptyname; \ | 47 | char *ptsname (int), *ptyname; \ |
| 48 | \ | 48 | \ |
| 49 | sigblock (sigmask (SIGCLD)); \ | 49 | sigblock (sigmask (SIGCLD)); \ |
| 50 | if (grantpt (fd) == -1) \ | 50 | if (grantpt (fd) == -1) \ |
| @@ -60,4 +60,3 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 60 | 60 | ||
| 61 | #define GC_SETJMP_WORKS 1 | 61 | #define GC_SETJMP_WORKS 1 |
| 62 | #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS | 62 | #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS |
| 63 | |||
diff --git a/src/s/template.h b/src/s/template.h index ee5afa81de4..4e0400e99e3 100644 --- a/src/s/template.h +++ b/src/s/template.h | |||
| @@ -77,15 +77,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 77 | a file that someone else has modified in his Emacs. */ | 77 | a file that someone else has modified in his Emacs. */ |
| 78 | #define CLASH_DETECTION | 78 | #define CLASH_DETECTION |
| 79 | 79 | ||
| 80 | /* Define this if your operating system declares signal handlers to | ||
| 81 | have a type other than the usual. `The usual' is `void' for ANSI C | ||
| 82 | systems (i.e. when the __STDC__ macro is defined), and `int' for | ||
| 83 | pre-ANSI systems. If you're using GCC on an older system, __STDC__ | ||
| 84 | will be defined, but the system's include files will still say that | ||
| 85 | signal returns int or whatever; in situations like that, define | ||
| 86 | this to be what the system's include files want. */ | ||
| 87 | /* #define SIGTYPE int */ | ||
| 88 | |||
| 89 | /* If the character used to separate elements of the executable path | 80 | /* If the character used to separate elements of the executable path |
| 90 | is not ':', #define this to be the appropriate character constant. */ | 81 | is not ':', #define this to be the appropriate character constant. */ |
| 91 | /* #define SEPCHAR ':' */ | 82 | /* #define SEPCHAR ':' */ |
diff --git a/src/s/unixware.h b/src/s/unixware.h index c6130669a9a..8fe28625dd4 100644 --- a/src/s/unixware.h +++ b/src/s/unixware.h | |||
| @@ -35,7 +35,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 35 | within, it should be caught after sigrelse(2). */ | 35 | within, it should be caught after sigrelse(2). */ |
| 36 | #define PTY_TTY_NAME_SPRINTF \ | 36 | #define PTY_TTY_NAME_SPRINTF \ |
| 37 | { \ | 37 | { \ |
| 38 | char *ptsname(), *ptyname; \ | 38 | char *ptsname (int), *ptyname; \ |
| 39 | \ | 39 | \ |
| 40 | sigblock(sigmask(SIGCLD)); \ | 40 | sigblock(sigmask(SIGCLD)); \ |
| 41 | if (grantpt(fd) == -1) \ | 41 | if (grantpt(fd) == -1) \ |
| @@ -49,14 +49,4 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 49 | pty_name[sizeof(pty_name) - 1] = 0; \ | 49 | pty_name[sizeof(pty_name) - 1] = 0; \ |
| 50 | } | 50 | } |
| 51 | 51 | ||
| 52 | /* Data type of load average, as read out of kmem. */ | ||
| 53 | #define LOAD_AVE_TYPE long | ||
| 54 | |||
| 55 | /* Convert that into an integer that is 100 for a load average of 1.0 */ | ||
| 56 | /* This is totally uncalibrated. */ | ||
| 57 | #define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE)) | ||
| 58 | #define FSCALE 256.0 | ||
| 59 | |||
| 60 | |||
| 61 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base) | 52 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base) |
| 62 | |||
diff --git a/src/s/usg5-4-common.h b/src/s/usg5-4-common.h index 12f73c1b3b5..e6d992d8f9c 100644 --- a/src/s/usg5-4-common.h +++ b/src/s/usg5-4-common.h | |||
| @@ -30,12 +30,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 30 | It sets the Lisp variable system-type. */ | 30 | It sets the Lisp variable system-type. */ |
| 31 | #define SYSTEM_TYPE "usg-unix-v" | 31 | #define SYSTEM_TYPE "usg-unix-v" |
| 32 | 32 | ||
| 33 | /* The file containing the kernel's symbol table is called /unix. */ | ||
| 34 | #define KERNEL_FILE "/unix" | ||
| 35 | |||
| 36 | /* The kernel symbol where the load average is found is named avenrun. */ | ||
| 37 | #define LDAV_SYMBOL "avenrun" | ||
| 38 | |||
| 39 | /* setjmp and longjmp can safely replace _setjmp and _longjmp, | 33 | /* setjmp and longjmp can safely replace _setjmp and _longjmp, |
| 40 | but they will run slower. */ | 34 | but they will run slower. */ |
| 41 | #define _setjmp setjmp | 35 | #define _setjmp setjmp |
| @@ -44,9 +38,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 44 | /* The docs for system V/386 suggest v.3 has sigpause, so let's try it. */ | 38 | /* The docs for system V/386 suggest v.3 has sigpause, so let's try it. */ |
| 45 | #define HAVE_SYSV_SIGPAUSE | 39 | #define HAVE_SYSV_SIGPAUSE |
| 46 | 40 | ||
| 47 | /* On USG systems signal handlers return void. */ | ||
| 48 | #define SIGTYPE void | ||
| 49 | |||
| 50 | /* Get FIONREAD from <sys/filio.h>. Get <sys/ttold.h> to get struct tchars. | 41 | /* Get FIONREAD from <sys/filio.h>. Get <sys/ttold.h> to get struct tchars. |
| 51 | But get <termio.h> first to make sure ttold.h doesn't interfere. | 42 | But get <termio.h> first to make sure ttold.h doesn't interfere. |
| 52 | And don't try to use SIGIO yet. */ | 43 | And don't try to use SIGIO yet. */ |
| @@ -97,12 +88,11 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 97 | /* Push various streams modules onto a PTY channel. */ | 88 | /* Push various streams modules onto a PTY channel. */ |
| 98 | #define SETUP_SLAVE_PTY \ | 89 | #define SETUP_SLAVE_PTY \ |
| 99 | if (ioctl (xforkin, I_PUSH, "ptem") == -1) \ | 90 | if (ioctl (xforkin, I_PUSH, "ptem") == -1) \ |
| 100 | fatal ("ioctl I_PUSH ptem", errno); \ | 91 | fatal ("ioctl I_PUSH ptem"); \ |
| 101 | if (ioctl (xforkin, I_PUSH, "ldterm") == -1) \ | 92 | if (ioctl (xforkin, I_PUSH, "ldterm") == -1) \ |
| 102 | fatal ("ioctl I_PUSH ldterm", errno); \ | 93 | fatal ("ioctl I_PUSH ldterm"); \ |
| 103 | if (ioctl (xforkin, I_PUSH, "ttcompat") == -1) \ | 94 | if (ioctl (xforkin, I_PUSH, "ttcompat") == -1) \ |
| 104 | fatal ("ioctl I_PUSH ttcompat", errno); | 95 | fatal ("ioctl I_PUSH ttcompat"); |
| 105 | 96 | ||
| 106 | /* This definition was suggested for next release. So give it a try. */ | 97 | /* This definition was suggested for next release. So give it a try. */ |
| 107 | #define HAVE_SOCKETS | 98 | #define HAVE_SOCKETS |
| 108 | |||