aboutsummaryrefslogtreecommitdiffstats
path: root/src/s
diff options
context:
space:
mode:
authorPaul Eggert2011-02-09 23:41:44 -0800
committerPaul Eggert2011-02-09 23:41:44 -0800
commit90e04ea245917ca1d9856f1354c074991e99db7f (patch)
tree77d014ed2d00ded7c0b15d109d91a62fb893ffe4 /src/s
parentbe6d99804b3efdecf3660c4b51da1945e955fb4d (diff)
downloademacs-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/s')
-rw-r--r--src/s/aix4-2.h7
-rw-r--r--src/s/bsd-common.h11
-rw-r--r--src/s/hpux10-20.h21
-rw-r--r--src/s/unixware.h10
-rw-r--r--src/s/usg5-4-common.h7
5 files changed, 0 insertions, 56 deletions
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