| 1 | /* config.h.in.  Generated automatically from configure.in by autoheader.  */ | 
|---|
| 2 |  | 
|---|
| 3 | /* Define if on AIX 3. | 
|---|
| 4 | System headers sometimes define this. | 
|---|
| 5 | We just want to avoid a redefinition error message.  */ | 
|---|
| 6 | #ifndef _ALL_SOURCE | 
|---|
| 7 | /* #undef _ALL_SOURCE */ | 
|---|
| 8 | #endif | 
|---|
| 9 |  | 
|---|
| 10 | /* Define if using alloca.c.  */ | 
|---|
| 11 | /* #undef C_ALLOCA */ | 
|---|
| 12 |  | 
|---|
| 13 | /* Define if the closedir function returns void instead of int.  */ | 
|---|
| 14 | /* #undef CLOSEDIR_VOID */ | 
|---|
| 15 |  | 
|---|
| 16 | /* Define to empty if the keyword does not work.  */ | 
|---|
| 17 | /* #undef const */ | 
|---|
| 18 |  | 
|---|
| 19 | /* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. | 
|---|
| 20 | This function is required for alloca.c support on those systems.  */ | 
|---|
| 21 | /* #undef CRAY_STACKSEG_END */ | 
|---|
| 22 |  | 
|---|
| 23 | /* Define for DGUX with <sys/dg_sys_info.h>.  */ | 
|---|
| 24 | /* #undef DGUX */ | 
|---|
| 25 |  | 
|---|
| 26 | /* Define if the `getloadavg' function needs to be run setuid or setgid.  */ | 
|---|
| 27 | /* #undef GETLOADAVG_PRIVILEGED */ | 
|---|
| 28 |  | 
|---|
| 29 | /* Define to `unsigned long' or `unsigned long long' | 
|---|
| 30 | if <inttypes.h> doesn't define.  */ | 
|---|
| 31 | #include <sys/stdint.h> | 
|---|
| 32 |  | 
|---|
| 33 | /* Define to `int' if <sys/types.h> doesn't define.  */ | 
|---|
| 34 | //#undef gid_t | 
|---|
| 35 | //#define gid_t int | 
|---|
| 36 |  | 
|---|
| 37 | /* Define if you have alloca, as a function or macro.  */ | 
|---|
| 38 | #undef HAVE_ALLOCA | 
|---|
| 39 | #define HAVE_ALLOCA 1 | 
|---|
| 40 |  | 
|---|
| 41 | /* Define if you have <alloca.h> and it should be used (not on Ultrix).  */ | 
|---|
| 42 | /* #undef HAVE_ALLOCA_H */ | 
|---|
| 43 | #define HAVE_ALLOCA_H 1 | 
|---|
| 44 |  | 
|---|
| 45 | /* Define if you don't have vprintf but do have _doprnt.  */ | 
|---|
| 46 | /* #undef HAVE_DOPRNT */ | 
|---|
| 47 |  | 
|---|
| 48 | /* Define if your system has a working fnmatch function.  */ | 
|---|
| 49 | #define HAVE_FNMATCH 1 | 
|---|
| 50 |  | 
|---|
| 51 | /* Define if your system has its own `getloadavg' function.  */ | 
|---|
| 52 | /* #undef HAVE_GETLOADAVG */ | 
|---|
| 53 |  | 
|---|
| 54 | /* Define if you have the getmntent function.  */ | 
|---|
| 55 | /* #undef HAVE_GETMNTENT */ | 
|---|
| 56 |  | 
|---|
| 57 | /* Define if the `long double' type works.  */ | 
|---|
| 58 | #define HAVE_LONG_DOUBLE 1 | 
|---|
| 59 |  | 
|---|
| 60 | /* Define if you support file names longer than 14 characters.  */ | 
|---|
| 61 | #undef HAVE_LONG_FILE_NAMES | 
|---|
| 62 | #define HAVE_LONG_FILE_NAMES 1 | 
|---|
| 63 |  | 
|---|
| 64 | /* Define if you have a working `mmap' system call.  */ | 
|---|
| 65 | /* #undef HAVE_MMAP */ | 
|---|
| 66 |  | 
|---|
| 67 | /* Define if system calls automatically restart after interruption | 
|---|
| 68 | by a signal.  */ | 
|---|
| 69 | /* #undef HAVE_RESTARTABLE_SYSCALLS */ | 
|---|
| 70 |  | 
|---|
| 71 | /* Define if your struct stat has st_blksize.  */ | 
|---|
| 72 | #define HAVE_ST_BLKSIZE 1 | 
|---|
| 73 |  | 
|---|
| 74 | /* Define if your struct stat has st_blocks.  */ | 
|---|
| 75 | #define HAVE_ST_BLOCKS 1 | 
|---|
| 76 |  | 
|---|
| 77 | /* Define if you have the strcoll function and it is properly defined.  */ | 
|---|
| 78 | #undef HAVE_STRCOLL | 
|---|
| 79 | #define HAVE_STRCOLL 1 | 
|---|
| 80 |  | 
|---|
| 81 | /* Define if your struct stat has st_rdev.  */ | 
|---|
| 82 | #undef HAVE_ST_RDEV | 
|---|
| 83 |  | 
|---|
| 84 | /* Define if you have the strftime function.  */ | 
|---|
| 85 | #undef HAVE_STRFTIME | 
|---|
| 86 | #define HAVE_STRFTIME 1 | 
|---|
| 87 |  | 
|---|
| 88 | /* Define if you have <sys/wait.h> that is POSIX.1 compatible.  */ | 
|---|
| 89 | #undef HAVE_SYS_WAIT_H 1 | 
|---|
| 90 |  | 
|---|
| 91 | /* Define if your struct tm has tm_zone.  */ | 
|---|
| 92 | /* #undef HAVE_TM_ZONE */ | 
|---|
| 93 |  | 
|---|
| 94 | /* Define if you don't have tm_zone but do have the external array | 
|---|
| 95 | tzname.  */ | 
|---|
| 96 | #undef HAVE_TZNAME | 
|---|
| 97 | #define HAVE_TZNAME 1 | 
|---|
| 98 |  | 
|---|
| 99 | /* Define if you have <unistd.h>.  */ | 
|---|
| 100 | #define HAVE_UNISTD_H  1 | 
|---|
| 101 |  | 
|---|
| 102 | /* Define if utime(file, NULL) sets file's timestamp to the present.  */ | 
|---|
| 103 | #undef HAVE_UTIME_NULL | 
|---|
| 104 | #define HAVE_UTIME_NULL 1 | 
|---|
| 105 |  | 
|---|
| 106 | /* Define if you have <vfork.h>.  */ | 
|---|
| 107 | /* #undef HAVE_VFORK_H */ | 
|---|
| 108 |  | 
|---|
| 109 | /* Define if you have the vprintf function.  */ | 
|---|
| 110 | #undef HAVE_VPRINTF | 
|---|
| 111 | #define HAVE_VPRINTF 1 | 
|---|
| 112 |  | 
|---|
| 113 | /* Define if you have the wait3 system call.  */ | 
|---|
| 114 | /* #undef HAVE_WAIT3 */ | 
|---|
| 115 |  | 
|---|
| 116 | /* Define if on MINIX.  */ | 
|---|
| 117 | /* #undef _MINIX */ | 
|---|
| 118 |  | 
|---|
| 119 | /* Define if your struct nlist has an n_un member.  */ | 
|---|
| 120 | /* #undef NLIST_NAME_UNION */ | 
|---|
| 121 |  | 
|---|
| 122 | /* Define if you have <nlist.h>.  */ | 
|---|
| 123 | /* #undef NLIST_STRUCT */ | 
|---|
| 124 |  | 
|---|
| 125 | /* Define if your C compiler doesn't accept -c and -o together.  */ | 
|---|
| 126 | /* #undef NO_MINUS_C_MINUS_O */ | 
|---|
| 127 |  | 
|---|
| 128 | /* Define to `int' if <sys/types.h> doesn't define.  */ | 
|---|
| 129 | /*#undef pid_t*/ | 
|---|
| 130 |  | 
|---|
| 131 | /* Define if the system does not provide POSIX.1 features except | 
|---|
| 132 | with this defined.  */ | 
|---|
| 133 | /* #undef _POSIX_1_SOURCE */ | 
|---|
| 134 |  | 
|---|
| 135 | /* Define if you need to in order for stat and other things to work.  */ | 
|---|
| 136 | /*#undef _POSIX_SOURCE*/ | 
|---|
| 137 |  | 
|---|
| 138 | /* Define as the return type of signal handlers (int or void).  */ | 
|---|
| 139 | #undef RETSIGTYPE | 
|---|
| 140 | #define RETSIGTYPE void | 
|---|
| 141 |  | 
|---|
| 142 | /* Define if the setvbuf function takes the buffering type as its second | 
|---|
| 143 | argument and the buffer pointer as the third, as on System V | 
|---|
| 144 | before release 3.  */ | 
|---|
| 145 | /* #undef SETVBUF_REVERSED */ | 
|---|
| 146 |  | 
|---|
| 147 | /* If using the C implementation of alloca, define if you know the | 
|---|
| 148 | direction of stack growth for your system; otherwise it will be | 
|---|
| 149 | automatically deduced at run-time. | 
|---|
| 150 | STACK_DIRECTION > 0 => grows toward higher addresses | 
|---|
| 151 | STACK_DIRECTION < 0 => grows toward lower addresses | 
|---|
| 152 | STACK_DIRECTION = 0 => direction of growth unknown | 
|---|
| 153 | */ | 
|---|
| 154 | /* #undef STACK_DIRECTION */ | 
|---|
| 155 |  | 
|---|
| 156 | /* Define if the `S_IS*' macros in <sys/stat.h> do not work properly.  */ | 
|---|
| 157 | /* #undef STAT_MACROS_BROKEN */ | 
|---|
| 158 |  | 
|---|
| 159 | /* Define if you have the ANSI C header files.  */ | 
|---|
| 160 | #undef STDC_HEADERS | 
|---|
| 161 | #define STDC_HEADERS 1 | 
|---|
| 162 |  | 
|---|
| 163 | /* Define on System V Release 4.  */ | 
|---|
| 164 | /* #undef SVR4 */ | 
|---|
| 165 |  | 
|---|
| 166 | /* Define if `sys_siglist' is declared by <signal.h>.  */ | 
|---|
| 167 | /* #undef SYS_SIGLIST_DECLARED */ | 
|---|
| 168 |  | 
|---|
| 169 | /* Define to `int' if <sys/types.h> doesn't define.  */ | 
|---|
| 170 | /*#undef uid_t */ | 
|---|
| 171 |  | 
|---|
| 172 | /* Define for Encore UMAX.  */ | 
|---|
| 173 | /* #undef UMAX */ | 
|---|
| 174 |  | 
|---|
| 175 | /* Define for Encore UMAX 4.3 that has <inq_status/cpustats.h> | 
|---|
| 176 | instead of <sys/cpustats.h>.  */ | 
|---|
| 177 | /* #undef UMAX4_3 */ | 
|---|
| 178 |  | 
|---|
| 179 | /* Define vfork as fork if vfork does not work.  */ | 
|---|
| 180 | /* #undef vfork */ | 
|---|
| 181 |  | 
|---|
| 182 | /* Name of this package (needed by automake) */ | 
|---|
| 183 | #define PACKAGE "make" | 
|---|
| 184 |  | 
|---|
| 185 | /* Version of this package (needed by automake) */ | 
|---|
| 186 | #define VERSION "3.81rc1" | 
|---|
| 187 |  | 
|---|
| 188 | /* Define to the name of the SCCS `get' command.  */ | 
|---|
| 189 | #undef SCCS_GET | 
|---|
| 190 | #define SCCS_GET "echo no sccs get" | 
|---|
| 191 |  | 
|---|
| 192 | /* Define to 1 if NLS is requested.  */ | 
|---|
| 193 | /* #undef ENABLE_NLS */ | 
|---|
| 194 |  | 
|---|
| 195 | /* Define as 1 if you have dcgettext.  */ | 
|---|
| 196 | /* #undef HAVE_DCGETTEXT */ | 
|---|
| 197 |  | 
|---|
| 198 | /* Define as 1 if you have gettext and don't want to use GNU gettext.  */ | 
|---|
| 199 | /* #undef HAVE_GETTEXT */ | 
|---|
| 200 |  | 
|---|
| 201 | /* Define if your locale.h file contains LC_MESSAGES.  */ | 
|---|
| 202 | /* #undef HAVE_LC_MESSAGES */ | 
|---|
| 203 |  | 
|---|
| 204 | /* Define to the installation directory for locales.  */ | 
|---|
| 205 | #define LOCALEDIR "" | 
|---|
| 206 |  | 
|---|
| 207 | /* Define this if the SCCS `get' command understands the `-G<file>' option.  */ | 
|---|
| 208 | /* #undef SCCS_GET_MINUS_G */ | 
|---|
| 209 |  | 
|---|
| 210 | /* Define this to enable job server support in GNU make.  */ | 
|---|
| 211 | #define MAKE_JOBSERVER 1 | 
|---|
| 212 |  | 
|---|
| 213 | /* Define to be the nanoseconds member of struct stat's st_mtim, | 
|---|
| 214 | if it exists.  */ | 
|---|
| 215 | /* #undef ST_MTIM_NSEC */ | 
|---|
| 216 |  | 
|---|
| 217 | /* Define this if the C library defines the variable `sys_siglist'.  */ | 
|---|
| 218 | /* #undef HAVE_SYS_SIGLIST */ | 
|---|
| 219 |  | 
|---|
| 220 | /* Define this if the C library defines the variable `_sys_siglist'.  */ | 
|---|
| 221 | /* #undef HAVE__SYS_SIGLIST */ | 
|---|
| 222 |  | 
|---|
| 223 | /* Define this if you have the `union wait' type in <sys/wait.h>.  */ | 
|---|
| 224 | /* #undef HAVE_UNION_WAIT */ | 
|---|
| 225 |  | 
|---|
| 226 | /* Define if you have the dup2 function.  */ | 
|---|
| 227 | #undef HAVE_DUP2 | 
|---|
| 228 | #define HAVE_DUP2 1 | 
|---|
| 229 |  | 
|---|
| 230 | /* Define if you have the getcwd function.  */ | 
|---|
| 231 | #undef HAVE_GETCWD | 
|---|
| 232 | #define HAVE_GETCWD 1 | 
|---|
| 233 |  | 
|---|
| 234 | /* Define if you have the getgroups function.  */ | 
|---|
| 235 | /* #undef HAVE_GETGROUPS */ | 
|---|
| 236 |  | 
|---|
| 237 | /* Define if you have the gethostbyname function.  */ | 
|---|
| 238 | #define HAVE_GETHOSTBYNAME 1 | 
|---|
| 239 |  | 
|---|
| 240 | /* Define if you have the gethostname function.  */ | 
|---|
| 241 | #define HAVE_GETHOSTNAME 1 | 
|---|
| 242 |  | 
|---|
| 243 | /* Define if you have the getloadavg function.  */ | 
|---|
| 244 | /* #undef HAVE_GETLOADAVG */ | 
|---|
| 245 |  | 
|---|
| 246 | /* Define if you have the memmove function.  */ | 
|---|
| 247 | #undef HAVE_MEMMOVE | 
|---|
| 248 | #define HAVE_MEMMOVE 1 | 
|---|
| 249 |  | 
|---|
| 250 | /* Define if you have the mktemp function.  */ | 
|---|
| 251 | #undef HAVE_MKTEMP | 
|---|
| 252 | #define HAVE_MKTEMP 1 | 
|---|
| 253 |  | 
|---|
| 254 | /* Define if you have the psignal function.  */ | 
|---|
| 255 | /* #undef HAVE_PSIGNAL */ | 
|---|
| 256 |  | 
|---|
| 257 | /* Define if you have the pstat_getdynamic function.  */ | 
|---|
| 258 | /* #undef HAVE_PSTAT_GETDYNAMIC */ | 
|---|
| 259 |  | 
|---|
| 260 | /* Define if you have the setegid function.  */ | 
|---|
| 261 | /* #undef HAVE_SETEGID */ | 
|---|
| 262 |  | 
|---|
| 263 | /* Define if you have the seteuid function.  */ | 
|---|
| 264 | /* #undef HAVE_SETEUID */ | 
|---|
| 265 |  | 
|---|
| 266 | /* Define if you have the setlinebuf function.  */ | 
|---|
| 267 | /* #undef HAVE_SETLINEBUF */ | 
|---|
| 268 |  | 
|---|
| 269 | /* Define if you have the setregid function.  */ | 
|---|
| 270 | /* #undef HAVE_SETREGID */ | 
|---|
| 271 |  | 
|---|
| 272 | /* Define if you have the setreuid function.  */ | 
|---|
| 273 | /* #undef HAVE_SETREUID */ | 
|---|
| 274 |  | 
|---|
| 275 | /* Define if you have the sigsetmask function.  */ | 
|---|
| 276 | /* #undef HAVE_SIGSETMASK */ | 
|---|
| 277 |  | 
|---|
| 278 | /* Define if you have the socket function.  */ | 
|---|
| 279 | #define HAVE_SOCKET 1 | 
|---|
| 280 |  | 
|---|
| 281 | /* Define if you have the strcasecmp function.  */ | 
|---|
| 282 | #define HAVE_STRCASECMP 1 | 
|---|
| 283 |  | 
|---|
| 284 | /* Define if you have the strerror function.  */ | 
|---|
| 285 | #undef HAVE_STRERROR | 
|---|
| 286 | #define HAVE_STRERROR 1 | 
|---|
| 287 |  | 
|---|
| 288 | /* Define if you have the strsignal function.  */ | 
|---|
| 289 | /* #undef HAVE_STRSIGNAL */ | 
|---|
| 290 |  | 
|---|
| 291 | /* Define if you have the wait3 function.  */ | 
|---|
| 292 | /* #undef HAVE_WAIT3 */ | 
|---|
| 293 |  | 
|---|
| 294 | /* Define if you have the waitpid function.  */ | 
|---|
| 295 | #define HAVE_WAITPID 1 | 
|---|
| 296 |  | 
|---|
| 297 | /* Define if you have the <dirent.h> header file.  */ | 
|---|
| 298 | #undef HAVE_DIRENT_H | 
|---|
| 299 | #define HAVE_DIRENT_H 1 | 
|---|
| 300 |  | 
|---|
| 301 | /* Define if you have the <fcntl.h> header file.  */ | 
|---|
| 302 | #undef HAVE_FCNTL_H | 
|---|
| 303 | #define HAVE_FCNTL_H 1 | 
|---|
| 304 |  | 
|---|
| 305 | /* Define if you have the <limits.h> header file.  */ | 
|---|
| 306 | #undef HAVE_LIMITS_H | 
|---|
| 307 | #define HAVE_LIMITS_H 1 | 
|---|
| 308 |  | 
|---|
| 309 | /* Define if you have the <mach/mach.h> header file.  */ | 
|---|
| 310 | /* #undef HAVE_MACH_MACH_H */ | 
|---|
| 311 |  | 
|---|
| 312 | /* Define if you have the <memory.h> header file.  */ | 
|---|
| 313 | #undef HAVE_MEMORY_H | 
|---|
| 314 | #define HAVE_MEMORY_H 1 | 
|---|
| 315 |  | 
|---|
| 316 | /* Define if you have the <ndir.h> header file.  */ | 
|---|
| 317 | /* #undef HAVE_NDIR_H */ | 
|---|
| 318 |  | 
|---|
| 319 | /* Define if you have the <string.h> header file.  */ | 
|---|
| 320 | #undef HAVE_STRING_H | 
|---|
| 321 | #define HAVE_STRING_H 1 | 
|---|
| 322 |  | 
|---|
| 323 | /* Define if you have the <sys/dir.h> header file.  */ | 
|---|
| 324 | #define HAVE_SYS_DIR_H 1 | 
|---|
| 325 |  | 
|---|
| 326 | /* Define if you have the <sys/ndir.h> header file.  */ | 
|---|
| 327 | /* #undef HAVE_SYS_NDIR_H */ | 
|---|
| 328 |  | 
|---|
| 329 | /* Define if you have the <sys/param.h> header file.  */ | 
|---|
| 330 | #define HAVE_SYS_PARAM_H 1 | 
|---|
| 331 |  | 
|---|
| 332 | /* Define if you have the <sys/timeb.h> header file.  */ | 
|---|
| 333 | #undef HAVE_SYS_TIMEB_H | 
|---|
| 334 | #define HAVE_SYS_TIMEB_H 1 | 
|---|
| 335 |  | 
|---|
| 336 | /* Define if you have the <sys/wait.h> header file.  */ | 
|---|
| 337 | #define HAVE_SYS_WAIT_H 1 | 
|---|
| 338 |  | 
|---|
| 339 | /* Define if you have the <unistd.h> header file.  */ | 
|---|
| 340 | #define HAVE_UNISTD_H 1 | 
|---|
| 341 |  | 
|---|
| 342 | /* Define if you have the dgc library (-ldgc).  */ | 
|---|
| 343 | /* #undef HAVE_LIBDGC */ | 
|---|
| 344 |  | 
|---|
| 345 | /* Define if you have the kstat library (-lkstat).  */ | 
|---|
| 346 | /* #undef HAVE_LIBKSTAT */ | 
|---|
| 347 |  | 
|---|
| 348 | /* Define if you have the sun library (-lsun).  */ | 
|---|
| 349 | /* #undef HAVE_LIBSUN */ | 
|---|
| 350 |  | 
|---|
| 351 | /* Use high resolution file timestamps if nonzero. */ | 
|---|
| 352 | #define FILE_TIMESTAMP_HI_RES 0 | 
|---|
| 353 |  | 
|---|
| 354 | /* Build host information. */ | 
|---|
| 355 | #define MAKE_HOST "OS/2 using Innotek LIBC" | 
|---|
| 356 |  | 
|---|
| 357 | /* Grok DOS paths (drive specs and backslash path element separators) */ | 
|---|
| 358 | #define HAVE_DOS_PATHS | 
|---|
| 359 |  | 
|---|
| 360 | /* | 
|---|
| 361 | * Refer to README.W32 for info on the following settings | 
|---|
| 362 | */ | 
|---|
| 363 |  | 
|---|
| 364 | /* | 
|---|
| 365 | * If you have a shell that does not grok 'sh -c quoted-command-line' | 
|---|
| 366 | * correctly, you need this setting. Please see below for specific | 
|---|
| 367 | * shell support. | 
|---|
| 368 | */ | 
|---|
| 369 | #undef BATCH_MODE_ONLY_SHELL | 
|---|
| 370 | #define BATCH_MODE_ONLY_SHELL 1 | 
|---|
| 371 |  | 
|---|
| 372 | /* | 
|---|
| 373 | * Define if you have the Cygnus "Cygwin" GNU Windows32 tool set. | 
|---|
| 374 | * Do NOT define BATCH_MODE_ONLY_SHELL if you define HAVE_CYGWIN_SHELL | 
|---|
| 375 | */ | 
|---|
| 376 | #undef HAVE_CYGWIN_SHELL | 
|---|
| 377 |  | 
|---|
| 378 | /* | 
|---|
| 379 | * Define if you have the MKS tool set or shell. Do NOT define | 
|---|
| 380 | * BATCH_MODE_ONLY_SHELL if you define HAVE_MKS_SHELL | 
|---|
| 381 | */ | 
|---|
| 382 | #undef HAVE_MKS_SHELL | 
|---|
| 383 |  | 
|---|
| 384 | /* | 
|---|
| 385 | * Enforce the mutual exclusivity restriction. | 
|---|
| 386 | */ | 
|---|
| 387 | #ifdef HAVE_MKS_SHELL | 
|---|
| 388 | #undef BATCH_MODE_ONLY_SHELL | 
|---|
| 389 | #endif | 
|---|
| 390 |  | 
|---|
| 391 | #ifdef HAVE_CYGWIN_SHELL | 
|---|
| 392 | #undef BATCH_MODE_ONLY_SHELL | 
|---|
| 393 | #endif | 
|---|
| 394 |  | 
|---|
| 395 | /* Define if you prefer Case Insensitive behavior */ | 
|---|
| 396 | #undef HAVE_CASE_INSENSITIVE_FS | 
|---|
| 397 |  | 
|---|
| 398 | #define HAVE_STRDUP 1 | 
|---|
| 399 |  | 
|---|
| 400 | #define _DIRENT_HAVE_D_NAMLEN 1 | 
|---|
| 401 | #define _DIRENT_HAVE_D_TYPE   1 | 
|---|
| 402 | #define __ptr_t void * | 
|---|
| 403 |  | 
|---|
| 404 | #define INCLUDEDIR "." | 
|---|
| 405 | #define LIBDIR "." | 
|---|
| 406 |  | 
|---|
| 407 | static inline int getloadavg(double loadavg[], int nelem) | 
|---|
| 408 | { | 
|---|
| 409 | loadavg[0] = 0.01; | 
|---|
| 410 | if (nelem > 1) | 
|---|
| 411 | loadavg[1] = 0.01; | 
|---|
| 412 | if (nelem > 2) | 
|---|
| 413 | loadavg[2] = 0.01; | 
|---|
| 414 | return 0; | 
|---|
| 415 | } | 
|---|
| 416 |  | 
|---|
| 417 |  | 
|---|
| 418 | #if 1 | 
|---|
| 419 | #include <string.h> | 
|---|
| 420 |  | 
|---|
| 421 | static inline void * | 
|---|
| 422 | memmove (void *__dest, __const void *__src, size_t __n) | 
|---|
| 423 | { | 
|---|
| 424 | register unsigned long int __d0, __d1, __d2; | 
|---|
| 425 | if (__dest < __src) | 
|---|
| 426 | __asm__ __volatile__ | 
|---|
| 427 | ("cld\n\t" | 
|---|
| 428 | "rep\n\t" | 
|---|
| 429 | "movsb" | 
|---|
| 430 | : "=&c" (__d0), "=&S" (__d1), "=&D" (__d2) | 
|---|
| 431 | : "0" (__n), "1" (__src), "2" (__dest) | 
|---|
| 432 | : "memory"); | 
|---|
| 433 | else | 
|---|
| 434 | __asm__ __volatile__ | 
|---|
| 435 | ("std\n\t" | 
|---|
| 436 | "rep\n\t" | 
|---|
| 437 | "movsb\n\t" | 
|---|
| 438 | "cld" | 
|---|
| 439 | : "=&c" (__d0), "=&S" (__d1), "=&D" (__d2) | 
|---|
| 440 | : "0" (__n), "1" (__n - 1 + (const char *) __src), | 
|---|
| 441 | "2" (__n - 1 + (char *) __dest) | 
|---|
| 442 | : "memory"); | 
|---|
| 443 | return __dest; | 
|---|
| 444 | } | 
|---|
| 445 | #endif | 
|---|
| 446 | #if 0 | 
|---|
| 447 |  | 
|---|
| 448 | #define strchr(s, c) \ | 
|---|
| 449 | (__extension__ (__builtin_constant_p (c)                                    \ | 
|---|
| 450 | ? __strchr_c (s, ((c) & 0xff) << 8)                         \ | 
|---|
| 451 | : __strchr_g (s, c))) | 
|---|
| 452 |  | 
|---|
| 453 | static inline char *__strchr_g (__const char *__s, int __c); | 
|---|
| 454 |  | 
|---|
| 455 | static inline char * | 
|---|
| 456 | __strchr_g (__const char *__s, int __c) | 
|---|
| 457 | { | 
|---|
| 458 | register unsigned long int __d0; | 
|---|
| 459 | register char *__res; | 
|---|
| 460 | __asm__ __volatile__ | 
|---|
| 461 | ("cld\n\t" | 
|---|
| 462 | "movb      %%al,%%ah\n" | 
|---|
| 463 | "1:\n\t" | 
|---|
| 464 | "lodsb\n\t" | 
|---|
| 465 | "cmpb      %%ah,%%al\n\t" | 
|---|
| 466 | "je        2f\n\t" | 
|---|
| 467 | "testb     %%al,%%al\n\t" | 
|---|
| 468 | "jne       1b\n\t" | 
|---|
| 469 | "movl      $1,%1\n" | 
|---|
| 470 | "2:\n\t" | 
|---|
| 471 | "movl      %1,%0" | 
|---|
| 472 | : "=a" (__res), "=&S" (__d0) | 
|---|
| 473 | : "0" (__c), "1" (__s) | 
|---|
| 474 | : "cc"); | 
|---|
| 475 | return __res - 1; | 
|---|
| 476 | } | 
|---|
| 477 |  | 
|---|
| 478 | static inline char *__strchr_c (__const char *__s, int __c); | 
|---|
| 479 |  | 
|---|
| 480 | static inline char * | 
|---|
| 481 | __strchr_c (__const char *__s, int __c) | 
|---|
| 482 | { | 
|---|
| 483 | register unsigned long int __d0; | 
|---|
| 484 | register char *__res; | 
|---|
| 485 | __asm__ __volatile__ | 
|---|
| 486 | ("cld\n\t" | 
|---|
| 487 | "1:\n\t" | 
|---|
| 488 | "lodsb\n\t" | 
|---|
| 489 | "cmpb      %%ah,%%al\n\t" | 
|---|
| 490 | "je        2f\n\t" | 
|---|
| 491 | "testb     %%al,%%al\n\t" | 
|---|
| 492 | "jne       1b\n\t" | 
|---|
| 493 | "movl      $1,%1\n" | 
|---|
| 494 | "2:\n\t" | 
|---|
| 495 | "movl      %1,%0" | 
|---|
| 496 | : "=a" (__res), "=&S" (__d0) | 
|---|
| 497 | : "0" (__c), "1" (__s) | 
|---|
| 498 | : "cc"); | 
|---|
| 499 | return __res - 1; | 
|---|
| 500 | } | 
|---|
| 501 | #endif | 
|---|