diff options
| author | Jim Blandy | 1993-06-09 09:23:12 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-06-09 09:23:12 +0000 |
| commit | 8eda6c512fc48f6b3c166bf1026a7759529e7cba (patch) | |
| tree | 5c09b2d9433ef910d6981e99e123208f146886e9 /src | |
| parent | 5fcbb24d47689c33f61ede0cbd3aa824835026a8 (diff) | |
| download | emacs-8eda6c512fc48f6b3c166bf1026a7759529e7cba.tar.gz emacs-8eda6c512fc48f6b3c166bf1026a7759529e7cba.zip | |
*** empty log message ***
Diffstat (limited to 'src')
| -rw-r--r-- | src/getloadavg.c | 96 |
1 files changed, 92 insertions, 4 deletions
diff --git a/src/getloadavg.c b/src/getloadavg.c index 70035395787..c74f63d0674 100644 --- a/src/getloadavg.c +++ b/src/getloadavg.c | |||
| @@ -141,8 +141,48 @@ | |||
| 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 | ||
| @@ -177,11 +217,59 @@ | |||
| 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 |
| 222 | |||
| 223 | #ifdef MORE_BSD | ||
| 182 | #define NLIST_STRUCT | 224 | #define NLIST_STRUCT |
| 183 | #endif | 225 | #endif |
| 184 | 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) */ | ||
| 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)) |