diff options
| author | Paul Eggert | 2011-02-09 23:41:44 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-02-09 23:41:44 -0800 |
| commit | 90e04ea245917ca1d9856f1354c074991e99db7f (patch) | |
| tree | 77d014ed2d00ded7c0b15d109d91a62fb893ffe4 /src | |
| parent | be6d99804b3efdecf3660c4b51da1945e955fb4d (diff) | |
| download | emacs-90e04ea245917ca1d9856f1354c074991e99db7f.tar.gz emacs-90e04ea245917ca1d9856f1354c074991e99db7f.zip | |
[admin/ChangeLog]
Remove no-longer needed getloadavg symbols.
* CPP-DEFINES (LOAD_AVE_CVT, LOAD_AVE_TYPE, FSCALE, KERNEL_FILE):
(LDAV_SYMBOL): Remove.
[src/ChangeLog]
Remove no-longer needed getloadavg symbols.
* m/alpha.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
* m/amdx86-64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
* m/ia64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
* m/ibms390.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
* m/macppc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
* m/sparc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
* m/template.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
* m/vax.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
* s/aix4-2.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
* s/bsd-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove #undef.
* s/hpux10-20.h (KERNEL_FILE, LOAD_AVE_TYPE, LOAD_AVE_CVT):
(LDAV_SYMBOL): Remove.
* s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Remove.
* s/usg5-4-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 16 | ||||
| -rw-r--r-- | src/m/alpha.h | 7 | ||||
| -rw-r--r-- | src/m/amdx86-64.h | 7 | ||||
| -rw-r--r-- | src/m/ia64.h | 7 | ||||
| -rw-r--r-- | src/m/ibms390.h | 7 | ||||
| -rw-r--r-- | src/m/macppc.h | 7 | ||||
| -rw-r--r-- | src/m/sparc.h | 7 | ||||
| -rw-r--r-- | src/m/template.h | 7 | ||||
| -rw-r--r-- | src/m/vax.h | 10 | ||||
| -rw-r--r-- | src/s/aix4-2.h | 7 | ||||
| -rw-r--r-- | src/s/bsd-common.h | 11 | ||||
| -rw-r--r-- | src/s/hpux10-20.h | 21 | ||||
| -rw-r--r-- | src/s/unixware.h | 10 | ||||
| -rw-r--r-- | src/s/usg5-4-common.h | 7 |
14 files changed, 16 insertions, 115 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ccb54ffffa7..635a2d72f9c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,21 @@ | |||
| 1 | 2011-02-10 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-02-10 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Remove no-longer needed getloadavg symbols. | ||
| 4 | * m/alpha.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove. | ||
| 5 | * m/amdx86-64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove. | ||
| 6 | * m/ia64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove. | ||
| 7 | * m/ibms390.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove. | ||
| 8 | * m/macppc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove. | ||
| 9 | * m/sparc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove. | ||
| 10 | * m/template.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove. | ||
| 11 | * m/vax.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove. | ||
| 12 | * s/aix4-2.h (KERNEL_FILE, LDAV_SYMBOL): Remove. | ||
| 13 | * s/bsd-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove #undef. | ||
| 14 | * s/hpux10-20.h (KERNEL_FILE, LOAD_AVE_TYPE, LOAD_AVE_CVT): | ||
| 15 | (LDAV_SYMBOL): Remove. | ||
| 16 | * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Remove. | ||
| 17 | * s/usg5-4-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove. | ||
| 18 | |||
| 3 | Import getloadavg module from gnulib. | 19 | Import getloadavg module from gnulib. |
| 4 | * deps.mk (getloadavg.o): Remove; gnulib now does this. | 20 | * deps.mk (getloadavg.o): Remove; gnulib now does this. |
| 5 | * lisp.h (getloadavg) [!defined HAVE_GETLOADAVG]: Remove; gnulib | 21 | * lisp.h (getloadavg) [!defined HAVE_GETLOADAVG]: Remove; gnulib |
diff --git a/src/m/alpha.h b/src/m/alpha.h index 9ae089bfc5b..3a27cfd65d9 100644 --- a/src/m/alpha.h +++ b/src/m/alpha.h | |||
| @@ -29,12 +29,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 29 | /* __alpha defined automatically */ | 29 | /* __alpha defined automatically */ |
| 30 | 30 | ||
| 31 | 31 | ||
| 32 | /* Data type of load average, as read out of kmem. */ | ||
| 33 | #define LOAD_AVE_TYPE long | ||
| 34 | |||
| 35 | /* Convert that into an integer that is 100 for a load average of 1.0 */ | ||
| 36 | #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) | ||
| 37 | |||
| 38 | #ifdef __ELF__ | 32 | #ifdef __ELF__ |
| 39 | 33 | ||
| 40 | #if !defined(GNU_LINUX) && !defined(__NetBSD__) | 34 | #if !defined(GNU_LINUX) && !defined(__NetBSD__) |
| @@ -57,4 +51,3 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 57 | Define DBL_MIN_REPLACEMENT to be the next value larger than DBL_MIN: | 51 | Define DBL_MIN_REPLACEMENT to be the next value larger than DBL_MIN: |
| 58 | this avoids the assembler bug. */ | 52 | this avoids the assembler bug. */ |
| 59 | #define DBL_MIN_REPLACEMENT 2.2250738585072019e-308 | 53 | #define DBL_MIN_REPLACEMENT 2.2250738585072019e-308 |
| 60 | |||
diff --git a/src/m/amdx86-64.h b/src/m/amdx86-64.h index 2ae5d07390f..441f41b4444 100644 --- a/src/m/amdx86-64.h +++ b/src/m/amdx86-64.h | |||
| @@ -30,12 +30,5 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 30 | #define EMACS_INT long | 30 | #define EMACS_INT long |
| 31 | #define EMACS_UINT unsigned long | 31 | #define EMACS_UINT unsigned long |
| 32 | 32 | ||
| 33 | /* Data type of load average, as read out of kmem. */ | ||
| 34 | #define LOAD_AVE_TYPE long | ||
| 35 | |||
| 36 | /* Convert that into an integer that is 100 for a load average of 1.0 */ | ||
| 37 | #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) | ||
| 38 | |||
| 39 | /* Define XPNTR to avoid or'ing with DATA_SEG_BITS */ | 33 | /* Define XPNTR to avoid or'ing with DATA_SEG_BITS */ |
| 40 | #undef DATA_SEG_BITS | 34 | #undef DATA_SEG_BITS |
| 41 | |||
diff --git a/src/m/ia64.h b/src/m/ia64.h index 48ba3005cd6..101d56e648b 100644 --- a/src/m/ia64.h +++ b/src/m/ia64.h | |||
| @@ -30,12 +30,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 30 | #define EMACS_INT long | 30 | #define EMACS_INT long |
| 31 | #define EMACS_UINT unsigned long | 31 | #define EMACS_UINT unsigned long |
| 32 | 32 | ||
| 33 | /* Data type of load average, as read out of kmem. */ | ||
| 34 | #define LOAD_AVE_TYPE long | ||
| 35 | |||
| 36 | /* Convert that into an integer that is 100 for a load average of 1.0 */ | ||
| 37 | #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) | ||
| 38 | |||
| 39 | #ifdef REL_ALLOC | 33 | #ifdef REL_ALLOC |
| 40 | #ifndef _MALLOC_INTERNAL | 34 | #ifndef _MALLOC_INTERNAL |
| 41 | /* "char *" because ralloc.c defines it that way. gmalloc.c thinks it | 35 | /* "char *" because ralloc.c defines it that way. gmalloc.c thinks it |
| @@ -45,4 +39,3 @@ extern char *r_alloc (), *r_re_alloc (); | |||
| 45 | extern void r_alloc_free (); | 39 | extern void r_alloc_free (); |
| 46 | #endif /* not _MALLOC_INTERNAL */ | 40 | #endif /* not _MALLOC_INTERNAL */ |
| 47 | #endif /* REL_ALLOC */ | 41 | #endif /* REL_ALLOC */ |
| 48 | |||
diff --git a/src/m/ibms390.h b/src/m/ibms390.h index f2aef1ba513..c309035dc5c 100644 --- a/src/m/ibms390.h +++ b/src/m/ibms390.h | |||
| @@ -18,12 +18,6 @@ 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/>. */ | 18 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 19 | 19 | ||
| 20 | 20 | ||
| 21 | /* Data type of load average, as read out of kmem. */ | ||
| 22 | #define LOAD_AVE_TYPE long | ||
| 23 | |||
| 24 | /* Convert that into an integer that is 100 for a load average of 1.0 */ | ||
| 25 | #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) | ||
| 26 | |||
| 27 | /* Define VIRT_ADDR_VARIES if the virtual addresses of | 21 | /* Define VIRT_ADDR_VARIES if the virtual addresses of |
| 28 | pure and impure space as loaded can vary, and even their | 22 | pure and impure space as loaded can vary, and even their |
| 29 | relative order cannot be relied on. | 23 | relative order cannot be relied on. |
| @@ -31,4 +25,3 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 31 | Otherwise Emacs assumes that text space precedes data space, | 25 | Otherwise Emacs assumes that text space precedes data space, |
| 32 | numerically. */ | 26 | numerically. */ |
| 33 | #define VIRT_ADDR_VARIES | 27 | #define VIRT_ADDR_VARIES |
| 34 | |||
diff --git a/src/m/macppc.h b/src/m/macppc.h index 5d78e39bdba..aef781e2c39 100644 --- a/src/m/macppc.h +++ b/src/m/macppc.h | |||
| @@ -17,15 +17,8 @@ GNU General Public License for more details. | |||
| 17 | You should have received a copy of the GNU General Public License | 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/>. */ | 18 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 19 | 19 | ||
| 20 | /* Data type of load average, as read out of kmem. */ | ||
| 21 | #define LOAD_AVE_TYPE long | ||
| 22 | |||
| 23 | /* Convert that into an integer that is 100 for a load average of 1.0 */ | ||
| 24 | #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) | ||
| 25 | |||
| 26 | #ifdef _ARCH_PPC64 | 20 | #ifdef _ARCH_PPC64 |
| 27 | #ifndef _LP64 | 21 | #ifndef _LP64 |
| 28 | #define _LP64 | 22 | #define _LP64 |
| 29 | #endif | 23 | #endif |
| 30 | #endif | 24 | #endif |
| 31 | |||
diff --git a/src/m/sparc.h b/src/m/sparc.h index 50e56f0f3dc..99668043f30 100644 --- a/src/m/sparc.h +++ b/src/m/sparc.h | |||
| @@ -19,12 +19,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 19 | 19 | ||
| 20 | /* __sparc__ is defined by the compiler by default. */ | 20 | /* __sparc__ is defined by the compiler by default. */ |
| 21 | 21 | ||
| 22 | /* Data type of load average, as read out of kmem. */ | ||
| 23 | #define LOAD_AVE_TYPE long | ||
| 24 | |||
| 25 | /* Convert that into an integer that is 100 for a load average of 1.0 */ | ||
| 26 | #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) | ||
| 27 | |||
| 28 | #ifdef __arch64__ /* GCC, 64-bit ABI. */ | 22 | #ifdef __arch64__ /* GCC, 64-bit ABI. */ |
| 29 | 23 | ||
| 30 | #define BITS_PER_LONG 64 | 24 | #define BITS_PER_LONG 64 |
| @@ -34,4 +28,3 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 34 | #endif | 28 | #endif |
| 35 | 29 | ||
| 36 | #endif /* __arch64__ */ | 30 | #endif /* __arch64__ */ |
| 37 | |||
diff --git a/src/m/template.h b/src/m/template.h index f06f62b6cda..54fb0da9521 100644 --- a/src/m/template.h +++ b/src/m/template.h | |||
| @@ -21,12 +21,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 21 | does not define it automatically. | 21 | does not define it automatically. |
| 22 | Ones defined so far include m68k and many others */ | 22 | Ones defined so far include m68k and many others */ |
| 23 | 23 | ||
| 24 | /* Data type of load average, as read out of kmem. */ | ||
| 25 | #define LOAD_AVE_TYPE long | ||
| 26 | |||
| 27 | /* Convert that into an integer that is 100 for a load average of 1.0 */ | ||
| 28 | #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) | ||
| 29 | |||
| 30 | /* Define VIRT_ADDR_VARIES if the virtual addresses of | 24 | /* Define VIRT_ADDR_VARIES if the virtual addresses of |
| 31 | pure and impure space as loaded can vary, and even their | 25 | pure and impure space as loaded can vary, and even their |
| 32 | relative order cannot be relied on. | 26 | relative order cannot be relied on. |
| @@ -46,4 +40,3 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 46 | If you've just fixed a problem in an existing configuration file, | 40 | If you've just fixed a problem in an existing configuration file, |
| 47 | you should also check `etc/MACHINES' to make sure its descriptions | 41 | you should also check `etc/MACHINES' to make sure its descriptions |
| 48 | of known problems in that configuration should be updated. */ | 42 | of known problems in that configuration should be updated. */ |
| 49 | |||
diff --git a/src/m/vax.h b/src/m/vax.h index 2fecf17ca84..a375600cead 100644 --- a/src/m/vax.h +++ b/src/m/vax.h | |||
| @@ -20,14 +20,4 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 20 | 20 | ||
| 21 | /* #define vax -- appears to be done automatically */ | 21 | /* #define vax -- appears to be done automatically */ |
| 22 | 22 | ||
| 23 | /* USG systems I know of running on Vaxes do not actually | ||
| 24 | support the load average, so disable it for them. */ | ||
| 25 | |||
| 26 | /* Data type of load average, as read out of kmem. */ | ||
| 27 | #define LOAD_AVE_TYPE double | ||
| 28 | |||
| 29 | /* Convert that into an integer that is 100 for a load average of 1.0 */ | ||
| 30 | #define LOAD_AVE_CVT(x) ((int) ((x) * 100.0)) | ||
| 31 | |||
| 32 | #define HAVE_FTIME | 23 | #define HAVE_FTIME |
| 33 | |||
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h index c62aee249c5..443fc034570 100644 --- a/src/s/aix4-2.h +++ b/src/s/aix4-2.h | |||
| @@ -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/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/unixware.h b/src/s/unixware.h index c6130669a9a..407282ff78c 100644 --- a/src/s/unixware.h +++ b/src/s/unixware.h | |||
| @@ -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..aeedd7f4b15 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 |
| @@ -105,4 +99,3 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 105 | 99 | ||
| 106 | /* This definition was suggested for next release. So give it a try. */ | 100 | /* This definition was suggested for next release. So give it a try. */ |
| 107 | #define HAVE_SOCKETS | 101 | #define HAVE_SOCKETS |
| 108 | |||