Mercurial > emacs
annotate src/m/hp800.h @ 94696:c522dff11548
(substitute_object_recurse): Use lower-level primitives.
Don't signal errors when traversing sub-char-tables.
Don't loop over all the possible characters when traversing char-tables.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Tue, 06 May 2008 20:11:13 +0000 |
parents | a07273da728c |
children | 7e5b32f86a4c |
rev | line source |
---|---|
75525
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
1 /* machine description file for hp9000 series 800 machines. |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
2 Copyright (C) 1987, 2001, 2002, 2003, 2004, 2005, |
79755 | 3 2006, 2007, 2008 Free Software Foundation, Inc. |
75525
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
4 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
5 This file is part of GNU Emacs. |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
6 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
7 GNU Emacs is free software; you can redistribute it and/or modify |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
8 it under the terms of the GNU General Public License as published by |
78258
6aba169c4b1f
Switch license to GPLv3 or later.
Glenn Morris <rgm@gnu.org>
parents:
76750
diff
changeset
|
9 the Free Software Foundation; either version 3, or (at your option) |
75525
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
10 any later version. |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
11 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
12 GNU Emacs is distributed in the hope that it will be useful, |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
13 but WITHOUT ANY WARRANTY; without even the implied warranty of |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
15 GNU General Public License for more details. |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
16 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
17 You should have received a copy of the GNU General Public License |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
18 along with GNU Emacs; see the file COPYING. If not, write to |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
20 Boston, MA 02110-1301, USA. */ |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
21 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
22 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
23 /* The following line tells the configuration script what sort of |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
24 operating system this machine is likely to run. |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
25 USUAL-OPSYS="hpux" */ |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
26 |
78499 | 27 /* Define WORDS_BIG_ENDIAN if lowest-numbered byte in a word |
75525
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
28 is the most significant byte. */ |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
29 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
30 #define WORDS_BIG_ENDIAN |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
31 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
32 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
33 * group of arguments and treat it as an array of the arguments. */ |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
34 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
35 #define NO_ARG_ARRAY |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
36 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
37 /* Define WORD_MACHINE if addresses and such have |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
38 * to be corrected before they can be used as byte counts. */ |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
39 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
40 #undef WORD_MACHINE |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
41 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
42 /* Now define a symbol for the cpu type, if your compiler |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
43 does not define it automatically: |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
44 Ones defined so far include vax, m68000, ns16000, pyramid, |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
45 orion, tahoe, APOLLO and many others */ |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
46 #ifndef hp9000s800 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
47 # define hp9000s800 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
48 #endif |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
49 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
50 /* Use type int rather than a union, to represent Lisp_Object */ |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
51 /* This is desirable for most machines. */ |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
52 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
53 #define NO_UNION_TYPE |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
54 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
55 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
56 the bit field into an int. In other words, if bit fields |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
57 are always unsigned. |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
58 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
59 If you use NO_UNION_TYPE, this flag does not matter. */ |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
60 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
61 #define EXPLICIT_SIGN_EXTEND |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
62 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
63 |
76750
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
64 /* Common definitions for HPUX and GNU/Linux. */ |
75525
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
65 |
76750
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
66 #if defined (__hpux) || defined (GNU_LINUX) |
75525
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
67 /* Now define a symbol for the cpu type, if your compiler |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
68 does not define it automatically: |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
69 Ones defined so far include vax, m68000, ns16000, pyramid, |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
70 orion, tahoe, APOLLO and many others */ |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
71 #ifndef hp9000s800 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
72 # define hp9000s800 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
73 #endif |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
74 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
75 /* Define CANNOT_DUMP on machines where unexec does not work. |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
76 Then the function dump-emacs will not be defined |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
77 and temacs will do (load "loadup") automatically unless told otherwise. */ |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
78 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
79 #undef CANNOT_DUMP |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
80 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
81 /* Define NO_REMAP if memory segmentation makes it not work well |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
82 to change the boundary between the text section and data section |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
83 when Emacs is dumped. If you define this, the preloaded Lisp |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
84 code will not be sharable; but that's better than failing completely. */ |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
85 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
86 #define NO_REMAP |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
87 |
76750
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
88 #endif /* __hpux or GNU_LINUX */ |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
89 |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
90 /* Stuff for just GNU/Linux. */ |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
91 |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
92 #ifdef GNU_LINUX |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
93 |
75525
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
94 /* Data type of load average, as read out of kmem. */ |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
95 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
96 #define LOAD_AVE_TYPE long |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
97 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
98 /* Convert that into an integer that is 100 for a load average of 1.0 */ |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
99 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
100 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
101 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
102 #endif /* GNU_LINUX */ |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
103 |
76750
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
104 /* Stuff for just HPUX. */ |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
105 |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
106 #ifdef __hpux |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
107 |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
108 /* Define VIRT_ADDR_VARIES if the virtual addresses of |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
109 pure and impure space as loaded can vary, and even their |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
110 relative order cannot be relied on. |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
111 |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
112 Otherwise Emacs assumes that text space precedes data space, |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
113 numerically. */ |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
114 |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
115 #define VIRT_ADDR_VARIES |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
116 |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
117 /* the data segment on this machine always starts at address 0x40000000. */ |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
118 |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
119 #define DATA_SEG_BITS 0x40000000 |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
120 |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
121 #define DATA_START 0x40000000 |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
122 #define TEXT_START 0x00000000 |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
123 |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
124 /* This machine requires completely different unexec code |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
125 which lives in a separate file. Specify the file name. */ |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
126 |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
127 #define UNEXEC unexhp9k800.o |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
128 |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
129 #define LIBS_MACHINE |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
130 #define LIBS_DEBUG |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
131 |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
132 /* Include the file bsdtty.h, since this machine has job control. */ |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
133 #define NEED_BSDTTY |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
134 |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
135 /* Data type of load average, as read out of kmem. */ |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
136 |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
137 #define LOAD_AVE_TYPE double |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
138 |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
139 /* Convert that into an integer that is 100 for a load average of 1.0 */ |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
140 |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
141 #define LOAD_AVE_CVT(x) ((int) (x * 100.0)) |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
142 |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
143 /* The symbol in the kernel where the load average is found |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
144 is named _avenrun. At this time there are two major flavors |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
145 of hp-ux (there is the s800 and s300 (s200) flavors). The |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
146 differences are thusly moved to the corresponding machine description file. |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
147 */ |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
148 |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
149 /* no underscore please */ |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
150 #define LDAV_SYMBOL "avenrun" |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
151 |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
152 #if 0 /* Supposedly no longer true. */ |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
153 /* In hpux, for unknown reasons, S_IFLNK is defined even though |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
154 symbolic links do not exist. |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
155 Make sure our conditionals based on S_IFLNK are not confused. |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
156 |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
157 Here we assume that stat.h is included before config.h |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
158 so that we can override it here. */ |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
159 |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
160 #undef S_IFLNK |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
161 #endif |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
162 |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
163 /* On USG systems these have different names. */ |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
164 |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
165 #define index strchr |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
166 #define rindex strrchr |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
167 |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
168 #endif /* __hpux */ |
c8470b905d7a
Restore HP-UX support (removed 2007-01-29).
Glenn Morris <rgm@gnu.org>
parents:
75525
diff
changeset
|
169 |
75525
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
170 /* Systems with GCC don't need to lose. */ |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
171 #ifdef __NetBSD__ |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
172 # ifdef __GNUC__ |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
173 # define alloca __builtin_alloca |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
174 # define HAVE_ALLOCA |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
175 # endif /* __GNUC__ */ |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
176 #endif /* __NetBSD__ */ |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
177 |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
178 /* arch-tag: 809436e6-1645-4b92-b40d-2de5d6e7227c |
53a1273f562c
Restore, removing HP-UX support.
Chong Yidong <cyd@stupidchicken.com>
parents:
diff
changeset
|
179 (do not change this comment) */ |