Mercurial > emacs
comparison src/getloadavg.c @ 3587:2b2b70186646
*** empty log message ***
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Wed, 09 Jun 1993 09:23:12 +0000 |
parents | 3c7a86dba45b |
children | a9d02b8cec6e |
comparison
equal
deleted
inserted
replaced
3586:7d077274d4bb | 3587:2b2b70186646 |
---|---|
139 #if !defined (tek4300) && defined (unix) && defined (m68k) && defined (mc68000) && defined (mc68020) && defined (_MACH_IND_SYS_TYPES) | 139 #if !defined (tek4300) && defined (unix) && defined (m68k) && defined (mc68000) && defined (mc68020) && defined (_MACH_IND_SYS_TYPES) |
140 #define tek4300 /* Define by emacs, but not by other users. */ | 140 #define tek4300 /* Define by emacs, but not by other users. */ |
141 #endif | 141 #endif |
142 | 142 |
143 | 143 |
144 /* VAX C can't handle multi-line #ifs. */ | 144 /* VAX C can't handle multi-line #ifs, or lines longer than 256 chars. */ |
145 #if (defined(MORE_BSD) || defined(sun) || defined(decstation) || defined(_SEQUENT_) || defined(sgi) || defined(SVR4) || defined(sony_news) || defined(sequent) || defined (OSF_ALPHA) || (defined (ardent) && defined (titan)) || defined (tek4300)) | 145 #ifdef MORE_BSD |
146 #define LOAD_AVE_TYPE long | |
147 #endif | |
148 | |
149 #ifdef sun | |
150 #define LOAD_AVE_TYPE long | |
151 #endif | |
152 | |
153 #ifdef decstation | |
154 #define LOAD_AVE_TYPE long | |
155 #endif | |
156 | |
157 #ifdef _SEQUENT_ | |
158 #define LOAD_AVE_TYPE long | |
159 #endif | |
160 | |
161 #ifdef sgi | |
162 #define LOAD_AVE_TYPE long | |
163 #endif | |
164 | |
165 #ifdef SVR4 | |
166 #define LOAD_AVE_TYPE long | |
167 #endif | |
168 | |
169 #ifdef sony_news | |
170 #define LOAD_AVE_TYPE long | |
171 #endif | |
172 | |
173 #ifdef sequent | |
174 #define LOAD_AVE_TYPE long | |
175 #endif | |
176 | |
177 #ifdef OSF_ALPHA | |
178 #define LOAD_AVE_TYPE long | |
179 #endif | |
180 | |
181 #ifdef ardent && titan | |
182 #define LOAD_AVE_TYPE long | |
183 #endif | |
184 | |
185 #ifdef tex4300 | |
146 #define LOAD_AVE_TYPE long | 186 #define LOAD_AVE_TYPE long |
147 #endif | 187 #endif |
148 | 188 |
149 | 189 |
150 #ifndef FSCALE | 190 #ifndef FSCALE |
175 | 215 |
176 #if !defined (LDAV_CVT) && defined (FSCALE) | 216 #if !defined (LDAV_CVT) && defined (FSCALE) |
177 #define LDAV_CVT(n) (((double) (n)) / FSCALE) | 217 #define LDAV_CVT(n) (((double) (n)) / FSCALE) |
178 #endif | 218 #endif |
179 | 219 |
180 /* VAX C can't handle multi-line #ifs. */ | 220 /* VAX C can't handle multi-line #ifs, or lines longer that 256 characters. */ |
181 #if !defined(NLIST_STRUCT) && (defined(MORE_BSD) || defined(sun) || defined(decstation) || defined(hpux) || defined(_SEQUENT_) || defined(sequent) || defined(sgi) || defined(SVR4) || defined(sony_news) || defined (OSF_ALPHA) || (defined (ardent) && defined (titan)) || defined (tek4300) || defined (butterfly)) | 221 #ifndef NLIST_STRUCT |
182 #define NLIST_STRUCT | 222 |
183 #endif | 223 #ifdef MORE_BSD |
224 #define NLIST_STRUCT | |
225 #endif | |
226 | |
227 #ifdef sun | |
228 #define NLIST_STRUCT | |
229 #endif | |
230 | |
231 #ifdef decstation | |
232 #define NLIST_STRUCT | |
233 #endif | |
234 | |
235 #ifdef hpux | |
236 #define NLIST_STRUCT | |
237 #endif | |
238 | |
239 #if defined (_SEQUENT_) || defined (sequent) | |
240 #define NLIST_STRUCT | |
241 #endif | |
242 | |
243 #ifdef sgi | |
244 #define NLIST_STRUCT | |
245 #endif | |
246 | |
247 #ifdef SVR4 | |
248 #define NLIST_STRUCT | |
249 #endif | |
250 | |
251 #ifdef sony_news | |
252 #define NLIST_STRUCT | |
253 #endif | |
254 | |
255 #ifdef OSF_ALPHA | |
256 #define NLIST_STRUCT | |
257 #endif | |
258 | |
259 #if defined (ardent) && defined (titan) | |
260 #define NLIST_STRUCT | |
261 #endif | |
262 | |
263 #ifdef tex4300 | |
264 #define NLIST_STRUCT | |
265 #endif | |
266 | |
267 #ifdef butterfly | |
268 #define NLIST_STRUCT | |
269 #endif | |
270 | |
271 #endif /* defined (NLIST_STRUCT) */ | |
184 | 272 |
185 | 273 |
186 #if defined(sgi) || (defined(mips) && !defined(BSD)) | 274 #if defined(sgi) || (defined(mips) && !defined(BSD)) |
187 #define FIXUP_KERNEL_SYMBOL_ADDR(nl) ((nl)[0].n_value &= ~(1 << 31)) | 275 #define FIXUP_KERNEL_SYMBOL_ADDR(nl) ((nl)[0].n_value &= ~(1 << 31)) |
188 #endif | 276 #endif |