| 1 | /*
|
|---|
| 2 | * This file was produced by running the config_h.SH script, which
|
|---|
| 3 | * gets its values from uconfig.sh, which is generally produced by
|
|---|
| 4 | * running Configure.
|
|---|
| 5 | *
|
|---|
| 6 | * Feel free to modify any of this as the need arises. Note, however,
|
|---|
| 7 | * that running config_h.SH again will wipe out any changes you've made.
|
|---|
| 8 | * For a more permanent change edit uconfig.sh and rerun config_h.SH.
|
|---|
| 9 | *
|
|---|
| 10 | * $Id: Config_h.U,v 3.0.1.5 1997/02/28 14:57:43 ram Exp $
|
|---|
| 11 | */
|
|---|
| 12 |
|
|---|
| 13 | /*
|
|---|
| 14 | * Package name :
|
|---|
| 15 | * Source directory :
|
|---|
| 16 | * Configuration time:
|
|---|
| 17 | * Configured by :
|
|---|
| 18 | * Target system : unknown
|
|---|
| 19 | */
|
|---|
| 20 |
|
|---|
| 21 | #ifndef _config_h_
|
|---|
| 22 | #define _config_h_
|
|---|
| 23 |
|
|---|
| 24 | /* LOC_SED:
|
|---|
| 25 | * This symbol holds the complete pathname to the sed program.
|
|---|
| 26 | */
|
|---|
| 27 | #define LOC_SED "" /**/
|
|---|
| 28 |
|
|---|
| 29 | /* HAS_ALARM:
|
|---|
| 30 | * This symbol, if defined, indicates that the alarm routine is
|
|---|
| 31 | * available.
|
|---|
| 32 | */
|
|---|
| 33 | /*#define HAS_ALARM / **/
|
|---|
| 34 |
|
|---|
| 35 | /* HAS_BCMP:
|
|---|
| 36 | * This symbol is defined if the bcmp() routine is available to
|
|---|
| 37 | * compare blocks of memory.
|
|---|
| 38 | */
|
|---|
| 39 | /*#define HAS_BCMP / **/
|
|---|
| 40 |
|
|---|
| 41 | /* HAS_BCOPY:
|
|---|
| 42 | * This symbol is defined if the bcopy() routine is available to
|
|---|
| 43 | * copy blocks of memory.
|
|---|
| 44 | */
|
|---|
| 45 | /*#define HAS_BCOPY / **/
|
|---|
| 46 |
|
|---|
| 47 | /* HAS_BZERO:
|
|---|
| 48 | * This symbol is defined if the bzero() routine is available to
|
|---|
| 49 | * set a memory block to 0.
|
|---|
| 50 | */
|
|---|
| 51 | /*#define HAS_BZERO / **/
|
|---|
| 52 |
|
|---|
| 53 | /* HAS_CHOWN:
|
|---|
| 54 | * This symbol, if defined, indicates that the chown routine is
|
|---|
| 55 | * available.
|
|---|
| 56 | */
|
|---|
| 57 | /*#define HAS_CHOWN / **/
|
|---|
| 58 |
|
|---|
| 59 | /* HAS_CHROOT:
|
|---|
| 60 | * This symbol, if defined, indicates that the chroot routine is
|
|---|
| 61 | * available.
|
|---|
| 62 | */
|
|---|
| 63 | /*#define HAS_CHROOT / **/
|
|---|
| 64 |
|
|---|
| 65 | /* HAS_CHSIZE:
|
|---|
| 66 | * This symbol, if defined, indicates that the chsize routine is available
|
|---|
| 67 | * to truncate files. You might need a -lx to get this routine.
|
|---|
| 68 | */
|
|---|
| 69 | /*#define HAS_CHSIZE / **/
|
|---|
| 70 |
|
|---|
| 71 | /* HASCONST:
|
|---|
| 72 | * This symbol, if defined, indicates that this C compiler knows about
|
|---|
| 73 | * the const type. There is no need to actually test for that symbol
|
|---|
| 74 | * within your programs. The mere use of the "const" keyword will
|
|---|
| 75 | * trigger the necessary tests.
|
|---|
| 76 | */
|
|---|
| 77 | /*#define HASCONST / **/
|
|---|
| 78 | #ifndef HASCONST
|
|---|
| 79 | #define const
|
|---|
| 80 | #endif
|
|---|
| 81 |
|
|---|
| 82 | /* HAS_CUSERID:
|
|---|
| 83 | * This symbol, if defined, indicates that the cuserid routine is
|
|---|
| 84 | * available to get character login names.
|
|---|
| 85 | */
|
|---|
| 86 | /*#define HAS_CUSERID / **/
|
|---|
| 87 |
|
|---|
| 88 | /* HAS_DBL_DIG:
|
|---|
| 89 | * This symbol, if defined, indicates that this system's <float.h>
|
|---|
| 90 | * or <limits.h> defines the symbol DBL_DIG, which is the number
|
|---|
| 91 | * of significant digits in a double precision number. If this
|
|---|
| 92 | * symbol is not defined, a guess of 15 is usually pretty good.
|
|---|
| 93 | */
|
|---|
| 94 | /*#define HAS_DBL_DIG / * */
|
|---|
| 95 |
|
|---|
| 96 | /* HAS_DIFFTIME:
|
|---|
| 97 | * This symbol, if defined, indicates that the difftime routine is
|
|---|
| 98 | * available.
|
|---|
| 99 | */
|
|---|
| 100 | /*#define HAS_DIFFTIME / **/
|
|---|
| 101 |
|
|---|
| 102 | /* HAS_DLERROR:
|
|---|
| 103 | * This symbol, if defined, indicates that the dlerror routine is
|
|---|
| 104 | * available to return a string describing the last error that
|
|---|
| 105 | * occurred from a call to dlopen(), dlclose() or dlsym().
|
|---|
| 106 | */
|
|---|
| 107 | /*#define HAS_DLERROR / **/
|
|---|
| 108 |
|
|---|
| 109 | /* HAS_DUP2:
|
|---|
| 110 | * This symbol, if defined, indicates that the dup2 routine is
|
|---|
| 111 | * available to duplicate file descriptors.
|
|---|
| 112 | */
|
|---|
| 113 | /*#define HAS_DUP2 / **/
|
|---|
| 114 |
|
|---|
| 115 | /* HAS_FCHMOD:
|
|---|
| 116 | * This symbol, if defined, indicates that the fchmod routine is available
|
|---|
| 117 | * to change mode of opened files. If unavailable, use chmod().
|
|---|
| 118 | */
|
|---|
| 119 | /*#define HAS_FCHMOD / **/
|
|---|
| 120 |
|
|---|
| 121 | /* HAS_FCHOWN:
|
|---|
| 122 | * This symbol, if defined, indicates that the fchown routine is available
|
|---|
| 123 | * to change ownership of opened files. If unavailable, use chown().
|
|---|
| 124 | */
|
|---|
| 125 | /*#define HAS_FCHOWN / **/
|
|---|
| 126 |
|
|---|
| 127 | /* HAS_FCNTL:
|
|---|
| 128 | * This symbol, if defined, indicates to the C program that
|
|---|
| 129 | * the fcntl() function exists.
|
|---|
| 130 | */
|
|---|
| 131 | /*#define HAS_FCNTL / **/
|
|---|
| 132 |
|
|---|
| 133 | /* HAS_FGETPOS:
|
|---|
| 134 | * This symbol, if defined, indicates that the fgetpos routine is
|
|---|
| 135 | * available to get the file position indicator, similar to ftell().
|
|---|
| 136 | */
|
|---|
| 137 | /*#define HAS_FGETPOS / **/
|
|---|
| 138 |
|
|---|
| 139 | /* HAS_FLOCK:
|
|---|
| 140 | * This symbol, if defined, indicates that the flock routine is
|
|---|
| 141 | * available to do file locking.
|
|---|
| 142 | */
|
|---|
| 143 | /*#define HAS_FLOCK / **/
|
|---|
| 144 |
|
|---|
| 145 | /* HAS_FORK:
|
|---|
| 146 | * This symbol, if defined, indicates that the fork routine is
|
|---|
| 147 | * available.
|
|---|
| 148 | */
|
|---|
| 149 | #define HAS_FORK /**/
|
|---|
| 150 |
|
|---|
| 151 | /* HAS_FSETPOS:
|
|---|
| 152 | * This symbol, if defined, indicates that the fsetpos routine is
|
|---|
| 153 | * available to set the file position indicator, similar to fseek().
|
|---|
| 154 | */
|
|---|
| 155 | /*#define HAS_FSETPOS / **/
|
|---|
| 156 |
|
|---|
| 157 | /* HAS_GETTIMEOFDAY:
|
|---|
| 158 | * This symbol, if defined, indicates that the gettimeofday() system
|
|---|
| 159 | * call is available for a sub-second accuracy clock. Usually, the file
|
|---|
| 160 | * <sys/resource.h> needs to be included (see I_SYS_RESOURCE).
|
|---|
| 161 | * The type "Timeval" should be used to refer to "struct timeval".
|
|---|
| 162 | */
|
|---|
| 163 | /*#define HAS_GETTIMEOFDAY / **/
|
|---|
| 164 | #ifdef HAS_GETTIMEOFDAY
|
|---|
| 165 | #define Timeval struct timeval /* Structure used by gettimeofday() */
|
|---|
| 166 | #endif
|
|---|
| 167 |
|
|---|
| 168 | /* HAS_GETGROUPS:
|
|---|
| 169 | * This symbol, if defined, indicates that the getgroups() routine is
|
|---|
| 170 | * available to get the list of process groups. If unavailable, multiple
|
|---|
| 171 | * groups are probably not supported.
|
|---|
| 172 | */
|
|---|
| 173 | /*#define HAS_GETGROUPS / **/
|
|---|
| 174 |
|
|---|
| 175 | /* HAS_GETLOGIN:
|
|---|
| 176 | * This symbol, if defined, indicates that the getlogin routine is
|
|---|
| 177 | * available to get the login name.
|
|---|
| 178 | */
|
|---|
| 179 | /*#define HAS_GETLOGIN / **/
|
|---|
| 180 |
|
|---|
| 181 | /* HAS_GETPGID:
|
|---|
| 182 | * This symbol, if defined, indicates to the C program that
|
|---|
| 183 | * the getpgid(pid) function is available to get the
|
|---|
| 184 | * process group id.
|
|---|
| 185 | */
|
|---|
| 186 | /*#define HAS_GETPGID / **/
|
|---|
| 187 |
|
|---|
| 188 | /* HAS_GETPGRP2:
|
|---|
| 189 | * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
|
|---|
| 190 | * routine is available to get the current process group.
|
|---|
| 191 | */
|
|---|
| 192 | /*#define HAS_GETPGRP2 / **/
|
|---|
| 193 |
|
|---|
| 194 | /* HAS_GETPPID:
|
|---|
| 195 | * This symbol, if defined, indicates that the getppid routine is
|
|---|
| 196 | * available to get the parent process ID.
|
|---|
| 197 | */
|
|---|
| 198 | /*#define HAS_GETPPID / **/
|
|---|
| 199 |
|
|---|
| 200 | /* HAS_GETPRIORITY:
|
|---|
| 201 | * This symbol, if defined, indicates that the getpriority routine is
|
|---|
| 202 | * available to get a process's priority.
|
|---|
| 203 | */
|
|---|
| 204 | /*#define HAS_GETPRIORITY / **/
|
|---|
| 205 |
|
|---|
| 206 | /* HAS_INET_ATON:
|
|---|
| 207 | * This symbol, if defined, indicates to the C program that the
|
|---|
| 208 | * inet_aton() function is available to parse IP address "dotted-quad"
|
|---|
| 209 | * strings.
|
|---|
| 210 | */
|
|---|
| 211 | /*#define HAS_INET_ATON / **/
|
|---|
| 212 |
|
|---|
| 213 | /* HAS_KILLPG:
|
|---|
| 214 | * This symbol, if defined, indicates that the killpg routine is available
|
|---|
| 215 | * to kill process groups. If unavailable, you probably should use kill
|
|---|
| 216 | * with a negative process number.
|
|---|
| 217 | */
|
|---|
| 218 | /*#define HAS_KILLPG / **/
|
|---|
| 219 |
|
|---|
| 220 | /* HAS_LINK:
|
|---|
| 221 | * This symbol, if defined, indicates that the link routine is
|
|---|
| 222 | * available to create hard links.
|
|---|
| 223 | */
|
|---|
| 224 | /*#define HAS_LINK / **/
|
|---|
| 225 |
|
|---|
| 226 | /* HAS_LOCALECONV:
|
|---|
| 227 | * This symbol, if defined, indicates that the localeconv routine is
|
|---|
| 228 | * available for numeric and monetary formatting conventions.
|
|---|
| 229 | */
|
|---|
| 230 | /*#define HAS_LOCALECONV / **/
|
|---|
| 231 |
|
|---|
| 232 | /* HAS_LOCKF:
|
|---|
| 233 | * This symbol, if defined, indicates that the lockf routine is
|
|---|
| 234 | * available to do file locking.
|
|---|
| 235 | */
|
|---|
| 236 | /*#define HAS_LOCKF / **/
|
|---|
| 237 |
|
|---|
| 238 | /* HAS_LSTAT:
|
|---|
| 239 | * This symbol, if defined, indicates that the lstat routine is
|
|---|
| 240 | * available to do file stats on symbolic links.
|
|---|
| 241 | */
|
|---|
| 242 | /*#define HAS_LSTAT / **/
|
|---|
| 243 |
|
|---|
| 244 | /* HAS_MBLEN:
|
|---|
| 245 | * This symbol, if defined, indicates that the mblen routine is available
|
|---|
| 246 | * to find the number of bytes in a multibye character.
|
|---|
| 247 | */
|
|---|
| 248 | /*#define HAS_MBLEN / **/
|
|---|
| 249 |
|
|---|
| 250 | /* HAS_MBSTOWCS:
|
|---|
| 251 | * This symbol, if defined, indicates that the mbstowcs routine is
|
|---|
| 252 | * available to covert a multibyte string into a wide character string.
|
|---|
| 253 | */
|
|---|
| 254 | /*#define HAS_MBSTOWCS / **/
|
|---|
| 255 |
|
|---|
| 256 | /* HAS_MBTOWC:
|
|---|
| 257 | * This symbol, if defined, indicates that the mbtowc routine is available
|
|---|
| 258 | * to covert a multibyte to a wide character.
|
|---|
| 259 | */
|
|---|
| 260 | /*#define HAS_MBTOWC / **/
|
|---|
| 261 |
|
|---|
| 262 | /* HAS_MEMCMP:
|
|---|
| 263 | * This symbol, if defined, indicates that the memcmp routine is available
|
|---|
| 264 | * to compare blocks of memory.
|
|---|
| 265 | */
|
|---|
| 266 | /*#define HAS_MEMCMP / **/
|
|---|
| 267 |
|
|---|
| 268 | /* HAS_MEMCPY:
|
|---|
| 269 | * This symbol, if defined, indicates that the memcpy routine is available
|
|---|
| 270 | * to copy blocks of memory.
|
|---|
| 271 | */
|
|---|
| 272 | /*#define HAS_MEMCPY / **/
|
|---|
| 273 |
|
|---|
| 274 | /* HAS_MEMMOVE:
|
|---|
| 275 | * This symbol, if defined, indicates that the memmove routine is available
|
|---|
| 276 | * to copy potentially overlapping blocks of memory. This should be used
|
|---|
| 277 | * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
|
|---|
| 278 | * own version.
|
|---|
| 279 | */
|
|---|
| 280 | /*#define HAS_MEMMOVE / **/
|
|---|
| 281 |
|
|---|
| 282 | /* HAS_MEMSET:
|
|---|
| 283 | * This symbol, if defined, indicates that the memset routine is available
|
|---|
| 284 | * to set blocks of memory.
|
|---|
| 285 | */
|
|---|
| 286 | /*#define HAS_MEMSET / **/
|
|---|
| 287 |
|
|---|
| 288 | /* HAS_MKDIR:
|
|---|
| 289 | * This symbol, if defined, indicates that the mkdir routine is available
|
|---|
| 290 | * to create directories. Otherwise you should fork off a new process to
|
|---|
| 291 | * exec /bin/mkdir.
|
|---|
| 292 | */
|
|---|
| 293 | /*#define HAS_MKDIR / **/
|
|---|
| 294 |
|
|---|
| 295 | /* HAS_MKFIFO:
|
|---|
| 296 | * This symbol, if defined, indicates that the mkfifo routine is
|
|---|
| 297 | * available to create FIFOs. Otherwise, mknod should be able to
|
|---|
| 298 | * do it for you. However, if mkfifo is there, mknod might require
|
|---|
| 299 | * super-user privileges which mkfifo will not.
|
|---|
| 300 | */
|
|---|
| 301 | /*#define HAS_MKFIFO / **/
|
|---|
| 302 |
|
|---|
| 303 | /* HAS_MKTIME:
|
|---|
| 304 | * This symbol, if defined, indicates that the mktime routine is
|
|---|
| 305 | * available.
|
|---|
| 306 | */
|
|---|
| 307 | /*#define HAS_MKTIME / **/
|
|---|
| 308 |
|
|---|
| 309 | /* HAS_MSYNC:
|
|---|
| 310 | * This symbol, if defined, indicates that the msync system call is
|
|---|
| 311 | * available to synchronize a mapped file.
|
|---|
| 312 | */
|
|---|
| 313 | /*#define HAS_MSYNC / **/
|
|---|
| 314 |
|
|---|
| 315 | /* HAS_MUNMAP:
|
|---|
| 316 | * This symbol, if defined, indicates that the munmap system call is
|
|---|
| 317 | * available to unmap a region, usually mapped by mmap().
|
|---|
| 318 | */
|
|---|
| 319 | /*#define HAS_MUNMAP / **/
|
|---|
| 320 |
|
|---|
| 321 | /* HAS_NICE:
|
|---|
| 322 | * This symbol, if defined, indicates that the nice routine is
|
|---|
| 323 | * available.
|
|---|
| 324 | */
|
|---|
| 325 | /*#define HAS_NICE / **/
|
|---|
| 326 |
|
|---|
| 327 | /* HAS_PATHCONF:
|
|---|
| 328 | * This symbol, if defined, indicates that pathconf() is available
|
|---|
| 329 | * to determine file-system related limits and options associated
|
|---|
| 330 | * with a given filename.
|
|---|
| 331 | */
|
|---|
| 332 | /* HAS_FPATHCONF:
|
|---|
| 333 | * This symbol, if defined, indicates that pathconf() is available
|
|---|
| 334 | * to determine file-system related limits and options associated
|
|---|
| 335 | * with a given open file descriptor.
|
|---|
| 336 | */
|
|---|
| 337 | /*#define HAS_PATHCONF / **/
|
|---|
| 338 | /*#define HAS_FPATHCONF / **/
|
|---|
| 339 |
|
|---|
| 340 | /* HAS_PAUSE:
|
|---|
| 341 | * This symbol, if defined, indicates that the pause routine is
|
|---|
| 342 | * available to suspend a process until a signal is received.
|
|---|
| 343 | */
|
|---|
| 344 | /*#define HAS_PAUSE / **/
|
|---|
| 345 |
|
|---|
| 346 | /* HAS_PIPE:
|
|---|
| 347 | * This symbol, if defined, indicates that the pipe routine is
|
|---|
| 348 | * available to create an inter-process channel.
|
|---|
| 349 | */
|
|---|
| 350 | /*#define HAS_PIPE / **/
|
|---|
| 351 |
|
|---|
| 352 | /* HAS_POLL:
|
|---|
| 353 | * This symbol, if defined, indicates that the poll routine is
|
|---|
| 354 | * available to poll active file descriptors. You may safely
|
|---|
| 355 | * include <poll.h> when this symbol is defined.
|
|---|
| 356 | */
|
|---|
| 357 | /*#define HAS_POLL / **/
|
|---|
| 358 |
|
|---|
| 359 | /* HAS_READDIR:
|
|---|
| 360 | * This symbol, if defined, indicates that the readdir routine is
|
|---|
| 361 | * available to read directory entries. You may have to include
|
|---|
| 362 | * <dirent.h>. See I_DIRENT.
|
|---|
| 363 | */
|
|---|
| 364 | #define HAS_READDIR /**/
|
|---|
| 365 |
|
|---|
| 366 | /* HAS_SEEKDIR:
|
|---|
| 367 | * This symbol, if defined, indicates that the seekdir routine is
|
|---|
| 368 | * available. You may have to include <dirent.h>. See I_DIRENT.
|
|---|
| 369 | */
|
|---|
| 370 | /*#define HAS_SEEKDIR / **/
|
|---|
| 371 |
|
|---|
| 372 | /* HAS_TELLDIR:
|
|---|
| 373 | * This symbol, if defined, indicates that the telldir routine is
|
|---|
| 374 | * available. You may have to include <dirent.h>. See I_DIRENT.
|
|---|
| 375 | */
|
|---|
| 376 | /*#define HAS_TELLDIR / **/
|
|---|
| 377 |
|
|---|
| 378 | /* HAS_REWINDDIR:
|
|---|
| 379 | * This symbol, if defined, indicates that the rewinddir routine is
|
|---|
| 380 | * available. You may have to include <dirent.h>. See I_DIRENT.
|
|---|
| 381 | */
|
|---|
| 382 | /*#define HAS_REWINDDIR / **/
|
|---|
| 383 |
|
|---|
| 384 | /* HAS_READLINK:
|
|---|
| 385 | * This symbol, if defined, indicates that the readlink routine is
|
|---|
| 386 | * available to read the value of a symbolic link.
|
|---|
| 387 | */
|
|---|
| 388 | /*#define HAS_READLINK / **/
|
|---|
| 389 |
|
|---|
| 390 | /* HAS_RENAME:
|
|---|
| 391 | * This symbol, if defined, indicates that the rename routine is available
|
|---|
| 392 | * to rename files. Otherwise you should do the unlink(), link(), unlink()
|
|---|
| 393 | * trick.
|
|---|
| 394 | */
|
|---|
| 395 | #define HAS_RENAME /**/
|
|---|
| 396 |
|
|---|
| 397 | /* HAS_RMDIR:
|
|---|
| 398 | * This symbol, if defined, indicates that the rmdir routine is
|
|---|
| 399 | * available to remove directories. Otherwise you should fork off a
|
|---|
| 400 | * new process to exec /bin/rmdir.
|
|---|
| 401 | */
|
|---|
| 402 | /*#define HAS_RMDIR / **/
|
|---|
| 403 |
|
|---|
| 404 | /* HAS_SELECT:
|
|---|
| 405 | * This symbol, if defined, indicates that the select routine is
|
|---|
| 406 | * available to select active file descriptors. If the timeout field
|
|---|
| 407 | * is used, <sys/time.h> may need to be included.
|
|---|
| 408 | */
|
|---|
| 409 | /*#define HAS_SELECT / **/
|
|---|
| 410 |
|
|---|
| 411 | /* HAS_SETEGID:
|
|---|
| 412 | * This symbol, if defined, indicates that the setegid routine is available
|
|---|
| 413 | * to change the effective gid of the current program.
|
|---|
| 414 | */
|
|---|
| 415 | /*#define HAS_SETEGID / **/
|
|---|
| 416 |
|
|---|
| 417 | /* HAS_SETEUID:
|
|---|
| 418 | * This symbol, if defined, indicates that the seteuid routine is available
|
|---|
| 419 | * to change the effective uid of the current program.
|
|---|
| 420 | */
|
|---|
| 421 | /*#define HAS_SETEUID / **/
|
|---|
| 422 |
|
|---|
| 423 | /* HAS_SETLINEBUF:
|
|---|
| 424 | * This symbol, if defined, indicates that the setlinebuf routine is
|
|---|
| 425 | * available to change stderr or stdout from block-buffered or unbuffered
|
|---|
| 426 | * to a line-buffered mode.
|
|---|
| 427 | */
|
|---|
| 428 | /*#define HAS_SETLINEBUF / **/
|
|---|
| 429 |
|
|---|
| 430 | /* HAS_SETLOCALE:
|
|---|
| 431 | * This symbol, if defined, indicates that the setlocale routine is
|
|---|
| 432 | * available to handle locale-specific ctype implementations.
|
|---|
| 433 | */
|
|---|
| 434 | /*#define HAS_SETLOCALE / **/
|
|---|
| 435 |
|
|---|
| 436 | /* HAS_SETPGID:
|
|---|
| 437 | * This symbol, if defined, indicates that the setpgid(pid, gpid)
|
|---|
| 438 | * routine is available to set process group ID.
|
|---|
| 439 | */
|
|---|
| 440 | /*#define HAS_SETPGID / **/
|
|---|
| 441 |
|
|---|
| 442 | /* HAS_SETPGRP2:
|
|---|
| 443 | * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
|
|---|
| 444 | * routine is available to set the current process group.
|
|---|
| 445 | */
|
|---|
| 446 | /*#define HAS_SETPGRP2 / **/
|
|---|
| 447 |
|
|---|
| 448 | /* HAS_SETPRIORITY:
|
|---|
| 449 | * This symbol, if defined, indicates that the setpriority routine is
|
|---|
| 450 | * available to set a process's priority.
|
|---|
| 451 | */
|
|---|
| 452 | /*#define HAS_SETPRIORITY / **/
|
|---|
| 453 |
|
|---|
| 454 | /* HAS_SETREGID:
|
|---|
| 455 | * This symbol, if defined, indicates that the setregid routine is
|
|---|
| 456 | * available to change the real and effective gid of the current
|
|---|
| 457 | * process.
|
|---|
| 458 | */
|
|---|
| 459 | /* HAS_SETRESGID:
|
|---|
| 460 | * This symbol, if defined, indicates that the setresgid routine is
|
|---|
| 461 | * available to change the real, effective and saved gid of the current
|
|---|
| 462 | * process.
|
|---|
| 463 | */
|
|---|
| 464 | /*#define HAS_SETREGID / **/
|
|---|
| 465 | /*#define HAS_SETRESGID / **/
|
|---|
| 466 |
|
|---|
| 467 | /* HAS_SETREUID:
|
|---|
| 468 | * This symbol, if defined, indicates that the setreuid routine is
|
|---|
| 469 | * available to change the real and effective uid of the current
|
|---|
| 470 | * process.
|
|---|
| 471 | */
|
|---|
| 472 | /* HAS_SETRESUID:
|
|---|
| 473 | * This symbol, if defined, indicates that the setresuid routine is
|
|---|
| 474 | * available to change the real, effective and saved uid of the current
|
|---|
| 475 | * process.
|
|---|
| 476 | */
|
|---|
| 477 | /*#define HAS_SETREUID / **/
|
|---|
| 478 | /*#define HAS_SETRESUID / **/
|
|---|
| 479 |
|
|---|
| 480 | /* HAS_SETRGID:
|
|---|
| 481 | * This symbol, if defined, indicates that the setrgid routine is available
|
|---|
| 482 | * to change the real gid of the current program.
|
|---|
| 483 | */
|
|---|
| 484 | /*#define HAS_SETRGID / **/
|
|---|
| 485 |
|
|---|
| 486 | /* HAS_SETRUID:
|
|---|
| 487 | * This symbol, if defined, indicates that the setruid routine is available
|
|---|
| 488 | * to change the real uid of the current program.
|
|---|
| 489 | */
|
|---|
| 490 | /*#define HAS_SETRUID / **/
|
|---|
| 491 |
|
|---|
| 492 | /* HAS_SETSID:
|
|---|
| 493 | * This symbol, if defined, indicates that the setsid routine is
|
|---|
| 494 | * available to set the process group ID.
|
|---|
| 495 | */
|
|---|
| 496 | /*#define HAS_SETSID / **/
|
|---|
| 497 |
|
|---|
| 498 | /* HAS_STRCHR:
|
|---|
| 499 | * This symbol is defined to indicate that the strchr()/strrchr()
|
|---|
| 500 | * functions are available for string searching. If not, try the
|
|---|
| 501 | * index()/rindex() pair.
|
|---|
| 502 | */
|
|---|
| 503 | /* HAS_INDEX:
|
|---|
| 504 | * This symbol is defined to indicate that the index()/rindex()
|
|---|
| 505 | * functions are available for string searching.
|
|---|
| 506 | */
|
|---|
| 507 | /*#define HAS_STRCHR / **/
|
|---|
| 508 | /*#define HAS_INDEX / **/
|
|---|
| 509 |
|
|---|
| 510 | /* HAS_STRCOLL:
|
|---|
| 511 | * This symbol, if defined, indicates that the strcoll routine is
|
|---|
| 512 | * available to compare strings using collating information.
|
|---|
| 513 | */
|
|---|
| 514 | /*#define HAS_STRCOLL / **/
|
|---|
| 515 |
|
|---|
| 516 | /* USE_STRUCT_COPY:
|
|---|
| 517 | * This symbol, if defined, indicates that this C compiler knows how
|
|---|
| 518 | * to copy structures. If undefined, you'll need to use a block copy
|
|---|
| 519 | * routine of some sort instead.
|
|---|
| 520 | */
|
|---|
| 521 | /*#define USE_STRUCT_COPY / **/
|
|---|
| 522 |
|
|---|
| 523 | /* HAS_STRTOD:
|
|---|
| 524 | * This symbol, if defined, indicates that the strtod routine is
|
|---|
| 525 | * available to provide better numeric string conversion than atof().
|
|---|
| 526 | */
|
|---|
| 527 | /*#define HAS_STRTOD / **/
|
|---|
| 528 |
|
|---|
| 529 | /* HAS_STRTOL:
|
|---|
| 530 | * This symbol, if defined, indicates that the strtol routine is available
|
|---|
| 531 | * to provide better numeric string conversion than atoi() and friends.
|
|---|
| 532 | */
|
|---|
| 533 | /*#define HAS_STRTOL / **/
|
|---|
| 534 |
|
|---|
| 535 | /* HAS_STRXFRM:
|
|---|
| 536 | * This symbol, if defined, indicates that the strxfrm() routine is
|
|---|
| 537 | * available to transform strings.
|
|---|
| 538 | */
|
|---|
| 539 | /*#define HAS_STRXFRM / **/
|
|---|
| 540 |
|
|---|
| 541 | /* HAS_SYMLINK:
|
|---|
| 542 | * This symbol, if defined, indicates that the symlink routine is available
|
|---|
| 543 | * to create symbolic links.
|
|---|
| 544 | */
|
|---|
| 545 | /*#define HAS_SYMLINK / **/
|
|---|
| 546 |
|
|---|
| 547 | /* HAS_SYSCALL:
|
|---|
| 548 | * This symbol, if defined, indicates that the syscall routine is
|
|---|
| 549 | * available to call arbitrary system calls. If undefined, that's tough.
|
|---|
| 550 | */
|
|---|
| 551 | /*#define HAS_SYSCALL / **/
|
|---|
| 552 |
|
|---|
| 553 | /* HAS_SYSCONF:
|
|---|
| 554 | * This symbol, if defined, indicates that sysconf() is available
|
|---|
| 555 | * to determine system related limits and options.
|
|---|
| 556 | */
|
|---|
| 557 | /*#define HAS_SYSCONF / **/
|
|---|
| 558 |
|
|---|
| 559 | /* HAS_SYSTEM:
|
|---|
| 560 | * This symbol, if defined, indicates that the system routine is
|
|---|
| 561 | * available to issue a shell command.
|
|---|
| 562 | */
|
|---|
| 563 | /*#define HAS_SYSTEM / **/
|
|---|
| 564 |
|
|---|
| 565 | /* HAS_TCGETPGRP:
|
|---|
| 566 | * This symbol, if defined, indicates that the tcgetpgrp routine is
|
|---|
| 567 | * available to get foreground process group ID.
|
|---|
| 568 | */
|
|---|
| 569 | /*#define HAS_TCGETPGRP / **/
|
|---|
| 570 |
|
|---|
| 571 | /* HAS_TCSETPGRP:
|
|---|
| 572 | * This symbol, if defined, indicates that the tcsetpgrp routine is
|
|---|
| 573 | * available to set foreground process group ID.
|
|---|
| 574 | */
|
|---|
| 575 | /*#define HAS_TCSETPGRP / **/
|
|---|
| 576 |
|
|---|
| 577 | /* HAS_TRUNCATE:
|
|---|
| 578 | * This symbol, if defined, indicates that the truncate routine is
|
|---|
| 579 | * available to truncate files.
|
|---|
| 580 | */
|
|---|
| 581 | /*#define HAS_TRUNCATE / **/
|
|---|
| 582 |
|
|---|
| 583 | /* HAS_TZNAME:
|
|---|
| 584 | * This symbol, if defined, indicates that the tzname[] array is
|
|---|
| 585 | * available to access timezone names.
|
|---|
| 586 | */
|
|---|
| 587 | /*#define HAS_TZNAME / **/
|
|---|
| 588 |
|
|---|
| 589 | /* HAS_UMASK:
|
|---|
| 590 | * This symbol, if defined, indicates that the umask routine is
|
|---|
| 591 | * available to set and get the value of the file creation mask.
|
|---|
| 592 | */
|
|---|
| 593 | /*#define HAS_UMASK / **/
|
|---|
| 594 |
|
|---|
| 595 | /* HAS_USLEEP:
|
|---|
| 596 | * This symbol, if defined, indicates that the usleep routine is
|
|---|
| 597 | * available to let the process sleep on a sub-second accuracy.
|
|---|
| 598 | */
|
|---|
| 599 | /*#define HAS_USLEEP / **/
|
|---|
| 600 |
|
|---|
| 601 | /* HASVOLATILE:
|
|---|
| 602 | * This symbol, if defined, indicates that this C compiler knows about
|
|---|
| 603 | * the volatile declaration.
|
|---|
| 604 | */
|
|---|
| 605 | /*#define HASVOLATILE / **/
|
|---|
| 606 | #ifndef HASVOLATILE
|
|---|
| 607 | #define volatile
|
|---|
| 608 | #endif
|
|---|
| 609 |
|
|---|
| 610 | /* HAS_WAIT4:
|
|---|
| 611 | * This symbol, if defined, indicates that wait4() exists.
|
|---|
| 612 | */
|
|---|
| 613 | /*#define HAS_WAIT4 / **/
|
|---|
| 614 |
|
|---|
| 615 | /* HAS_WAITPID:
|
|---|
| 616 | * This symbol, if defined, indicates that the waitpid routine is
|
|---|
| 617 | * available to wait for child process.
|
|---|
| 618 | */
|
|---|
| 619 | /*#define HAS_WAITPID / **/
|
|---|
| 620 |
|
|---|
| 621 | /* HAS_WCSTOMBS:
|
|---|
| 622 | * This symbol, if defined, indicates that the wcstombs routine is
|
|---|
| 623 | * available to convert wide character strings to multibyte strings.
|
|---|
| 624 | */
|
|---|
| 625 | /*#define HAS_WCSTOMBS / **/
|
|---|
| 626 |
|
|---|
| 627 | /* HAS_WCTOMB:
|
|---|
| 628 | * This symbol, if defined, indicates that the wctomb routine is available
|
|---|
| 629 | * to covert a wide character to a multibyte.
|
|---|
| 630 | */
|
|---|
| 631 | /*#define HAS_WCTOMB / **/
|
|---|
| 632 |
|
|---|
| 633 | /* I_ARPA_INET:
|
|---|
| 634 | * This symbol, if defined, indicates to the C program that it should
|
|---|
| 635 | * include <arpa/inet.h> to get inet_addr and friends declarations.
|
|---|
| 636 | */
|
|---|
| 637 | /*#define I_ARPA_INET / **/
|
|---|
| 638 |
|
|---|
| 639 | /* I_DBM:
|
|---|
| 640 | * This symbol, if defined, indicates that <dbm.h> exists and should
|
|---|
| 641 | * be included.
|
|---|
| 642 | */
|
|---|
| 643 | /* I_RPCSVC_DBM:
|
|---|
| 644 | * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
|
|---|
| 645 | * should be included.
|
|---|
| 646 | */
|
|---|
| 647 | /*#define I_DBM / **/
|
|---|
| 648 | /*#define I_RPCSVC_DBM / **/
|
|---|
| 649 |
|
|---|
| 650 | /* I_DIRENT:
|
|---|
| 651 | * This symbol, if defined, indicates to the C program that it should
|
|---|
| 652 | * include <dirent.h>. Using this symbol also triggers the definition
|
|---|
| 653 | * of the Direntry_t define which ends up being 'struct dirent' or
|
|---|
| 654 | * 'struct direct' depending on the availability of <dirent.h>.
|
|---|
| 655 | */
|
|---|
| 656 | /* DIRNAMLEN:
|
|---|
| 657 | * This symbol, if defined, indicates to the C program that the length
|
|---|
| 658 | * of directory entry names is provided by a d_namlen field. Otherwise
|
|---|
| 659 | * you need to do strlen() on the d_name field.
|
|---|
| 660 | */
|
|---|
| 661 | /* Direntry_t:
|
|---|
| 662 | * This symbol is set to 'struct direct' or 'struct dirent' depending on
|
|---|
| 663 | * whether dirent is available or not. You should use this pseudo type to
|
|---|
| 664 | * portably declare your directory entries.
|
|---|
| 665 | */
|
|---|
| 666 | #define I_DIRENT /**/
|
|---|
| 667 | /*#define DIRNAMLEN / **/
|
|---|
| 668 | #define Direntry_t struct dirent
|
|---|
| 669 |
|
|---|
| 670 | /* I_DLFCN:
|
|---|
| 671 | * This symbol, if defined, indicates that <dlfcn.h> exists and should
|
|---|
| 672 | * be included.
|
|---|
| 673 | */
|
|---|
| 674 | /*#define I_DLFCN / **/
|
|---|
| 675 |
|
|---|
| 676 | /* I_FCNTL:
|
|---|
| 677 | * This manifest constant tells the C program to include <fcntl.h>.
|
|---|
| 678 | */
|
|---|
| 679 | /*#define I_FCNTL / **/
|
|---|
| 680 |
|
|---|
| 681 | /* I_FLOAT:
|
|---|
| 682 | * This symbol, if defined, indicates to the C program that it should
|
|---|
| 683 | * include <float.h> to get definition of symbols like DBL_MAX or
|
|---|
| 684 | * DBL_MIN, i.e. machine dependent floating point values.
|
|---|
| 685 | */
|
|---|
| 686 | /*#define I_FLOAT / **/
|
|---|
| 687 |
|
|---|
| 688 | /* I_LIMITS:
|
|---|
| 689 | * This symbol, if defined, indicates to the C program that it should
|
|---|
| 690 | * include <limits.h> to get definition of symbols like WORD_BIT or
|
|---|
| 691 | * LONG_MAX, i.e. machine dependant limitations.
|
|---|
| 692 | */
|
|---|
| 693 | /*#define I_LIMITS / **/
|
|---|
| 694 |
|
|---|
| 695 | /* I_LOCALE:
|
|---|
| 696 | * This symbol, if defined, indicates to the C program that it should
|
|---|
| 697 | * include <locale.h>.
|
|---|
| 698 | */
|
|---|
| 699 | /*#define I_LOCALE / **/
|
|---|
| 700 |
|
|---|
| 701 | /* I_MATH:
|
|---|
| 702 | * This symbol, if defined, indicates to the C program that it should
|
|---|
| 703 | * include <math.h>.
|
|---|
| 704 | */
|
|---|
| 705 | #define I_MATH /**/
|
|---|
| 706 |
|
|---|
| 707 | /* I_MEMORY:
|
|---|
| 708 | * This symbol, if defined, indicates to the C program that it should
|
|---|
| 709 | * include <memory.h>.
|
|---|
| 710 | */
|
|---|
| 711 | /*#define I_MEMORY / **/
|
|---|
| 712 |
|
|---|
| 713 | /* I_NET_ERRNO:
|
|---|
| 714 | * This symbol, if defined, indicates that <net/errno.h> exists and
|
|---|
| 715 | * should be included.
|
|---|
| 716 | */
|
|---|
| 717 | /*#define I_NET_ERRNO / **/
|
|---|
| 718 |
|
|---|
| 719 | /* I_NETINET_IN:
|
|---|
| 720 | * This symbol, if defined, indicates to the C program that it should
|
|---|
| 721 | * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
|
|---|
| 722 | */
|
|---|
| 723 | /*#define I_NETINET_IN / **/
|
|---|
| 724 |
|
|---|
| 725 | /* I_SFIO:
|
|---|
| 726 | * This symbol, if defined, indicates to the C program that it should
|
|---|
| 727 | * include <sfio.h>.
|
|---|
| 728 | */
|
|---|
| 729 | /*#define I_SFIO / **/
|
|---|
| 730 |
|
|---|
| 731 | /* I_STDDEF:
|
|---|
| 732 | * This symbol, if defined, indicates that <stddef.h> exists and should
|
|---|
| 733 | * be included.
|
|---|
| 734 | */
|
|---|
| 735 | /*#define I_STDDEF / **/
|
|---|
| 736 |
|
|---|
| 737 | /* I_STDLIB:
|
|---|
| 738 | * This symbol, if defined, indicates that <stdlib.h> exists and should
|
|---|
| 739 | * be included.
|
|---|
| 740 | */
|
|---|
| 741 | #define I_STDLIB /**/
|
|---|
| 742 |
|
|---|
| 743 | /* I_STRING:
|
|---|
| 744 | * This symbol, if defined, indicates to the C program that it should
|
|---|
| 745 | * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
|
|---|
| 746 | */
|
|---|
| 747 | #define I_STRING /**/
|
|---|
| 748 |
|
|---|
| 749 | /* I_SYS_DIR:
|
|---|
| 750 | * This symbol, if defined, indicates to the C program that it should
|
|---|
| 751 | * include <sys/dir.h>.
|
|---|
| 752 | */
|
|---|
| 753 | /*#define I_SYS_DIR / **/
|
|---|
| 754 |
|
|---|
| 755 | /* I_SYS_FILE:
|
|---|
| 756 | * This symbol, if defined, indicates to the C program that it should
|
|---|
| 757 | * include <sys/file.h> to get definition of R_OK and friends.
|
|---|
| 758 | */
|
|---|
| 759 | /*#define I_SYS_FILE / **/
|
|---|
| 760 |
|
|---|
| 761 | /* I_SYS_IOCTL:
|
|---|
| 762 | * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
|
|---|
| 763 | * be included. Otherwise, include <sgtty.h> or <termio.h>.
|
|---|
| 764 | */
|
|---|
| 765 | /* I_SYS_SOCKIO:
|
|---|
| 766 | * This symbol, if defined, indicates the <sys/sockio.h> should be included
|
|---|
| 767 | * to get socket ioctl options, like SIOCATMARK.
|
|---|
| 768 | */
|
|---|
| 769 | /*#define I_SYS_IOCTL / **/
|
|---|
| 770 | /*#define I_SYS_SOCKIO / **/
|
|---|
| 771 |
|
|---|
| 772 | /* I_SYS_NDIR:
|
|---|
| 773 | * This symbol, if defined, indicates to the C program that it should
|
|---|
| 774 | * include <sys/ndir.h>.
|
|---|
| 775 | */
|
|---|
| 776 | /*#define I_SYS_NDIR / **/
|
|---|
| 777 |
|
|---|
| 778 | /* I_SYS_PARAM:
|
|---|
| 779 | * This symbol, if defined, indicates to the C program that it should
|
|---|
| 780 | * include <sys/param.h>.
|
|---|
| 781 | */
|
|---|
| 782 | /*#define I_SYS_PARAM / **/
|
|---|
| 783 |
|
|---|
| 784 | /* I_SYS_RESOURCE:
|
|---|
| 785 | * This symbol, if defined, indicates to the C program that it should
|
|---|
| 786 | * include <sys/resource.h>.
|
|---|
| 787 | */
|
|---|
| 788 | /*#define I_SYS_RESOURCE / **/
|
|---|
| 789 |
|
|---|
| 790 | /* I_SYS_SELECT:
|
|---|
| 791 | * This symbol, if defined, indicates to the C program that it should
|
|---|
| 792 | * include <sys/select.h> in order to get definition of struct timeval.
|
|---|
| 793 | */
|
|---|
| 794 | /*#define I_SYS_SELECT / **/
|
|---|
| 795 |
|
|---|
| 796 | /* I_SYS_STAT:
|
|---|
| 797 | * This symbol, if defined, indicates to the C program that it should
|
|---|
| 798 | * include <sys/stat.h>.
|
|---|
| 799 | */
|
|---|
| 800 | #define I_SYS_STAT /**/
|
|---|
| 801 |
|
|---|
| 802 | /* I_SYS_TIMES:
|
|---|
| 803 | * This symbol, if defined, indicates to the C program that it should
|
|---|
| 804 | * include <sys/times.h>.
|
|---|
| 805 | */
|
|---|
| 806 | /*#define I_SYS_TIMES / **/
|
|---|
| 807 |
|
|---|
| 808 | /* I_SYS_TYPES:
|
|---|
| 809 | * This symbol, if defined, indicates to the C program that it should
|
|---|
| 810 | * include <sys/types.h>.
|
|---|
| 811 | */
|
|---|
| 812 | /*#define I_SYS_TYPES / **/
|
|---|
| 813 |
|
|---|
| 814 | /* I_SYS_UN:
|
|---|
| 815 | * This symbol, if defined, indicates to the C program that it should
|
|---|
| 816 | * include <sys/un.h> to get UNIX domain socket definitions.
|
|---|
| 817 | */
|
|---|
| 818 | /*#define I_SYS_UN / **/
|
|---|
| 819 |
|
|---|
| 820 | /* I_SYS_WAIT:
|
|---|
| 821 | * This symbol, if defined, indicates to the C program that it should
|
|---|
| 822 | * include <sys/wait.h>.
|
|---|
| 823 | */
|
|---|
| 824 | /*#define I_SYS_WAIT / **/
|
|---|
| 825 |
|
|---|
| 826 | /* I_TERMIO:
|
|---|
| 827 | * This symbol, if defined, indicates that the program should include
|
|---|
| 828 | * <termio.h> rather than <sgtty.h>. There are also differences in
|
|---|
| 829 | * the ioctl() calls that depend on the value of this symbol.
|
|---|
| 830 | */
|
|---|
| 831 | /* I_TERMIOS:
|
|---|
| 832 | * This symbol, if defined, indicates that the program should include
|
|---|
| 833 | * the POSIX termios.h rather than sgtty.h or termio.h.
|
|---|
| 834 | * There are also differences in the ioctl() calls that depend on the
|
|---|
| 835 | * value of this symbol.
|
|---|
| 836 | */
|
|---|
| 837 | /* I_SGTTY:
|
|---|
| 838 | * This symbol, if defined, indicates that the program should include
|
|---|
| 839 | * <sgtty.h> rather than <termio.h>. There are also differences in
|
|---|
| 840 | * the ioctl() calls that depend on the value of this symbol.
|
|---|
| 841 | */
|
|---|
| 842 | /*#define I_TERMIO / **/
|
|---|
| 843 | /*#define I_TERMIOS / **/
|
|---|
| 844 | /*#define I_SGTTY / **/
|
|---|
| 845 |
|
|---|
| 846 | /* I_UNISTD:
|
|---|
| 847 | * This symbol, if defined, indicates to the C program that it should
|
|---|
| 848 | * include <unistd.h>.
|
|---|
| 849 | */
|
|---|
| 850 | /*#define I_UNISTD / **/
|
|---|
| 851 |
|
|---|
| 852 | /* I_UTIME:
|
|---|
| 853 | * This symbol, if defined, indicates to the C program that it should
|
|---|
| 854 | * include <utime.h>.
|
|---|
| 855 | */
|
|---|
| 856 | /*#define I_UTIME / **/
|
|---|
| 857 |
|
|---|
| 858 | /* I_VALUES:
|
|---|
| 859 | * This symbol, if defined, indicates to the C program that it should
|
|---|
| 860 | * include <values.h> to get definition of symbols like MINFLOAT or
|
|---|
| 861 | * MAXLONG, i.e. machine dependant limitations. Probably, you
|
|---|
| 862 | * should use <limits.h> instead, if it is available.
|
|---|
| 863 | */
|
|---|
| 864 | /*#define I_VALUES / **/
|
|---|
| 865 |
|
|---|
| 866 | /* I_VFORK:
|
|---|
| 867 | * This symbol, if defined, indicates to the C program that it should
|
|---|
| 868 | * include vfork.h.
|
|---|
| 869 | */
|
|---|
| 870 | /*#define I_VFORK / **/
|
|---|
| 871 |
|
|---|
| 872 | /* HAS_ACCESSX:
|
|---|
| 873 | * This symbol, if defined, indicates that the accessx routine is
|
|---|
| 874 | * available to do extended access checks.
|
|---|
| 875 | */
|
|---|
| 876 | /*#define HAS_ACCESSX / **/
|
|---|
| 877 |
|
|---|
| 878 | /* HAS_EACCESS:
|
|---|
| 879 | * This symbol, if defined, indicates that the eaccess routine is
|
|---|
| 880 | * available to do extended access checks.
|
|---|
| 881 | */
|
|---|
| 882 | /*#define HAS_EACCESS / **/
|
|---|
| 883 |
|
|---|
| 884 | /* I_SYS_ACCESS:
|
|---|
| 885 | * This symbol, if defined, indicates to the C program that it should
|
|---|
| 886 | * include <sys/access.h>.
|
|---|
| 887 | */
|
|---|
| 888 | /*#define I_SYS_ACCESS / **/
|
|---|
| 889 |
|
|---|
| 890 | /* I_SYS_SECURITY:
|
|---|
| 891 | * This symbol, if defined, indicates to the C program that it should
|
|---|
| 892 | * include <sys/security.h>.
|
|---|
| 893 | */
|
|---|
| 894 | /*#define I_SYS_SECURITY / **/
|
|---|
| 895 |
|
|---|
| 896 | /* OSNAME:
|
|---|
| 897 | * This symbol contains the name of the operating system, as determined
|
|---|
| 898 | * by Configure. You shouldn't rely on it too much; the specific
|
|---|
| 899 | * feature tests from Configure are generally more reliable.
|
|---|
| 900 | */
|
|---|
| 901 | /* OSVERS:
|
|---|
| 902 | * This symbol contains the version of the operating system, as determined
|
|---|
| 903 | * by Configure. You shouldn't rely on it too much; the specific
|
|---|
| 904 | * feature tests from Configure are generally more reliable.
|
|---|
| 905 | */
|
|---|
| 906 | #define OSNAME "unknown" /**/
|
|---|
| 907 | #define OSVERS "" /**/
|
|---|
| 908 |
|
|---|
| 909 | /* USE_CROSS_COMPILE:
|
|---|
| 910 | * This symbol, if defined, indicates that Perl is being cross-compiled.
|
|---|
| 911 | */
|
|---|
| 912 | /* PERL_TARGETARCH:
|
|---|
| 913 | * This symbol, if defined, indicates the target architecture
|
|---|
| 914 | * Perl has been cross-compiled to. Undefined if not a cross-compile.
|
|---|
| 915 | */
|
|---|
| 916 | #ifndef USE_CROSS_COMPILE
|
|---|
| 917 | /*#define USE_CROSS_COMPILE / **/
|
|---|
| 918 | #define PERL_TARGETARCH "" /**/
|
|---|
| 919 | #endif
|
|---|
| 920 |
|
|---|
| 921 | /* MULTIARCH:
|
|---|
| 922 | * This symbol, if defined, signifies that the build
|
|---|
| 923 | * process will produce some binary files that are going to be
|
|---|
| 924 | * used in a cross-platform environment. This is the case for
|
|---|
| 925 | * example with the NeXT "fat" binaries that contain executables
|
|---|
| 926 | * for several CPUs.
|
|---|
| 927 | */
|
|---|
| 928 | /*#define MULTIARCH / **/
|
|---|
| 929 |
|
|---|
| 930 | /* MEM_ALIGNBYTES:
|
|---|
| 931 | * This symbol contains the number of bytes required to align a
|
|---|
| 932 | * double, or a long double when applicable. Usual values are 2,
|
|---|
| 933 | * 4 and 8. The default is eight, for safety.
|
|---|
| 934 | */
|
|---|
| 935 | #if defined(USE_CROSS_COMPILE) || defined(MULTIARCH)
|
|---|
| 936 | # define MEM_ALIGNBYTES 8
|
|---|
| 937 | #else
|
|---|
| 938 | #define MEM_ALIGNBYTES 4
|
|---|
| 939 | #endif
|
|---|
| 940 |
|
|---|
| 941 | /* ARCHLIB:
|
|---|
| 942 | * This variable, if defined, holds the name of the directory in
|
|---|
| 943 | * which the user wants to put architecture-dependent public
|
|---|
| 944 | * library files for . It is most often a local directory
|
|---|
| 945 | * such as /usr/local/lib. Programs using this variable must be
|
|---|
| 946 | * prepared to deal with filename expansion. If ARCHLIB is the
|
|---|
| 947 | * same as PRIVLIB, it is not defined, since presumably the
|
|---|
| 948 | * program already searches PRIVLIB.
|
|---|
| 949 | */
|
|---|
| 950 | /* ARCHLIB_EXP:
|
|---|
| 951 | * This symbol contains the ~name expanded version of ARCHLIB, to be used
|
|---|
| 952 | * in programs that are not prepared to deal with ~ expansion at run-time.
|
|---|
| 953 | */
|
|---|
| 954 | /*#define ARCHLIB "/usr/local/lib/perl5/5.9/unknown" / **/
|
|---|
| 955 | /*#define ARCHLIB_EXP "/usr/local/lib/perl5/5.9/unknown" / **/
|
|---|
| 956 |
|
|---|
| 957 | /* ARCHNAME:
|
|---|
| 958 | * This symbol holds a string representing the architecture name.
|
|---|
| 959 | * It may be used to construct an architecture-dependant pathname
|
|---|
| 960 | * where library files may be held under a private library, for
|
|---|
| 961 | * instance.
|
|---|
| 962 | */
|
|---|
| 963 | #define ARCHNAME "unknown" /**/
|
|---|
| 964 |
|
|---|
| 965 | /* HAS_ATOLF:
|
|---|
| 966 | * This symbol, if defined, indicates that the atolf routine is
|
|---|
| 967 | * available to convert strings into long doubles.
|
|---|
| 968 | */
|
|---|
| 969 | /*#define HAS_ATOLF / **/
|
|---|
| 970 |
|
|---|
| 971 | /* HAS_ATOLL:
|
|---|
| 972 | * This symbol, if defined, indicates that the atoll routine is
|
|---|
| 973 | * available to convert strings into long longs.
|
|---|
| 974 | */
|
|---|
| 975 | /*#define HAS_ATOLL / **/
|
|---|
| 976 |
|
|---|
| 977 | /* BIN:
|
|---|
| 978 | * This symbol holds the path of the bin directory where the package will
|
|---|
| 979 | * be installed. Program must be prepared to deal with ~name substitution.
|
|---|
| 980 | */
|
|---|
| 981 | /* BIN_EXP:
|
|---|
| 982 | * This symbol is the filename expanded version of the BIN symbol, for
|
|---|
| 983 | * programs that do not want to deal with that at run-time.
|
|---|
| 984 | */
|
|---|
| 985 | #define BIN "/usr/local/bin" /**/
|
|---|
| 986 | #define BIN_EXP "" /**/
|
|---|
| 987 |
|
|---|
| 988 | /* INTSIZE:
|
|---|
| 989 | * This symbol contains the value of sizeof(int) so that the C
|
|---|
| 990 | * preprocessor can make decisions based on it.
|
|---|
| 991 | */
|
|---|
| 992 | /* LONGSIZE:
|
|---|
| 993 | * This symbol contains the value of sizeof(long) so that the C
|
|---|
| 994 | * preprocessor can make decisions based on it.
|
|---|
| 995 | */
|
|---|
| 996 | /* SHORTSIZE:
|
|---|
| 997 | * This symbol contains the value of sizeof(short) so that the C
|
|---|
| 998 | * preprocessor can make decisions based on it.
|
|---|
| 999 | */
|
|---|
| 1000 | #define INTSIZE 4 /**/
|
|---|
| 1001 | #define LONGSIZE 4 /**/
|
|---|
| 1002 | #define SHORTSIZE 2 /**/
|
|---|
| 1003 |
|
|---|
| 1004 | /* BYTEORDER:
|
|---|
| 1005 | * This symbol holds the hexadecimal constant defined in byteorder,
|
|---|
| 1006 | * in a UV, i.e. 0x1234 or 0x4321 or 0x12345678, etc...
|
|---|
| 1007 | * If the compiler supports cross-compiling or multiple-architecture
|
|---|
| 1008 | * binaries (eg. on NeXT systems), use compiler-defined macros to
|
|---|
| 1009 | * determine the byte order.
|
|---|
| 1010 | * On NeXT 3.2 (and greater), you can build "Fat" Multiple Architecture
|
|---|
| 1011 | * Binaries (MAB) on either big endian or little endian machines.
|
|---|
| 1012 | * The endian-ness is available at compile-time. This only matters
|
|---|
| 1013 | * for perl, where the config.h can be generated and installed on
|
|---|
| 1014 | * one system, and used by a different architecture to build an
|
|---|
| 1015 | * extension. Older versions of NeXT that might not have
|
|---|
| 1016 | * defined either *_ENDIAN__ were all on Motorola 680x0 series,
|
|---|
| 1017 | * so the default case (for NeXT) is big endian to catch them.
|
|---|
| 1018 | * This might matter for NeXT 3.0.
|
|---|
| 1019 | */
|
|---|
| 1020 | #if defined(USE_CROSS_COMPILE) || defined(MULTIARCH)
|
|---|
| 1021 | # ifdef __LITTLE_ENDIAN__
|
|---|
| 1022 | # if LONGSIZE == 4
|
|---|
| 1023 | # define BYTEORDER 0x1234
|
|---|
| 1024 | # else
|
|---|
| 1025 | # if LONGSIZE == 8
|
|---|
| 1026 | # define BYTEORDER 0x12345678
|
|---|
| 1027 | # endif
|
|---|
| 1028 | # endif
|
|---|
| 1029 | # else
|
|---|
| 1030 | # ifdef __BIG_ENDIAN__
|
|---|
| 1031 | # if LONGSIZE == 4
|
|---|
| 1032 | # define BYTEORDER 0x4321
|
|---|
| 1033 | # else
|
|---|
| 1034 | # if LONGSIZE == 8
|
|---|
| 1035 | # define BYTEORDER 0x87654321
|
|---|
| 1036 | # endif
|
|---|
| 1037 | # endif
|
|---|
| 1038 | # endif
|
|---|
| 1039 | # endif
|
|---|
| 1040 | # if !defined(BYTEORDER) && (defined(NeXT) || defined(__NeXT__))
|
|---|
| 1041 | # define BYTEORDER 0x4321
|
|---|
| 1042 | # endif
|
|---|
| 1043 | #else
|
|---|
| 1044 | #define BYTEORDER 0x1234 /* large digits for MSB */
|
|---|
| 1045 | #endif /* NeXT */
|
|---|
| 1046 |
|
|---|
| 1047 | /* CAT2:
|
|---|
| 1048 | * This macro concatenates 2 tokens together.
|
|---|
| 1049 | */
|
|---|
| 1050 | /* STRINGIFY:
|
|---|
| 1051 | * This macro surrounds its token with double quotes.
|
|---|
| 1052 | */
|
|---|
| 1053 | #if 42 == 1
|
|---|
| 1054 | #define CAT2(a,b) a/**/b
|
|---|
| 1055 | #define STRINGIFY(a) "a"
|
|---|
| 1056 | /* If you can get stringification with catify, tell me how! */
|
|---|
| 1057 | #endif
|
|---|
| 1058 | #if 42 == 42
|
|---|
| 1059 | #define PeRl_CaTiFy(a, b) a ## b
|
|---|
| 1060 | #define PeRl_StGiFy(a) #a
|
|---|
| 1061 | /* the additional level of indirection enables these macros to be
|
|---|
| 1062 | * used as arguments to other macros. See K&R 2nd ed., page 231. */
|
|---|
| 1063 | #define CAT2(a,b) PeRl_CaTiFy(a,b)
|
|---|
| 1064 | #define StGiFy(a) PeRl_StGiFy(a)
|
|---|
| 1065 | #define STRINGIFY(a) PeRl_StGiFy(a)
|
|---|
| 1066 | #endif
|
|---|
| 1067 | #if 42 != 1 && 42 != 42
|
|---|
| 1068 | # include "Bletch: How does this C preprocessor concatenate tokens?"
|
|---|
| 1069 | #endif
|
|---|
| 1070 |
|
|---|
| 1071 | /* CPPSTDIN:
|
|---|
| 1072 | * This symbol contains the first part of the string which will invoke
|
|---|
| 1073 | * the C preprocessor on the standard input and produce to standard
|
|---|
| 1074 | * output. Typical value of "cc -E" or "/lib/cpp", but it can also
|
|---|
| 1075 | * call a wrapper. See CPPRUN.
|
|---|
| 1076 | */
|
|---|
| 1077 | /* CPPMINUS:
|
|---|
| 1078 | * This symbol contains the second part of the string which will invoke
|
|---|
| 1079 | * the C preprocessor on the standard input and produce to standard
|
|---|
| 1080 | * output. This symbol will have the value "-" if CPPSTDIN needs a minus
|
|---|
| 1081 | * to specify standard input, otherwise the value is "".
|
|---|
| 1082 | */
|
|---|
| 1083 | /* CPPRUN:
|
|---|
| 1084 | * This symbol contains the string which will invoke a C preprocessor on
|
|---|
| 1085 | * the standard input and produce to standard output. It needs to end
|
|---|
| 1086 | * with CPPLAST, after all other preprocessor flags have been specified.
|
|---|
| 1087 | * The main difference with CPPSTDIN is that this program will never be a
|
|---|
| 1088 | * pointer to a shell wrapper, i.e. it will be empty if no preprocessor is
|
|---|
| 1089 | * available directly to the user. Note that it may well be different from
|
|---|
| 1090 | * the preprocessor used to compile the C program.
|
|---|
| 1091 | */
|
|---|
| 1092 | /* CPPLAST:
|
|---|
| 1093 | * This symbol is intended to be used along with CPPRUN in the same manner
|
|---|
| 1094 | * symbol CPPMINUS is used with CPPSTDIN. It contains either "-" or "".
|
|---|
| 1095 | */
|
|---|
| 1096 | #define CPPSTDIN ""
|
|---|
| 1097 | #define CPPMINUS ""
|
|---|
| 1098 | #define CPPRUN ""
|
|---|
| 1099 | #define CPPLAST ""
|
|---|
| 1100 |
|
|---|
| 1101 | /* HAS__FWALK:
|
|---|
| 1102 | * This symbol, if defined, indicates that the _fwalk system call is
|
|---|
| 1103 | * available to apply a function to all the file handles.
|
|---|
| 1104 | */
|
|---|
| 1105 | /*#define HAS__FWALK / **/
|
|---|
| 1106 |
|
|---|
| 1107 | /* HAS_ACCESS:
|
|---|
| 1108 | * This manifest constant lets the C program know that the access()
|
|---|
| 1109 | * system call is available to check for accessibility using real UID/GID.
|
|---|
| 1110 | * (always present on UNIX.)
|
|---|
| 1111 | */
|
|---|
| 1112 | /*#define HAS_ACCESS / **/
|
|---|
| 1113 |
|
|---|
| 1114 | /* HAS_ASCTIME_R:
|
|---|
| 1115 | * This symbol, if defined, indicates that the asctime_r routine
|
|---|
| 1116 | * is available to asctime re-entrantly.
|
|---|
| 1117 | */
|
|---|
| 1118 | /* ASCTIME_R_PROTO:
|
|---|
| 1119 | * This symbol encodes the prototype of asctime_r.
|
|---|
| 1120 | * It is zero if d_asctime_r is undef, and one of the
|
|---|
| 1121 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_asctime_r
|
|---|
| 1122 | * is defined.
|
|---|
| 1123 | */
|
|---|
| 1124 | /*#define HAS_ASCTIME_R / **/
|
|---|
| 1125 | #define ASCTIME_R_PROTO 0 /**/
|
|---|
| 1126 |
|
|---|
| 1127 | /* CASTI32:
|
|---|
| 1128 | * This symbol is defined if the C compiler can cast negative
|
|---|
| 1129 | * or large floating point numbers to 32-bit ints.
|
|---|
| 1130 | */
|
|---|
| 1131 | /*#define CASTI32 / **/
|
|---|
| 1132 |
|
|---|
| 1133 | /* CASTNEGFLOAT:
|
|---|
| 1134 | * This symbol is defined if the C compiler can cast negative
|
|---|
| 1135 | * numbers to unsigned longs, ints and shorts.
|
|---|
| 1136 | */
|
|---|
| 1137 | /* CASTFLAGS:
|
|---|
| 1138 | * This symbol contains flags that say what difficulties the compiler
|
|---|
| 1139 | * has casting odd floating values to unsigned long:
|
|---|
| 1140 | * 0 = ok
|
|---|
| 1141 | * 1 = couldn't cast < 0
|
|---|
| 1142 | * 2 = couldn't cast >= 0x80000000
|
|---|
| 1143 | * 4 = couldn't cast in argument expression list
|
|---|
| 1144 | */
|
|---|
| 1145 | /*#define CASTNEGFLOAT / **/
|
|---|
| 1146 | #define CASTFLAGS 0 /**/
|
|---|
| 1147 |
|
|---|
| 1148 | /* HAS_CLASS:
|
|---|
| 1149 | * This symbol, if defined, indicates that the class routine is
|
|---|
| 1150 | * available to classify doubles. Available for example in AIX.
|
|---|
| 1151 | * The returned values are defined in <float.h> and are:
|
|---|
| 1152 | *
|
|---|
| 1153 | * FP_PLUS_NORM Positive normalized, nonzero
|
|---|
| 1154 | * FP_MINUS_NORM Negative normalized, nonzero
|
|---|
| 1155 | * FP_PLUS_DENORM Positive denormalized, nonzero
|
|---|
| 1156 | * FP_MINUS_DENORM Negative denormalized, nonzero
|
|---|
| 1157 | * FP_PLUS_ZERO +0.0
|
|---|
| 1158 | * FP_MINUS_ZERO -0.0
|
|---|
| 1159 | * FP_PLUS_INF +INF
|
|---|
| 1160 | * FP_MINUS_INF -INF
|
|---|
| 1161 | * FP_NANS Signaling Not a Number (NaNS)
|
|---|
| 1162 | * FP_NANQ Quiet Not a Number (NaNQ)
|
|---|
| 1163 | */
|
|---|
| 1164 | /*#define HAS_CLASS / **/
|
|---|
| 1165 |
|
|---|
| 1166 | /* VOID_CLOSEDIR:
|
|---|
| 1167 | * This symbol, if defined, indicates that the closedir() routine
|
|---|
| 1168 | * does not return a value.
|
|---|
| 1169 | */
|
|---|
| 1170 | /*#define VOID_CLOSEDIR / **/
|
|---|
| 1171 |
|
|---|
| 1172 | /* HAS_STRUCT_CMSGHDR:
|
|---|
| 1173 | * This symbol, if defined, indicates that the struct cmsghdr
|
|---|
| 1174 | * is supported.
|
|---|
| 1175 | */
|
|---|
| 1176 | /*#define HAS_STRUCT_CMSGHDR / **/
|
|---|
| 1177 |
|
|---|
| 1178 | /* HAS_CRYPT_R:
|
|---|
| 1179 | * This symbol, if defined, indicates that the crypt_r routine
|
|---|
| 1180 | * is available to crypt re-entrantly.
|
|---|
| 1181 | */
|
|---|
| 1182 | /* CRYPT_R_PROTO:
|
|---|
| 1183 | * This symbol encodes the prototype of crypt_r.
|
|---|
| 1184 | * It is zero if d_crypt_r is undef, and one of the
|
|---|
| 1185 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_crypt_r
|
|---|
| 1186 | * is defined.
|
|---|
| 1187 | */
|
|---|
| 1188 | /*#define HAS_CRYPT_R / **/
|
|---|
| 1189 | #define CRYPT_R_PROTO 0 /**/
|
|---|
| 1190 |
|
|---|
| 1191 | /* HAS_CSH:
|
|---|
| 1192 | * This symbol, if defined, indicates that the C-shell exists.
|
|---|
| 1193 | */
|
|---|
| 1194 | /* CSH:
|
|---|
| 1195 | * This symbol, if defined, contains the full pathname of csh.
|
|---|
| 1196 | */
|
|---|
| 1197 | /*#define HAS_CSH / **/
|
|---|
| 1198 | #ifdef HAS_CSH
|
|---|
| 1199 | #define CSH "" /**/
|
|---|
| 1200 | #endif
|
|---|
| 1201 |
|
|---|
| 1202 | /* HAS_CTIME_R:
|
|---|
| 1203 | * This symbol, if defined, indicates that the ctime_r routine
|
|---|
| 1204 | * is available to ctime re-entrantly.
|
|---|
| 1205 | */
|
|---|
| 1206 | /* CTIME_R_PROTO:
|
|---|
| 1207 | * This symbol encodes the prototype of ctime_r.
|
|---|
| 1208 | * It is zero if d_ctime_r is undef, and one of the
|
|---|
| 1209 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_ctime_r
|
|---|
| 1210 | * is defined.
|
|---|
| 1211 | */
|
|---|
| 1212 | /*#define HAS_CTIME_R / **/
|
|---|
| 1213 | #define CTIME_R_PROTO 0 /**/
|
|---|
| 1214 |
|
|---|
| 1215 | /* DLSYM_NEEDS_UNDERSCORE:
|
|---|
| 1216 | * This symbol, if defined, indicates that we need to prepend an
|
|---|
| 1217 | * underscore to the symbol name before calling dlsym(). This only
|
|---|
| 1218 | * makes sense if you *have* dlsym, which we will presume is the
|
|---|
| 1219 | * case if you're using dl_dlopen.xs.
|
|---|
| 1220 | */
|
|---|
| 1221 | /*#define DLSYM_NEEDS_UNDERSCORE / **/
|
|---|
| 1222 |
|
|---|
| 1223 | /* HAS_DRAND48_R:
|
|---|
| 1224 | * This symbol, if defined, indicates that the drand48_r routine
|
|---|
| 1225 | * is available to drand48 re-entrantly.
|
|---|
| 1226 | */
|
|---|
| 1227 | /* DRAND48_R_PROTO:
|
|---|
| 1228 | * This symbol encodes the prototype of drand48_r.
|
|---|
| 1229 | * It is zero if d_drand48_r is undef, and one of the
|
|---|
| 1230 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_drand48_r
|
|---|
| 1231 | * is defined.
|
|---|
| 1232 | */
|
|---|
| 1233 | /*#define HAS_DRAND48_R / **/
|
|---|
| 1234 | #define DRAND48_R_PROTO 0 /**/
|
|---|
| 1235 |
|
|---|
| 1236 | /* HAS_DRAND48_PROTO:
|
|---|
| 1237 | * This symbol, if defined, indicates that the system provides
|
|---|
| 1238 | * a prototype for the drand48() function. Otherwise, it is up
|
|---|
| 1239 | * to the program to supply one. A good guess is
|
|---|
| 1240 | * extern double drand48(void);
|
|---|
| 1241 | */
|
|---|
| 1242 | /*#define HAS_DRAND48_PROTO / **/
|
|---|
| 1243 |
|
|---|
| 1244 | /* HAS_ENDGRENT:
|
|---|
| 1245 | * This symbol, if defined, indicates that the getgrent routine is
|
|---|
| 1246 | * available for finalizing sequential access of the group database.
|
|---|
| 1247 | */
|
|---|
| 1248 | /*#define HAS_ENDGRENT / **/
|
|---|
| 1249 |
|
|---|
| 1250 | /* HAS_ENDGRENT_R:
|
|---|
| 1251 | * This symbol, if defined, indicates that the endgrent_r routine
|
|---|
| 1252 | * is available to endgrent re-entrantly.
|
|---|
| 1253 | */
|
|---|
| 1254 | /* ENDGRENT_R_PROTO:
|
|---|
| 1255 | * This symbol encodes the prototype of endgrent_r.
|
|---|
| 1256 | * It is zero if d_endgrent_r is undef, and one of the
|
|---|
| 1257 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endgrent_r
|
|---|
| 1258 | * is defined.
|
|---|
| 1259 | */
|
|---|
| 1260 | /*#define HAS_ENDGRENT_R / **/
|
|---|
| 1261 | #define ENDGRENT_R_PROTO 0 /**/
|
|---|
| 1262 |
|
|---|
| 1263 | /* HAS_ENDHOSTENT:
|
|---|
| 1264 | * This symbol, if defined, indicates that the endhostent() routine is
|
|---|
| 1265 | * available to close whatever was being used for host queries.
|
|---|
| 1266 | */
|
|---|
| 1267 | /*#define HAS_ENDHOSTENT / **/
|
|---|
| 1268 |
|
|---|
| 1269 | /* HAS_ENDNETENT:
|
|---|
| 1270 | * This symbol, if defined, indicates that the endnetent() routine is
|
|---|
| 1271 | * available to close whatever was being used for network queries.
|
|---|
| 1272 | */
|
|---|
| 1273 | /*#define HAS_ENDNETENT / **/
|
|---|
| 1274 |
|
|---|
| 1275 | /* HAS_ENDPROTOENT:
|
|---|
| 1276 | * This symbol, if defined, indicates that the endprotoent() routine is
|
|---|
| 1277 | * available to close whatever was being used for protocol queries.
|
|---|
| 1278 | */
|
|---|
| 1279 | /*#define HAS_ENDPROTOENT / **/
|
|---|
| 1280 |
|
|---|
| 1281 | /* HAS_ENDPWENT:
|
|---|
| 1282 | * This symbol, if defined, indicates that the getgrent routine is
|
|---|
| 1283 | * available for finalizing sequential access of the passwd database.
|
|---|
| 1284 | */
|
|---|
| 1285 | /*#define HAS_ENDPWENT / **/
|
|---|
| 1286 |
|
|---|
| 1287 | /* HAS_ENDPWENT_R:
|
|---|
| 1288 | * This symbol, if defined, indicates that the endpwent_r routine
|
|---|
| 1289 | * is available to endpwent re-entrantly.
|
|---|
| 1290 | */
|
|---|
| 1291 | /* ENDPWENT_R_PROTO:
|
|---|
| 1292 | * This symbol encodes the prototype of endpwent_r.
|
|---|
| 1293 | * It is zero if d_endpwent_r is undef, and one of the
|
|---|
| 1294 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endpwent_r
|
|---|
| 1295 | * is defined.
|
|---|
| 1296 | */
|
|---|
| 1297 | /*#define HAS_ENDPWENT_R / **/
|
|---|
| 1298 | #define ENDPWENT_R_PROTO 0 /**/
|
|---|
| 1299 |
|
|---|
| 1300 | /* HAS_ENDSERVENT:
|
|---|
| 1301 | * This symbol, if defined, indicates that the endservent() routine is
|
|---|
| 1302 | * available to close whatever was being used for service queries.
|
|---|
| 1303 | */
|
|---|
| 1304 | /*#define HAS_ENDSERVENT / **/
|
|---|
| 1305 |
|
|---|
| 1306 | /* HAS_FCHDIR:
|
|---|
| 1307 | * This symbol, if defined, indicates that the fchdir routine is
|
|---|
| 1308 | * available to change directory using a file descriptor.
|
|---|
| 1309 | */
|
|---|
| 1310 | /*#define HAS_FCHDIR / **/
|
|---|
| 1311 |
|
|---|
| 1312 | /* FCNTL_CAN_LOCK:
|
|---|
| 1313 | * This symbol, if defined, indicates that fcntl() can be used
|
|---|
| 1314 | * for file locking. Normally on Unix systems this is defined.
|
|---|
| 1315 | * It may be undefined on VMS.
|
|---|
| 1316 | */
|
|---|
| 1317 | /*#define FCNTL_CAN_LOCK / **/
|
|---|
| 1318 |
|
|---|
| 1319 | /* HAS_FD_SET:
|
|---|
| 1320 | * This symbol, when defined, indicates presence of the fd_set typedef
|
|---|
| 1321 | * in <sys/types.h>
|
|---|
| 1322 | */
|
|---|
| 1323 | /*#define HAS_FD_SET / **/
|
|---|
| 1324 |
|
|---|
| 1325 | /* HAS_FINITE:
|
|---|
| 1326 | * This symbol, if defined, indicates that the finite routine is
|
|---|
| 1327 | * available to check whether a double is finite (non-infinity non-NaN).
|
|---|
| 1328 | */
|
|---|
| 1329 | /*#define HAS_FINITE / **/
|
|---|
| 1330 |
|
|---|
| 1331 | /* HAS_FINITEL:
|
|---|
| 1332 | * This symbol, if defined, indicates that the finitel routine is
|
|---|
| 1333 | * available to check whether a long double is finite
|
|---|
| 1334 | * (non-infinity non-NaN).
|
|---|
| 1335 | */
|
|---|
| 1336 | /*#define HAS_FINITEL / **/
|
|---|
| 1337 |
|
|---|
| 1338 | /* FLEXFILENAMES:
|
|---|
| 1339 | * This symbol, if defined, indicates that the system supports filenames
|
|---|
| 1340 | * longer than 14 characters.
|
|---|
| 1341 | */
|
|---|
| 1342 | /*#define FLEXFILENAMES / **/
|
|---|
| 1343 |
|
|---|
| 1344 | /* HAS_FP_CLASS:
|
|---|
| 1345 | * This symbol, if defined, indicates that the fp_class routine is
|
|---|
| 1346 | * available to classify doubles. Available for example in Digital UNIX.
|
|---|
| 1347 | * The returned values are defined in <math.h> and are:
|
|---|
| 1348 | *
|
|---|
| 1349 | * FP_SNAN Signaling NaN (Not-a-Number)
|
|---|
| 1350 | * FP_QNAN Quiet NaN (Not-a-Number)
|
|---|
| 1351 | * FP_POS_INF +infinity
|
|---|
| 1352 | * FP_NEG_INF -infinity
|
|---|
| 1353 | * FP_POS_NORM Positive normalized
|
|---|
| 1354 | * FP_NEG_NORM Negative normalized
|
|---|
| 1355 | * FP_POS_DENORM Positive denormalized
|
|---|
| 1356 | * FP_NEG_DENORM Negative denormalized
|
|---|
| 1357 | * FP_POS_ZERO +0.0 (positive zero)
|
|---|
| 1358 | * FP_NEG_ZERO -0.0 (negative zero)
|
|---|
| 1359 | */
|
|---|
| 1360 | /*#define HAS_FP_CLASS / **/
|
|---|
| 1361 |
|
|---|
| 1362 | /* HAS_FPCLASS:
|
|---|
| 1363 | * This symbol, if defined, indicates that the fpclass routine is
|
|---|
| 1364 | * available to classify doubles. Available for example in Solaris/SVR4.
|
|---|
| 1365 | * The returned values are defined in <ieeefp.h> and are:
|
|---|
| 1366 | *
|
|---|
| 1367 | * FP_SNAN signaling NaN
|
|---|
| 1368 | * FP_QNAN quiet NaN
|
|---|
| 1369 | * FP_NINF negative infinity
|
|---|
| 1370 | * FP_PINF positive infinity
|
|---|
| 1371 | * FP_NDENORM negative denormalized non-zero
|
|---|
| 1372 | * FP_PDENORM positive denormalized non-zero
|
|---|
| 1373 | * FP_NZERO negative zero
|
|---|
| 1374 | * FP_PZERO positive zero
|
|---|
| 1375 | * FP_NNORM negative normalized non-zero
|
|---|
| 1376 | * FP_PNORM positive normalized non-zero
|
|---|
| 1377 | */
|
|---|
| 1378 | /*#define HAS_FPCLASS / **/
|
|---|
| 1379 |
|
|---|
| 1380 | /* HAS_FPCLASSIFY:
|
|---|
| 1381 | * This symbol, if defined, indicates that the fpclassify routine is
|
|---|
| 1382 | * available to classify doubles. Available for example in HP-UX.
|
|---|
| 1383 | * The returned values are defined in <math.h> and are
|
|---|
| 1384 | *
|
|---|
| 1385 | * FP_NORMAL Normalized
|
|---|
| 1386 | * FP_ZERO Zero
|
|---|
| 1387 | * FP_INFINITE Infinity
|
|---|
| 1388 | * FP_SUBNORMAL Denormalized
|
|---|
| 1389 | * FP_NAN NaN
|
|---|
| 1390 | *
|
|---|
| 1391 | */
|
|---|
| 1392 | /*#define HAS_FPCLASSIFY / **/
|
|---|
| 1393 |
|
|---|
| 1394 | /* HAS_FPOS64_T:
|
|---|
| 1395 | * This symbol will be defined if the C compiler supports fpos64_t.
|
|---|
| 1396 | */
|
|---|
| 1397 | /*#define HAS_FPOS64_T / **/
|
|---|
| 1398 |
|
|---|
| 1399 | /* HAS_FREXPL:
|
|---|
| 1400 | * This symbol, if defined, indicates that the frexpl routine is
|
|---|
| 1401 | * available to break a long double floating-point number into
|
|---|
| 1402 | * a normalized fraction and an integral power of 2.
|
|---|
| 1403 | */
|
|---|
| 1404 | /*#define HAS_FREXPL / **/
|
|---|
| 1405 |
|
|---|
| 1406 | /* HAS_STRUCT_FS_DATA:
|
|---|
| 1407 | * This symbol, if defined, indicates that the struct fs_data
|
|---|
| 1408 | * to do statfs() is supported.
|
|---|
| 1409 | */
|
|---|
| 1410 | /*#define HAS_STRUCT_FS_DATA / **/
|
|---|
| 1411 |
|
|---|
| 1412 | /* HAS_FSEEKO:
|
|---|
| 1413 | * This symbol, if defined, indicates that the fseeko routine is
|
|---|
| 1414 | * available to fseek beyond 32 bits (useful for ILP32 hosts).
|
|---|
| 1415 | */
|
|---|
| 1416 | /*#define HAS_FSEEKO / **/
|
|---|
| 1417 |
|
|---|
| 1418 | /* HAS_FSTATFS:
|
|---|
| 1419 | * This symbol, if defined, indicates that the fstatfs routine is
|
|---|
| 1420 | * available to stat filesystems by file descriptors.
|
|---|
| 1421 | */
|
|---|
| 1422 | /*#define HAS_FSTATFS / **/
|
|---|
| 1423 |
|
|---|
| 1424 | /* HAS_FSYNC:
|
|---|
| 1425 | * This symbol, if defined, indicates that the fsync routine is
|
|---|
| 1426 | * available to write a file's modified data and attributes to
|
|---|
| 1427 | * permanent storage.
|
|---|
| 1428 | */
|
|---|
| 1429 | /*#define HAS_FSYNC / **/
|
|---|
| 1430 |
|
|---|
| 1431 | /* HAS_FTELLO:
|
|---|
| 1432 | * This symbol, if defined, indicates that the ftello routine is
|
|---|
| 1433 | * available to ftell beyond 32 bits (useful for ILP32 hosts).
|
|---|
| 1434 | */
|
|---|
| 1435 | /*#define HAS_FTELLO / **/
|
|---|
| 1436 |
|
|---|
| 1437 | /* Gconvert:
|
|---|
| 1438 | * This preprocessor macro is defined to convert a floating point
|
|---|
| 1439 | * number to a string without a trailing decimal point. This
|
|---|
| 1440 | * emulates the behavior of sprintf("%g"), but is sometimes much more
|
|---|
| 1441 | * efficient. If gconvert() is not available, but gcvt() drops the
|
|---|
| 1442 | * trailing decimal point, then gcvt() is used. If all else fails,
|
|---|
| 1443 | * a macro using sprintf("%g") is used. Arguments for the Gconvert
|
|---|
| 1444 | * macro are: value, number of digits, whether trailing zeros should
|
|---|
| 1445 | * be retained, and the output buffer.
|
|---|
| 1446 | * The usual values are:
|
|---|
| 1447 | * d_Gconvert='gconvert((x),(n),(t),(b))'
|
|---|
| 1448 | * d_Gconvert='gcvt((x),(n),(b))'
|
|---|
| 1449 | * d_Gconvert='sprintf((b),"%.*g",(n),(x))'
|
|---|
| 1450 | * The last two assume trailing zeros should not be kept.
|
|---|
| 1451 | */
|
|---|
| 1452 | #define Gconvert(x,n,t,b) sprintf((b),"%.*g",(n),(x))
|
|---|
| 1453 |
|
|---|
| 1454 | /* HAS_GETCWD:
|
|---|
| 1455 | * This symbol, if defined, indicates that the getcwd routine is
|
|---|
| 1456 | * available to get the current working directory.
|
|---|
| 1457 | */
|
|---|
| 1458 | /*#define HAS_GETCWD / **/
|
|---|
| 1459 |
|
|---|
| 1460 | /* HAS_GETESPWNAM:
|
|---|
| 1461 | * This symbol, if defined, indicates that the getespwnam system call is
|
|---|
| 1462 | * available to retrieve enchanced (shadow) password entries by name.
|
|---|
| 1463 | */
|
|---|
| 1464 | /*#define HAS_GETESPWNAM / **/
|
|---|
| 1465 |
|
|---|
| 1466 | /* HAS_GETFSSTAT:
|
|---|
| 1467 | * This symbol, if defined, indicates that the getfsstat routine is
|
|---|
| 1468 | * available to stat filesystems in bulk.
|
|---|
| 1469 | */
|
|---|
| 1470 | /*#define HAS_GETFSSTAT / **/
|
|---|
| 1471 |
|
|---|
| 1472 | /* HAS_GETGRENT:
|
|---|
| 1473 | * This symbol, if defined, indicates that the getgrent routine is
|
|---|
| 1474 | * available for sequential access of the group database.
|
|---|
| 1475 | */
|
|---|
| 1476 | /*#define HAS_GETGRENT / **/
|
|---|
| 1477 |
|
|---|
| 1478 | /* HAS_GETGRENT_R:
|
|---|
| 1479 | * This symbol, if defined, indicates that the getgrent_r routine
|
|---|
| 1480 | * is available to getgrent re-entrantly.
|
|---|
| 1481 | */
|
|---|
| 1482 | /* GETGRENT_R_PROTO:
|
|---|
| 1483 | * This symbol encodes the prototype of getgrent_r.
|
|---|
| 1484 | * It is zero if d_getgrent_r is undef, and one of the
|
|---|
| 1485 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getgrent_r
|
|---|
| 1486 | * is defined.
|
|---|
| 1487 | */
|
|---|
| 1488 | /*#define HAS_GETGRENT_R / **/
|
|---|
| 1489 | #define GETGRENT_R_PROTO 0 /**/
|
|---|
| 1490 |
|
|---|
| 1491 | /* HAS_GETGRGID_R:
|
|---|
| 1492 | * This symbol, if defined, indicates that the getgrgid_r routine
|
|---|
| 1493 | * is available to getgrgid re-entrantly.
|
|---|
| 1494 | */
|
|---|
| 1495 | /* GETGRGID_R_PROTO:
|
|---|
| 1496 | * This symbol encodes the prototype of getgrgid_r.
|
|---|
| 1497 | * It is zero if d_getgrgid_r is undef, and one of the
|
|---|
| 1498 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getgrgid_r
|
|---|
| 1499 | * is defined.
|
|---|
| 1500 | */
|
|---|
| 1501 | /*#define HAS_GETGRGID_R / **/
|
|---|
| 1502 | #define GETGRGID_R_PROTO 0 /**/
|
|---|
| 1503 |
|
|---|
| 1504 | /* HAS_GETGRNAM_R:
|
|---|
| 1505 | * This symbol, if defined, indicates that the getgrnam_r routine
|
|---|
| 1506 | * is available to getgrnam re-entrantly.
|
|---|
| 1507 | */
|
|---|
| 1508 | /* GETGRNAM_R_PROTO:
|
|---|
| 1509 | * This symbol encodes the prototype of getgrnam_r.
|
|---|
| 1510 | * It is zero if d_getgrnam_r is undef, and one of the
|
|---|
| 1511 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getgrnam_r
|
|---|
| 1512 | * is defined.
|
|---|
| 1513 | */
|
|---|
| 1514 | /*#define HAS_GETGRNAM_R / **/
|
|---|
| 1515 | #define GETGRNAM_R_PROTO 0 /**/
|
|---|
| 1516 |
|
|---|
| 1517 | /* HAS_GETHOSTBYADDR:
|
|---|
| 1518 | * This symbol, if defined, indicates that the gethostbyaddr() routine is
|
|---|
| 1519 | * available to look up hosts by their IP addresses.
|
|---|
| 1520 | */
|
|---|
| 1521 | /*#define HAS_GETHOSTBYADDR / **/
|
|---|
| 1522 |
|
|---|
| 1523 | /* HAS_GETHOSTBYNAME:
|
|---|
| 1524 | * This symbol, if defined, indicates that the gethostbyname() routine is
|
|---|
| 1525 | * available to look up host names in some data base or other.
|
|---|
| 1526 | */
|
|---|
| 1527 | /*#define HAS_GETHOSTBYNAME / **/
|
|---|
| 1528 |
|
|---|
| 1529 | /* HAS_GETHOSTENT:
|
|---|
| 1530 | * This symbol, if defined, indicates that the gethostent() routine is
|
|---|
| 1531 | * available to look up host names in some data base or another.
|
|---|
| 1532 | */
|
|---|
| 1533 | /*#define HAS_GETHOSTENT / **/
|
|---|
| 1534 |
|
|---|
| 1535 | /* HAS_GETHOSTNAME:
|
|---|
| 1536 | * This symbol, if defined, indicates that the C program may use the
|
|---|
| 1537 | * gethostname() routine to derive the host name. See also HAS_UNAME
|
|---|
| 1538 | * and PHOSTNAME.
|
|---|
| 1539 | */
|
|---|
| 1540 | /* HAS_UNAME:
|
|---|
| 1541 | * This symbol, if defined, indicates that the C program may use the
|
|---|
| 1542 | * uname() routine to derive the host name. See also HAS_GETHOSTNAME
|
|---|
| 1543 | * and PHOSTNAME.
|
|---|
| 1544 | */
|
|---|
| 1545 | /* PHOSTNAME:
|
|---|
| 1546 | * This symbol, if defined, indicates the command to feed to the
|
|---|
| 1547 | * popen() routine to derive the host name. See also HAS_GETHOSTNAME
|
|---|
| 1548 | * and HAS_UNAME. Note that the command uses a fully qualified path,
|
|---|
| 1549 | * so that it is safe even if used by a process with super-user
|
|---|
| 1550 | * privileges.
|
|---|
| 1551 | */
|
|---|
| 1552 | /* HAS_PHOSTNAME:
|
|---|
| 1553 | * This symbol, if defined, indicates that the C program may use the
|
|---|
| 1554 | * contents of PHOSTNAME as a command to feed to the popen() routine
|
|---|
| 1555 | * to derive the host name.
|
|---|
| 1556 | */
|
|---|
| 1557 | /*#define HAS_GETHOSTNAME / **/
|
|---|
| 1558 | /*#define HAS_UNAME / **/
|
|---|
| 1559 | /*#define HAS_PHOSTNAME / **/
|
|---|
| 1560 | #ifdef HAS_PHOSTNAME
|
|---|
| 1561 | #define PHOSTNAME "" /* How to get the host name */
|
|---|
| 1562 | #endif
|
|---|
| 1563 |
|
|---|
| 1564 | /* HAS_GETHOST_PROTOS:
|
|---|
| 1565 | * This symbol, if defined, indicates that <netdb.h> includes
|
|---|
| 1566 | * prototypes for gethostent(), gethostbyname(), and
|
|---|
| 1567 | * gethostbyaddr(). Otherwise, it is up to the program to guess
|
|---|
| 1568 | * them. See netdbtype.U for probing for various Netdb_xxx_t types.
|
|---|
| 1569 | */
|
|---|
| 1570 | /*#define HAS_GETHOST_PROTOS / **/
|
|---|
| 1571 |
|
|---|
| 1572 | /* HAS_GETITIMER:
|
|---|
| 1573 | * This symbol, if defined, indicates that the getitimer routine is
|
|---|
| 1574 | * available to return interval timers.
|
|---|
| 1575 | */
|
|---|
| 1576 | /*#define HAS_GETITIMER / **/
|
|---|
| 1577 |
|
|---|
| 1578 | /* HAS_GETLOGIN_R:
|
|---|
| 1579 | * This symbol, if defined, indicates that the getlogin_r routine
|
|---|
| 1580 | * is available to getlogin re-entrantly.
|
|---|
| 1581 | */
|
|---|
| 1582 | /* GETLOGIN_R_PROTO:
|
|---|
| 1583 | * This symbol encodes the prototype of getlogin_r.
|
|---|
| 1584 | * It is zero if d_getlogin_r is undef, and one of the
|
|---|
| 1585 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getlogin_r
|
|---|
| 1586 | * is defined.
|
|---|
| 1587 | */
|
|---|
| 1588 | /*#define HAS_GETLOGIN_R / **/
|
|---|
| 1589 | #define GETLOGIN_R_PROTO 0 /**/
|
|---|
| 1590 |
|
|---|
| 1591 | /* HAS_GETMNT:
|
|---|
| 1592 | * This symbol, if defined, indicates that the getmnt routine is
|
|---|
| 1593 | * available to get filesystem mount info by filename.
|
|---|
| 1594 | */
|
|---|
| 1595 | /*#define HAS_GETMNT / **/
|
|---|
| 1596 |
|
|---|
| 1597 | /* HAS_GETMNTENT:
|
|---|
| 1598 | * This symbol, if defined, indicates that the getmntent routine is
|
|---|
| 1599 | * available to iterate through mounted file systems to get their info.
|
|---|
| 1600 | */
|
|---|
| 1601 | /*#define HAS_GETMNTENT / **/
|
|---|
| 1602 |
|
|---|
| 1603 | /* HAS_GETNETBYADDR:
|
|---|
| 1604 | * This symbol, if defined, indicates that the getnetbyaddr() routine is
|
|---|
| 1605 | * available to look up networks by their IP addresses.
|
|---|
| 1606 | */
|
|---|
| 1607 | /*#define HAS_GETNETBYADDR / **/
|
|---|
| 1608 |
|
|---|
| 1609 | /* HAS_GETNETBYNAME:
|
|---|
| 1610 | * This symbol, if defined, indicates that the getnetbyname() routine is
|
|---|
| 1611 | * available to look up networks by their names.
|
|---|
| 1612 | */
|
|---|
| 1613 | /*#define HAS_GETNETBYNAME / **/
|
|---|
| 1614 |
|
|---|
| 1615 | /* HAS_GETNETENT:
|
|---|
| 1616 | * This symbol, if defined, indicates that the getnetent() routine is
|
|---|
| 1617 | * available to look up network names in some data base or another.
|
|---|
| 1618 | */
|
|---|
| 1619 | /*#define HAS_GETNETENT / **/
|
|---|
| 1620 |
|
|---|
| 1621 | /* HAS_GETNET_PROTOS:
|
|---|
| 1622 | * This symbol, if defined, indicates that <netdb.h> includes
|
|---|
| 1623 | * prototypes for getnetent(), getnetbyname(), and
|
|---|
| 1624 | * getnetbyaddr(). Otherwise, it is up to the program to guess
|
|---|
| 1625 | * them. See netdbtype.U for probing for various Netdb_xxx_t types.
|
|---|
| 1626 | */
|
|---|
| 1627 | /*#define HAS_GETNET_PROTOS / **/
|
|---|
| 1628 |
|
|---|
| 1629 | /* HAS_GETPAGESIZE:
|
|---|
| 1630 | * This symbol, if defined, indicates that the getpagesize system call
|
|---|
| 1631 | * is available to get system page size, which is the granularity of
|
|---|
| 1632 | * many memory management calls.
|
|---|
| 1633 | */
|
|---|
| 1634 | /*#define HAS_GETPAGESIZE / **/
|
|---|
| 1635 |
|
|---|
| 1636 | /* HAS_GETPROTOENT:
|
|---|
| 1637 | * This symbol, if defined, indicates that the getprotoent() routine is
|
|---|
| 1638 | * available to look up protocols in some data base or another.
|
|---|
| 1639 | */
|
|---|
| 1640 | /*#define HAS_GETPROTOENT / **/
|
|---|
| 1641 |
|
|---|
| 1642 | /* HAS_GETPGRP:
|
|---|
| 1643 | * This symbol, if defined, indicates that the getpgrp routine is
|
|---|
| 1644 | * available to get the current process group.
|
|---|
| 1645 | */
|
|---|
| 1646 | /* USE_BSD_GETPGRP:
|
|---|
| 1647 | * This symbol, if defined, indicates that getpgrp needs one
|
|---|
| 1648 | * arguments whereas USG one needs none.
|
|---|
| 1649 | */
|
|---|
| 1650 | /*#define HAS_GETPGRP / **/
|
|---|
| 1651 | /*#define USE_BSD_GETPGRP / **/
|
|---|
| 1652 |
|
|---|
| 1653 | /* HAS_GETPROTOBYNAME:
|
|---|
| 1654 | * This symbol, if defined, indicates that the getprotobyname()
|
|---|
| 1655 | * routine is available to look up protocols by their name.
|
|---|
| 1656 | */
|
|---|
| 1657 | /* HAS_GETPROTOBYNUMBER:
|
|---|
| 1658 | * This symbol, if defined, indicates that the getprotobynumber()
|
|---|
| 1659 | * routine is available to look up protocols by their number.
|
|---|
| 1660 | */
|
|---|
| 1661 | /*#define HAS_GETPROTOBYNAME / **/
|
|---|
| 1662 | /*#define HAS_GETPROTOBYNUMBER / **/
|
|---|
| 1663 |
|
|---|
| 1664 | /* HAS_GETPROTO_PROTOS:
|
|---|
| 1665 | * This symbol, if defined, indicates that <netdb.h> includes
|
|---|
| 1666 | * prototypes for getprotoent(), getprotobyname(), and
|
|---|
| 1667 | * getprotobyaddr(). Otherwise, it is up to the program to guess
|
|---|
| 1668 | * them. See netdbtype.U for probing for various Netdb_xxx_t types.
|
|---|
| 1669 | */
|
|---|
| 1670 | /*#define HAS_GETPROTO_PROTOS / **/
|
|---|
| 1671 |
|
|---|
| 1672 | /* HAS_GETPRPWNAM:
|
|---|
| 1673 | * This symbol, if defined, indicates that the getprpwnam system call is
|
|---|
| 1674 | * available to retrieve protected (shadow) password entries by name.
|
|---|
| 1675 | */
|
|---|
| 1676 | /*#define HAS_GETPRPWNAM / **/
|
|---|
| 1677 |
|
|---|
| 1678 | /* HAS_GETPWENT:
|
|---|
| 1679 | * This symbol, if defined, indicates that the getpwent routine is
|
|---|
| 1680 | * available for sequential access of the passwd database.
|
|---|
| 1681 | * If this is not available, the older getpw() function may be available.
|
|---|
| 1682 | */
|
|---|
| 1683 | /*#define HAS_GETPWENT / **/
|
|---|
| 1684 |
|
|---|
| 1685 | /* HAS_GETPWENT_R:
|
|---|
| 1686 | * This symbol, if defined, indicates that the getpwent_r routine
|
|---|
| 1687 | * is available to getpwent re-entrantly.
|
|---|
| 1688 | */
|
|---|
| 1689 | /* GETPWENT_R_PROTO:
|
|---|
| 1690 | * This symbol encodes the prototype of getpwent_r.
|
|---|
| 1691 | * It is zero if d_getpwent_r is undef, and one of the
|
|---|
| 1692 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getpwent_r
|
|---|
| 1693 | * is defined.
|
|---|
| 1694 | */
|
|---|
| 1695 | /*#define HAS_GETPWENT_R / **/
|
|---|
| 1696 | #define GETPWENT_R_PROTO 0 /**/
|
|---|
| 1697 |
|
|---|
| 1698 | /* HAS_GETPWNAM_R:
|
|---|
| 1699 | * This symbol, if defined, indicates that the getpwnam_r routine
|
|---|
| 1700 | * is available to getpwnam re-entrantly.
|
|---|
| 1701 | */
|
|---|
| 1702 | /* GETPWNAM_R_PROTO:
|
|---|
| 1703 | * This symbol encodes the prototype of getpwnam_r.
|
|---|
| 1704 | * It is zero if d_getpwnam_r is undef, and one of the
|
|---|
| 1705 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getpwnam_r
|
|---|
| 1706 | * is defined.
|
|---|
| 1707 | */
|
|---|
| 1708 | /*#define HAS_GETPWNAM_R / **/
|
|---|
| 1709 | #define GETPWNAM_R_PROTO 0 /**/
|
|---|
| 1710 |
|
|---|
| 1711 | /* HAS_GETPWUID_R:
|
|---|
| 1712 | * This symbol, if defined, indicates that the getpwuid_r routine
|
|---|
| 1713 | * is available to getpwuid re-entrantly.
|
|---|
| 1714 | */
|
|---|
| 1715 | /* GETPWUID_R_PROTO:
|
|---|
| 1716 | * This symbol encodes the prototype of getpwuid_r.
|
|---|
| 1717 | * It is zero if d_getpwuid_r is undef, and one of the
|
|---|
| 1718 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getpwuid_r
|
|---|
| 1719 | * is defined.
|
|---|
| 1720 | */
|
|---|
| 1721 | /*#define HAS_GETPWUID_R / **/
|
|---|
| 1722 | #define GETPWUID_R_PROTO 0 /**/
|
|---|
| 1723 |
|
|---|
| 1724 | /* HAS_GETSERVENT:
|
|---|
| 1725 | * This symbol, if defined, indicates that the getservent() routine is
|
|---|
| 1726 | * available to look up network services in some data base or another.
|
|---|
| 1727 | */
|
|---|
| 1728 | /*#define HAS_GETSERVENT / **/
|
|---|
| 1729 |
|
|---|
| 1730 | /* HAS_GETSERV_PROTOS:
|
|---|
| 1731 | * This symbol, if defined, indicates that <netdb.h> includes
|
|---|
| 1732 | * prototypes for getservent(), getservbyname(), and
|
|---|
| 1733 | * getservbyaddr(). Otherwise, it is up to the program to guess
|
|---|
| 1734 | * them. See netdbtype.U for probing for various Netdb_xxx_t types.
|
|---|
| 1735 | */
|
|---|
| 1736 | /*#define HAS_GETSERV_PROTOS / **/
|
|---|
| 1737 |
|
|---|
| 1738 | /* HAS_GETSPNAM:
|
|---|
| 1739 | * This symbol, if defined, indicates that the getspnam system call is
|
|---|
| 1740 | * available to retrieve SysV shadow password entries by name.
|
|---|
| 1741 | */
|
|---|
| 1742 | /*#define HAS_GETSPNAM / **/
|
|---|
| 1743 |
|
|---|
| 1744 | /* HAS_GETSPNAM_R:
|
|---|
| 1745 | * This symbol, if defined, indicates that the getspnam_r routine
|
|---|
| 1746 | * is available to getspnam re-entrantly.
|
|---|
| 1747 | */
|
|---|
| 1748 | /* GETSPNAM_R_PROTO:
|
|---|
| 1749 | * This symbol encodes the prototype of getspnam_r.
|
|---|
| 1750 | * It is zero if d_getspnam_r is undef, and one of the
|
|---|
| 1751 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getspnam_r
|
|---|
| 1752 | * is defined.
|
|---|
| 1753 | */
|
|---|
| 1754 | /*#define HAS_GETSPNAM_R / **/
|
|---|
| 1755 | #define GETSPNAM_R_PROTO 0 /**/
|
|---|
| 1756 |
|
|---|
| 1757 | /* HAS_GETSERVBYNAME:
|
|---|
| 1758 | * This symbol, if defined, indicates that the getservbyname()
|
|---|
| 1759 | * routine is available to look up services by their name.
|
|---|
| 1760 | */
|
|---|
| 1761 | /* HAS_GETSERVBYPORT:
|
|---|
| 1762 | * This symbol, if defined, indicates that the getservbyport()
|
|---|
| 1763 | * routine is available to look up services by their port.
|
|---|
| 1764 | */
|
|---|
| 1765 | /*#define HAS_GETSERVBYNAME / **/
|
|---|
| 1766 | /*#define HAS_GETSERVBYPORT / **/
|
|---|
| 1767 |
|
|---|
| 1768 | /* HAS_GMTIME_R:
|
|---|
| 1769 | * This symbol, if defined, indicates that the gmtime_r routine
|
|---|
| 1770 | * is available to gmtime re-entrantly.
|
|---|
| 1771 | */
|
|---|
| 1772 | /* GMTIME_R_PROTO:
|
|---|
| 1773 | * This symbol encodes the prototype of gmtime_r.
|
|---|
| 1774 | * It is zero if d_gmtime_r is undef, and one of the
|
|---|
| 1775 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_gmtime_r
|
|---|
| 1776 | * is defined.
|
|---|
| 1777 | */
|
|---|
| 1778 | /*#define HAS_GMTIME_R / **/
|
|---|
| 1779 | #define GMTIME_R_PROTO 0 /**/
|
|---|
| 1780 |
|
|---|
| 1781 | /* HAS_GNULIBC:
|
|---|
| 1782 | * This symbol, if defined, indicates to the C program that
|
|---|
| 1783 | * the GNU C library is being used. A better check is to use
|
|---|
| 1784 | * the __GLIBC__ and __GLIBC_MINOR__ symbols supplied with glibc.
|
|---|
| 1785 | */
|
|---|
| 1786 | /*#define HAS_GNULIBC / **/
|
|---|
| 1787 | #if defined(HAS_GNULIBC) && !defined(_GNU_SOURCE)
|
|---|
| 1788 | # define _GNU_SOURCE
|
|---|
| 1789 | #endif
|
|---|
| 1790 | /* HAS_HASMNTOPT:
|
|---|
| 1791 | * This symbol, if defined, indicates that the hasmntopt routine is
|
|---|
| 1792 | * available to query the mount options of file systems.
|
|---|
| 1793 | */
|
|---|
| 1794 | /*#define HAS_HASMNTOPT / **/
|
|---|
| 1795 |
|
|---|
| 1796 | /* HAS_HTONL:
|
|---|
| 1797 | * This symbol, if defined, indicates that the htonl() routine (and
|
|---|
| 1798 | * friends htons() ntohl() ntohs()) are available to do network
|
|---|
| 1799 | * order byte swapping.
|
|---|
| 1800 | */
|
|---|
| 1801 | /* HAS_HTONS:
|
|---|
| 1802 | * This symbol, if defined, indicates that the htons() routine (and
|
|---|
| 1803 | * friends htonl() ntohl() ntohs()) are available to do network
|
|---|
| 1804 | * order byte swapping.
|
|---|
| 1805 | */
|
|---|
| 1806 | /* HAS_NTOHL:
|
|---|
| 1807 | * This symbol, if defined, indicates that the ntohl() routine (and
|
|---|
| 1808 | * friends htonl() htons() ntohs()) are available to do network
|
|---|
| 1809 | * order byte swapping.
|
|---|
| 1810 | */
|
|---|
| 1811 | /* HAS_NTOHS:
|
|---|
| 1812 | * This symbol, if defined, indicates that the ntohs() routine (and
|
|---|
| 1813 | * friends htonl() htons() ntohl()) are available to do network
|
|---|
| 1814 | * order byte swapping.
|
|---|
| 1815 | */
|
|---|
| 1816 | /*#define HAS_HTONL / **/
|
|---|
| 1817 | /*#define HAS_HTONS / **/
|
|---|
| 1818 | /*#define HAS_NTOHL / **/
|
|---|
| 1819 | /*#define HAS_NTOHS / **/
|
|---|
| 1820 |
|
|---|
| 1821 | /* HAS_INT64_T:
|
|---|
| 1822 | * This symbol will defined if the C compiler supports int64_t.
|
|---|
| 1823 | * Usually the <inttypes.h> needs to be included, but sometimes
|
|---|
| 1824 | * <sys/types.h> is enough.
|
|---|
| 1825 | */
|
|---|
| 1826 | /*#define HAS_INT64_T / **/
|
|---|
| 1827 |
|
|---|
| 1828 | /* HAS_ISASCII:
|
|---|
| 1829 | * This manifest constant lets the C program know that isascii
|
|---|
| 1830 | * is available.
|
|---|
| 1831 | */
|
|---|
| 1832 | /*#define HAS_ISASCII / **/
|
|---|
| 1833 |
|
|---|
| 1834 | /* HAS_ISFINITE:
|
|---|
| 1835 | * This symbol, if defined, indicates that the isfinite routine is
|
|---|
| 1836 | * available to check whether a double is finite (non-infinity non-NaN).
|
|---|
| 1837 | */
|
|---|
| 1838 | /*#define HAS_ISFINITE / **/
|
|---|
| 1839 |
|
|---|
| 1840 | /* HAS_ISINF:
|
|---|
| 1841 | * This symbol, if defined, indicates that the isinf routine is
|
|---|
| 1842 | * available to check whether a double is an infinity.
|
|---|
| 1843 | */
|
|---|
| 1844 | /*#define HAS_ISINF / **/
|
|---|
| 1845 |
|
|---|
| 1846 | /* HAS_ISNAN:
|
|---|
| 1847 | * This symbol, if defined, indicates that the isnan routine is
|
|---|
| 1848 | * available to check whether a double is a NaN.
|
|---|
| 1849 | */
|
|---|
| 1850 | /*#define HAS_ISNAN / **/
|
|---|
| 1851 |
|
|---|
| 1852 | /* HAS_ISNANL:
|
|---|
| 1853 | * This symbol, if defined, indicates that the isnanl routine is
|
|---|
| 1854 | * available to check whether a long double is a NaN.
|
|---|
| 1855 | */
|
|---|
| 1856 | /*#define HAS_ISNANL / **/
|
|---|
| 1857 |
|
|---|
| 1858 | /* HAS_LCHOWN:
|
|---|
| 1859 | * This symbol, if defined, indicates that the lchown routine is
|
|---|
| 1860 | * available to operate on a symbolic link (instead of following the
|
|---|
| 1861 | * link).
|
|---|
| 1862 | */
|
|---|
| 1863 | /*#define HAS_LCHOWN / **/
|
|---|
| 1864 |
|
|---|
| 1865 | /* HAS_LDBL_DIG:
|
|---|
| 1866 | * This symbol, if defined, indicates that this system's <float.h>
|
|---|
| 1867 | * or <limits.h> defines the symbol LDBL_DIG, which is the number
|
|---|
| 1868 | * of significant digits in a long double precision number. Unlike
|
|---|
| 1869 | * for DBL_DIG, there's no good guess for LDBL_DIG if it is undefined.
|
|---|
| 1870 | */
|
|---|
| 1871 | /*#define HAS_LDBL_DIG / * */
|
|---|
| 1872 |
|
|---|
| 1873 | /* HAS_LOCALTIME_R:
|
|---|
| 1874 | * This symbol, if defined, indicates that the localtime_r routine
|
|---|
| 1875 | * is available to localtime re-entrantly.
|
|---|
| 1876 | */
|
|---|
| 1877 | /* LOCALTIME_R_PROTO:
|
|---|
| 1878 | * This symbol encodes the prototype of localtime_r.
|
|---|
| 1879 | * It is zero if d_localtime_r is undef, and one of the
|
|---|
| 1880 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_localtime_r
|
|---|
| 1881 | * is defined.
|
|---|
| 1882 | */
|
|---|
| 1883 | /*#define HAS_LOCALTIME_R / **/
|
|---|
| 1884 | #define LOCALTIME_R_PROTO 0 /**/
|
|---|
| 1885 |
|
|---|
| 1886 | /* HAS_LONG_DOUBLE:
|
|---|
| 1887 | * This symbol will be defined if the C compiler supports long
|
|---|
| 1888 | * doubles.
|
|---|
| 1889 | */
|
|---|
| 1890 | /* LONG_DOUBLESIZE:
|
|---|
| 1891 | * This symbol contains the size of a long double, so that the
|
|---|
| 1892 | * C preprocessor can make decisions based on it. It is only
|
|---|
| 1893 | * defined if the system supports long doubles.
|
|---|
| 1894 | */
|
|---|
| 1895 | /*#define HAS_LONG_DOUBLE / **/
|
|---|
| 1896 | #ifdef HAS_LONG_DOUBLE
|
|---|
| 1897 | #define LONG_DOUBLESIZE 8 /**/
|
|---|
| 1898 | #endif
|
|---|
| 1899 |
|
|---|
| 1900 | /* HAS_LONG_LONG:
|
|---|
| 1901 | * This symbol will be defined if the C compiler supports long long.
|
|---|
| 1902 | */
|
|---|
| 1903 | /* LONGLONGSIZE:
|
|---|
| 1904 | * This symbol contains the size of a long long, so that the
|
|---|
| 1905 | * C preprocessor can make decisions based on it. It is only
|
|---|
| 1906 | * defined if the system supports long long.
|
|---|
| 1907 | */
|
|---|
| 1908 | /*#define HAS_LONG_LONG / **/
|
|---|
| 1909 | #ifdef HAS_LONG_LONG
|
|---|
| 1910 | #define LONGLONGSIZE 8 /**/
|
|---|
| 1911 | #endif
|
|---|
| 1912 |
|
|---|
| 1913 | /* HAS_LSEEK_PROTO:
|
|---|
| 1914 | * This symbol, if defined, indicates that the system provides
|
|---|
| 1915 | * a prototype for the lseek() function. Otherwise, it is up
|
|---|
| 1916 | * to the program to supply one. A good guess is
|
|---|
| 1917 | * extern off_t lseek(int, off_t, int);
|
|---|
| 1918 | */
|
|---|
| 1919 | /*#define HAS_LSEEK_PROTO / **/
|
|---|
| 1920 |
|
|---|
| 1921 | /* HAS_MADVISE:
|
|---|
| 1922 | * This symbol, if defined, indicates that the madvise system call is
|
|---|
| 1923 | * available to map a file into memory.
|
|---|
| 1924 | */
|
|---|
| 1925 | /*#define HAS_MADVISE / **/
|
|---|
| 1926 |
|
|---|
| 1927 | /* HAS_MALLOC_SIZE:
|
|---|
| 1928 | * This symbol, if defined, indicates that the malloc_size
|
|---|
| 1929 | * routine is available for use.
|
|---|
| 1930 | */
|
|---|
| 1931 | /*#define HAS_MALLOC_SIZE / **/
|
|---|
| 1932 |
|
|---|
| 1933 | /* HAS_MALLOC_GOOD_SIZE:
|
|---|
| 1934 | * This symbol, if defined, indicates that the malloc_good_size
|
|---|
| 1935 | * routine is available for use.
|
|---|
| 1936 | */
|
|---|
| 1937 | /*#define HAS_MALLOC_GOOD_SIZE / **/
|
|---|
| 1938 |
|
|---|
| 1939 | /* HAS_MEMCHR:
|
|---|
| 1940 | * This symbol, if defined, indicates that the memchr routine is available
|
|---|
| 1941 | * to locate characters within a C string.
|
|---|
| 1942 | */
|
|---|
| 1943 | /*#define HAS_MEMCHR / **/
|
|---|
| 1944 |
|
|---|
| 1945 | /* HAS_MKDTEMP:
|
|---|
| 1946 | * This symbol, if defined, indicates that the mkdtemp routine is
|
|---|
| 1947 | * available to exclusively create a uniquely named temporary directory.
|
|---|
| 1948 | */
|
|---|
| 1949 | /*#define HAS_MKDTEMP / **/
|
|---|
| 1950 |
|
|---|
| 1951 | /* HAS_MKSTEMP:
|
|---|
| 1952 | * This symbol, if defined, indicates that the mkstemp routine is
|
|---|
| 1953 | * available to exclusively create and open a uniquely named
|
|---|
| 1954 | * temporary file.
|
|---|
| 1955 | */
|
|---|
| 1956 | /*#define HAS_MKSTEMP / **/
|
|---|
| 1957 |
|
|---|
| 1958 | /* HAS_MKSTEMPS:
|
|---|
| 1959 | * This symbol, if defined, indicates that the mkstemps routine is
|
|---|
| 1960 | * available to excluslvely create and open a uniquely named
|
|---|
| 1961 | * (with a suffix) temporary file.
|
|---|
| 1962 | */
|
|---|
| 1963 | /*#define HAS_MKSTEMPS / **/
|
|---|
| 1964 |
|
|---|
| 1965 | /* HAS_MMAP:
|
|---|
| 1966 | * This symbol, if defined, indicates that the mmap system call is
|
|---|
| 1967 | * available to map a file into memory.
|
|---|
| 1968 | */
|
|---|
| 1969 | /* Mmap_t:
|
|---|
| 1970 | * This symbol holds the return type of the mmap() system call
|
|---|
| 1971 | * (and simultaneously the type of the first argument).
|
|---|
| 1972 | * Usually set to 'void *' or 'cadd_t'.
|
|---|
| 1973 | */
|
|---|
| 1974 | /*#define HAS_MMAP / **/
|
|---|
| 1975 | #define Mmap_t /**/
|
|---|
| 1976 |
|
|---|
| 1977 | /* HAS_MODFL:
|
|---|
| 1978 | * This symbol, if defined, indicates that the modfl routine is
|
|---|
| 1979 | * available to split a long double x into a fractional part f and
|
|---|
| 1980 | * an integer part i such that |f| < 1.0 and (f + i) = x.
|
|---|
| 1981 | */
|
|---|
| 1982 | /* HAS_MODFL_PROTO:
|
|---|
| 1983 | * This symbol, if defined, indicates that the system provides
|
|---|
| 1984 | * a prototype for the modfl() function. Otherwise, it is up
|
|---|
| 1985 | * to the program to supply one.
|
|---|
| 1986 | */
|
|---|
| 1987 | /* HAS_MODFL_POW32_BUG:
|
|---|
| 1988 | * This symbol, if defined, indicates that the modfl routine is
|
|---|
| 1989 | * broken for long doubles >= pow(2, 32).
|
|---|
| 1990 | * For example from 4294967303.150000 one would get 4294967302.000000
|
|---|
| 1991 | * and 1.150000. The bug has been seen in certain versions of glibc,
|
|---|
| 1992 | * release 2.2.2 is known to be okay.
|
|---|
| 1993 | */
|
|---|
| 1994 | /*#define HAS_MODFL / **/
|
|---|
| 1995 | /*#define HAS_MODFL_PROTO / **/
|
|---|
| 1996 | /*#define HAS_MODFL_POW32_BUG / **/
|
|---|
| 1997 |
|
|---|
| 1998 | /* HAS_MPROTECT:
|
|---|
| 1999 | * This symbol, if defined, indicates that the mprotect system call is
|
|---|
| 2000 | * available to modify the access protection of a memory mapped file.
|
|---|
| 2001 | */
|
|---|
| 2002 | /*#define HAS_MPROTECT / **/
|
|---|
| 2003 |
|
|---|
| 2004 | /* HAS_MSG:
|
|---|
| 2005 | * This symbol, if defined, indicates that the entire msg*(2) library is
|
|---|
| 2006 | * supported (IPC mechanism based on message queues).
|
|---|
| 2007 | */
|
|---|
| 2008 | /*#define HAS_MSG / **/
|
|---|
| 2009 |
|
|---|
| 2010 | /* HAS_STRUCT_MSGHDR:
|
|---|
| 2011 | * This symbol, if defined, indicates that the struct msghdr
|
|---|
| 2012 | * is supported.
|
|---|
| 2013 | */
|
|---|
| 2014 | /*#define HAS_STRUCT_MSGHDR / **/
|
|---|
| 2015 |
|
|---|
| 2016 | /* HAS_OFF64_T:
|
|---|
| 2017 | * This symbol will be defined if the C compiler supports off64_t.
|
|---|
| 2018 | */
|
|---|
| 2019 | /*#define HAS_OFF64_T / **/
|
|---|
| 2020 |
|
|---|
| 2021 | /* HAS_OPEN3:
|
|---|
| 2022 | * This manifest constant lets the C program know that the three
|
|---|
| 2023 | * argument form of open(2) is available.
|
|---|
| 2024 | */
|
|---|
| 2025 | /*#define HAS_OPEN3 / **/
|
|---|
| 2026 |
|
|---|
| 2027 | /* OLD_PTHREAD_CREATE_JOINABLE:
|
|---|
| 2028 | * This symbol, if defined, indicates how to create pthread
|
|---|
| 2029 | * in joinable (aka undetached) state. NOTE: not defined
|
|---|
| 2030 | * if pthread.h already has defined PTHREAD_CREATE_JOINABLE
|
|---|
| 2031 | * (the new version of the constant).
|
|---|
| 2032 | * If defined, known values are PTHREAD_CREATE_UNDETACHED
|
|---|
| 2033 | * and __UNDETACHED.
|
|---|
| 2034 | */
|
|---|
| 2035 | /*#define OLD_PTHREAD_CREATE_JOINABLE / **/
|
|---|
| 2036 |
|
|---|
| 2037 | /* HAS_PTHREAD_YIELD:
|
|---|
| 2038 | * This symbol, if defined, indicates that the pthread_yield
|
|---|
| 2039 | * routine is available to yield the execution of the current
|
|---|
| 2040 | * thread. sched_yield is preferable to pthread_yield.
|
|---|
| 2041 | */
|
|---|
| 2042 | /* SCHED_YIELD:
|
|---|
| 2043 | * This symbol defines the way to yield the execution of
|
|---|
| 2044 | * the current thread. Known ways are sched_yield,
|
|---|
| 2045 | * pthread_yield, and pthread_yield with NULL.
|
|---|
| 2046 | */
|
|---|
| 2047 | /* HAS_SCHED_YIELD:
|
|---|
| 2048 | * This symbol, if defined, indicates that the sched_yield
|
|---|
| 2049 | * routine is available to yield the execution of the current
|
|---|
| 2050 | * thread. sched_yield is preferable to pthread_yield.
|
|---|
| 2051 | */
|
|---|
| 2052 | /*#define HAS_PTHREAD_YIELD / **/
|
|---|
| 2053 | #define SCHED_YIELD sched_yield() /**/
|
|---|
| 2054 | /*#define HAS_SCHED_YIELD / **/
|
|---|
| 2055 |
|
|---|
| 2056 | /* HAS_RANDOM_R:
|
|---|
| 2057 | * This symbol, if defined, indicates that the random_r routine
|
|---|
| 2058 | * is available to random re-entrantly.
|
|---|
| 2059 | */
|
|---|
| 2060 | /* RANDOM_R_PROTO:
|
|---|
| 2061 | * This symbol encodes the prototype of random_r.
|
|---|
| 2062 | * It is zero if d_random_r is undef, and one of the
|
|---|
| 2063 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_random_r
|
|---|
| 2064 | * is defined.
|
|---|
| 2065 | */
|
|---|
| 2066 | /*#define HAS_RANDOM_R / **/
|
|---|
| 2067 | #define RANDOM_R_PROTO 0 /**/
|
|---|
| 2068 |
|
|---|
| 2069 | /* HAS_READDIR_R:
|
|---|
| 2070 | * This symbol, if defined, indicates that the readdir_r routine
|
|---|
| 2071 | * is available to readdir re-entrantly.
|
|---|
| 2072 | */
|
|---|
| 2073 | /* READDIR_R_PROTO:
|
|---|
| 2074 | * This symbol encodes the prototype of readdir_r.
|
|---|
| 2075 | * It is zero if d_readdir_r is undef, and one of the
|
|---|
| 2076 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_readdir_r
|
|---|
| 2077 | * is defined.
|
|---|
| 2078 | */
|
|---|
| 2079 | /*#define HAS_READDIR_R / **/
|
|---|
| 2080 | #define READDIR_R_PROTO 0 /**/
|
|---|
| 2081 |
|
|---|
| 2082 | /* HAS_READV:
|
|---|
| 2083 | * This symbol, if defined, indicates that the readv routine is
|
|---|
| 2084 | * available to do gather reads. You will also need <sys/uio.h>
|
|---|
| 2085 | * and there I_SYSUIO.
|
|---|
| 2086 | */
|
|---|
| 2087 | /*#define HAS_READV / **/
|
|---|
| 2088 |
|
|---|
| 2089 | /* HAS_RECVMSG:
|
|---|
| 2090 | * This symbol, if defined, indicates that the recvmsg routine is
|
|---|
| 2091 | * available to send structured socket messages.
|
|---|
| 2092 | */
|
|---|
| 2093 | /*#define HAS_RECVMSG / **/
|
|---|
| 2094 |
|
|---|
| 2095 | /* HAS_SAFE_BCOPY:
|
|---|
| 2096 | * This symbol, if defined, indicates that the bcopy routine is available
|
|---|
| 2097 | * to copy potentially overlapping memory blocks. Normally, you should
|
|---|
| 2098 | * probably use memmove() or memcpy(). If neither is defined, roll your
|
|---|
| 2099 | * own version.
|
|---|
| 2100 | */
|
|---|
| 2101 | /*#define HAS_SAFE_BCOPY / **/
|
|---|
| 2102 |
|
|---|
| 2103 | /* HAS_SAFE_MEMCPY:
|
|---|
| 2104 | * This symbol, if defined, indicates that the memcpy routine is available
|
|---|
| 2105 | * to copy potentially overlapping memory blocks. If you need to
|
|---|
| 2106 | * copy overlapping memory blocks, you should check HAS_MEMMOVE and
|
|---|
| 2107 | * use memmove() instead, if available.
|
|---|
| 2108 | */
|
|---|
| 2109 | /*#define HAS_SAFE_MEMCPY / **/
|
|---|
| 2110 |
|
|---|
| 2111 | /* HAS_SANE_MEMCMP:
|
|---|
| 2112 | * This symbol, if defined, indicates that the memcmp routine is available
|
|---|
| 2113 | * and can be used to compare relative magnitudes of chars with their high
|
|---|
| 2114 | * bits set. If it is not defined, roll your own version.
|
|---|
| 2115 | */
|
|---|
| 2116 | /*#define HAS_SANE_MEMCMP / **/
|
|---|
| 2117 |
|
|---|
| 2118 | /* HAS_SBRK_PROTO:
|
|---|
| 2119 | * This symbol, if defined, indicates that the system provides
|
|---|
| 2120 | * a prototype for the sbrk() function. Otherwise, it is up
|
|---|
| 2121 | * to the program to supply one. Good guesses are
|
|---|
| 2122 | * extern void* sbrk(int);
|
|---|
| 2123 | * extern void* sbrk(size_t);
|
|---|
| 2124 | */
|
|---|
| 2125 | /*#define HAS_SBRK_PROTO / **/
|
|---|
| 2126 |
|
|---|
| 2127 | /* HAS_SEM:
|
|---|
| 2128 | * This symbol, if defined, indicates that the entire sem*(2) library is
|
|---|
| 2129 | * supported.
|
|---|
| 2130 | */
|
|---|
| 2131 | /*#define HAS_SEM / **/
|
|---|
| 2132 |
|
|---|
| 2133 | /* HAS_SENDMSG:
|
|---|
| 2134 | * This symbol, if defined, indicates that the sendmsg routine is
|
|---|
| 2135 | * available to send structured socket messages.
|
|---|
| 2136 | */
|
|---|
| 2137 | /*#define HAS_SENDMSG / **/
|
|---|
| 2138 |
|
|---|
| 2139 | /* HAS_SETGRENT:
|
|---|
| 2140 | * This symbol, if defined, indicates that the setgrent routine is
|
|---|
| 2141 | * available for initializing sequential access of the group database.
|
|---|
| 2142 | */
|
|---|
| 2143 | /*#define HAS_SETGRENT / **/
|
|---|
| 2144 |
|
|---|
| 2145 | /* HAS_SETGRENT_R:
|
|---|
| 2146 | * This symbol, if defined, indicates that the setgrent_r routine
|
|---|
| 2147 | * is available to setgrent re-entrantly.
|
|---|
| 2148 | */
|
|---|
| 2149 | /* SETGRENT_R_PROTO:
|
|---|
| 2150 | * This symbol encodes the prototype of setgrent_r.
|
|---|
| 2151 | * It is zero if d_setgrent_r is undef, and one of the
|
|---|
| 2152 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setgrent_r
|
|---|
| 2153 | * is defined.
|
|---|
| 2154 | */
|
|---|
| 2155 | /*#define HAS_SETGRENT_R / **/
|
|---|
| 2156 | #define SETGRENT_R_PROTO 0 /**/
|
|---|
| 2157 |
|
|---|
| 2158 | /* HAS_SETGROUPS:
|
|---|
| 2159 | * This symbol, if defined, indicates that the setgroups() routine is
|
|---|
| 2160 | * available to set the list of process groups. If unavailable, multiple
|
|---|
| 2161 | * groups are probably not supported.
|
|---|
| 2162 | */
|
|---|
| 2163 | /*#define HAS_SETGROUPS / **/
|
|---|
| 2164 |
|
|---|
| 2165 | /* HAS_SETHOSTENT:
|
|---|
| 2166 | * This symbol, if defined, indicates that the sethostent() routine is
|
|---|
| 2167 | * available.
|
|---|
| 2168 | */
|
|---|
| 2169 | /*#define HAS_SETHOSTENT / **/
|
|---|
| 2170 |
|
|---|
| 2171 | /* HAS_SETITIMER:
|
|---|
| 2172 | * This symbol, if defined, indicates that the setitimer routine is
|
|---|
| 2173 | * available to set interval timers.
|
|---|
| 2174 | */
|
|---|
| 2175 | /*#define HAS_SETITIMER / **/
|
|---|
| 2176 |
|
|---|
| 2177 | /* HAS_SETNETENT:
|
|---|
| 2178 | * This symbol, if defined, indicates that the setnetent() routine is
|
|---|
| 2179 | * available.
|
|---|
| 2180 | */
|
|---|
| 2181 | /*#define HAS_SETNETENT / **/
|
|---|
| 2182 |
|
|---|
| 2183 | /* HAS_SETPROTOENT:
|
|---|
| 2184 | * This symbol, if defined, indicates that the setprotoent() routine is
|
|---|
| 2185 | * available.
|
|---|
| 2186 | */
|
|---|
| 2187 | /*#define HAS_SETPROTOENT / **/
|
|---|
| 2188 |
|
|---|
| 2189 | /* HAS_SETPGRP:
|
|---|
| 2190 | * This symbol, if defined, indicates that the setpgrp routine is
|
|---|
| 2191 | * available to set the current process group.
|
|---|
| 2192 | */
|
|---|
| 2193 | /* USE_BSD_SETPGRP:
|
|---|
| 2194 | * This symbol, if defined, indicates that setpgrp needs two
|
|---|
| 2195 | * arguments whereas USG one needs none. See also HAS_SETPGID
|
|---|
| 2196 | * for a POSIX interface.
|
|---|
| 2197 | */
|
|---|
| 2198 | /*#define HAS_SETPGRP / **/
|
|---|
| 2199 | /*#define USE_BSD_SETPGRP / **/
|
|---|
| 2200 |
|
|---|
| 2201 | /* HAS_SETPROCTITLE:
|
|---|
| 2202 | * This symbol, if defined, indicates that the setproctitle routine is
|
|---|
| 2203 | * available to set process title.
|
|---|
| 2204 | */
|
|---|
| 2205 | /*#define HAS_SETPROCTITLE / **/
|
|---|
| 2206 |
|
|---|
| 2207 | /* HAS_SETPWENT:
|
|---|
| 2208 | * This symbol, if defined, indicates that the setpwent routine is
|
|---|
| 2209 | * available for initializing sequential access of the passwd database.
|
|---|
| 2210 | */
|
|---|
| 2211 | /*#define HAS_SETPWENT / **/
|
|---|
| 2212 |
|
|---|
| 2213 | /* HAS_SETPWENT_R:
|
|---|
| 2214 | * This symbol, if defined, indicates that the setpwent_r routine
|
|---|
| 2215 | * is available to setpwent re-entrantly.
|
|---|
| 2216 | */
|
|---|
| 2217 | /* SETPWENT_R_PROTO:
|
|---|
| 2218 | * This symbol encodes the prototype of setpwent_r.
|
|---|
| 2219 | * It is zero if d_setpwent_r is undef, and one of the
|
|---|
| 2220 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setpwent_r
|
|---|
| 2221 | * is defined.
|
|---|
| 2222 | */
|
|---|
| 2223 | /*#define HAS_SETPWENT_R / **/
|
|---|
| 2224 | #define SETPWENT_R_PROTO 0 /**/
|
|---|
| 2225 |
|
|---|
| 2226 | /* HAS_SETSERVENT:
|
|---|
| 2227 | * This symbol, if defined, indicates that the setservent() routine is
|
|---|
| 2228 | * available.
|
|---|
| 2229 | */
|
|---|
| 2230 | /*#define HAS_SETSERVENT / **/
|
|---|
| 2231 |
|
|---|
| 2232 | /* HAS_SETVBUF:
|
|---|
| 2233 | * This symbol, if defined, indicates that the setvbuf routine is
|
|---|
| 2234 | * available to change buffering on an open stdio stream.
|
|---|
| 2235 | * to a line-buffered mode.
|
|---|
| 2236 | */
|
|---|
| 2237 | /*#define HAS_SETVBUF / **/
|
|---|
| 2238 |
|
|---|
| 2239 | /* USE_SFIO:
|
|---|
| 2240 | * This symbol, if defined, indicates that sfio should
|
|---|
| 2241 | * be used.
|
|---|
| 2242 | */
|
|---|
| 2243 | /*#define USE_SFIO / **/
|
|---|
| 2244 |
|
|---|
| 2245 | /* HAS_SHM:
|
|---|
| 2246 | * This symbol, if defined, indicates that the entire shm*(2) library is
|
|---|
| 2247 | * supported.
|
|---|
| 2248 | */
|
|---|
| 2249 | /*#define HAS_SHM / **/
|
|---|
| 2250 |
|
|---|
| 2251 | /* HAS_SIGACTION:
|
|---|
| 2252 | * This symbol, if defined, indicates that Vr4's sigaction() routine
|
|---|
| 2253 | * is available.
|
|---|
| 2254 | */
|
|---|
| 2255 | /*#define HAS_SIGACTION / **/
|
|---|
| 2256 |
|
|---|
| 2257 | /* HAS_SIGSETJMP:
|
|---|
| 2258 | * This variable indicates to the C program that the sigsetjmp()
|
|---|
| 2259 | * routine is available to save the calling process's registers
|
|---|
| 2260 | * and stack environment for later use by siglongjmp(), and
|
|---|
| 2261 | * to optionally save the process's signal mask. See
|
|---|
| 2262 | * Sigjmp_buf, Sigsetjmp, and Siglongjmp.
|
|---|
| 2263 | */
|
|---|
| 2264 | /* Sigjmp_buf:
|
|---|
| 2265 | * This is the buffer type to be used with Sigsetjmp and Siglongjmp.
|
|---|
| 2266 | */
|
|---|
| 2267 | /* Sigsetjmp:
|
|---|
| 2268 | * This macro is used in the same way as sigsetjmp(), but will invoke
|
|---|
| 2269 | * traditional setjmp() if sigsetjmp isn't available.
|
|---|
| 2270 | * See HAS_SIGSETJMP.
|
|---|
| 2271 | */
|
|---|
| 2272 | /* Siglongjmp:
|
|---|
| 2273 | * This macro is used in the same way as siglongjmp(), but will invoke
|
|---|
| 2274 | * traditional longjmp() if siglongjmp isn't available.
|
|---|
| 2275 | * See HAS_SIGSETJMP.
|
|---|
| 2276 | */
|
|---|
| 2277 | /*#define HAS_SIGSETJMP / **/
|
|---|
| 2278 | #ifdef HAS_SIGSETJMP
|
|---|
| 2279 | #define Sigjmp_buf sigjmp_buf
|
|---|
| 2280 | #define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask))
|
|---|
| 2281 | #define Siglongjmp(buf,retval) siglongjmp((buf),(retval))
|
|---|
| 2282 | #else
|
|---|
| 2283 | #define Sigjmp_buf jmp_buf
|
|---|
| 2284 | #define Sigsetjmp(buf,save_mask) setjmp((buf))
|
|---|
| 2285 | #define Siglongjmp(buf,retval) longjmp((buf),(retval))
|
|---|
| 2286 | #endif
|
|---|
| 2287 |
|
|---|
| 2288 | /* USE_SITECUSTOMIZE:
|
|---|
| 2289 | * This symbol, if defined, indicates that sitecustomize should
|
|---|
| 2290 | * be used.
|
|---|
| 2291 | */
|
|---|
| 2292 | /*#define USE_SITECUSTOMIZE / **/
|
|---|
| 2293 |
|
|---|
| 2294 | /* HAS_SOCKET:
|
|---|
| 2295 | * This symbol, if defined, indicates that the BSD socket interface is
|
|---|
| 2296 | * supported.
|
|---|
| 2297 | */
|
|---|
| 2298 | /* HAS_SOCKETPAIR:
|
|---|
| 2299 | * This symbol, if defined, indicates that the BSD socketpair() call is
|
|---|
| 2300 | * supported.
|
|---|
| 2301 | */
|
|---|
| 2302 | /* HAS_MSG_CTRUNC:
|
|---|
| 2303 | * This symbol, if defined, indicates that the MSG_CTRUNC is supported.
|
|---|
| 2304 | * Checking just with #ifdef might not be enough because this symbol
|
|---|
| 2305 | * has been known to be an enum.
|
|---|
| 2306 | */
|
|---|
| 2307 | /* HAS_MSG_DONTROUTE:
|
|---|
| 2308 | * This symbol, if defined, indicates that the MSG_DONTROUTE is supported.
|
|---|
| 2309 | * Checking just with #ifdef might not be enough because this symbol
|
|---|
| 2310 | * has been known to be an enum.
|
|---|
| 2311 | */
|
|---|
| 2312 | /* HAS_MSG_OOB:
|
|---|
| 2313 | * This symbol, if defined, indicates that the MSG_OOB is supported.
|
|---|
| 2314 | * Checking just with #ifdef might not be enough because this symbol
|
|---|
| 2315 | * has been known to be an enum.
|
|---|
| 2316 | */
|
|---|
| 2317 | /* HAS_MSG_PEEK:
|
|---|
| 2318 | * This symbol, if defined, indicates that the MSG_PEEK is supported.
|
|---|
| 2319 | * Checking just with #ifdef might not be enough because this symbol
|
|---|
| 2320 | * has been known to be an enum.
|
|---|
| 2321 | */
|
|---|
| 2322 | /* HAS_MSG_PROXY:
|
|---|
| 2323 | * This symbol, if defined, indicates that the MSG_PROXY is supported.
|
|---|
| 2324 | * Checking just with #ifdef might not be enough because this symbol
|
|---|
| 2325 | * has been known to be an enum.
|
|---|
| 2326 | */
|
|---|
| 2327 | /* HAS_SCM_RIGHTS:
|
|---|
| 2328 | * This symbol, if defined, indicates that the SCM_RIGHTS is supported.
|
|---|
| 2329 | * Checking just with #ifdef might not be enough because this symbol
|
|---|
| 2330 | * has been known to be an enum.
|
|---|
| 2331 | */
|
|---|
| 2332 | /*#define HAS_SOCKET / **/
|
|---|
| 2333 | /*#define HAS_SOCKETPAIR / **/
|
|---|
| 2334 | /*#define HAS_MSG_CTRUNC / **/
|
|---|
| 2335 | /*#define HAS_MSG_DONTROUTE / **/
|
|---|
| 2336 | /*#define HAS_MSG_OOB / **/
|
|---|
| 2337 | /*#define HAS_MSG_PEEK / **/
|
|---|
| 2338 | /*#define HAS_MSG_PROXY / **/
|
|---|
| 2339 | /*#define HAS_SCM_RIGHTS / **/
|
|---|
| 2340 |
|
|---|
| 2341 | /* HAS_SOCKS5_INIT:
|
|---|
| 2342 | * This symbol, if defined, indicates that the socks5_init routine is
|
|---|
| 2343 | * available to initialize SOCKS 5.
|
|---|
| 2344 | */
|
|---|
| 2345 | /*#define HAS_SOCKS5_INIT / **/
|
|---|
| 2346 |
|
|---|
| 2347 | /* HAS_SQRTL:
|
|---|
| 2348 | * This symbol, if defined, indicates that the sqrtl routine is
|
|---|
| 2349 | * available to do long double square roots.
|
|---|
| 2350 | */
|
|---|
| 2351 | /*#define HAS_SQRTL / **/
|
|---|
| 2352 |
|
|---|
| 2353 | /* HAS_SRAND48_R:
|
|---|
| 2354 | * This symbol, if defined, indicates that the srand48_r routine
|
|---|
| 2355 | * is available to srand48 re-entrantly.
|
|---|
| 2356 | */
|
|---|
| 2357 | /* SRAND48_R_PROTO:
|
|---|
| 2358 | * This symbol encodes the prototype of srand48_r.
|
|---|
| 2359 | * It is zero if d_srand48_r is undef, and one of the
|
|---|
| 2360 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_srand48_r
|
|---|
| 2361 | * is defined.
|
|---|
| 2362 | */
|
|---|
| 2363 | /*#define HAS_SRAND48_R / **/
|
|---|
| 2364 | #define SRAND48_R_PROTO 0 /**/
|
|---|
| 2365 |
|
|---|
| 2366 | /* HAS_SRANDOM_R:
|
|---|
| 2367 | * This symbol, if defined, indicates that the srandom_r routine
|
|---|
| 2368 | * is available to srandom re-entrantly.
|
|---|
| 2369 | */
|
|---|
| 2370 | /* SRANDOM_R_PROTO:
|
|---|
| 2371 | * This symbol encodes the prototype of srandom_r.
|
|---|
| 2372 | * It is zero if d_srandom_r is undef, and one of the
|
|---|
| 2373 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_srandom_r
|
|---|
| 2374 | * is defined.
|
|---|
| 2375 | */
|
|---|
| 2376 | /*#define HAS_SRANDOM_R / **/
|
|---|
| 2377 | #define SRANDOM_R_PROTO 0 /**/
|
|---|
| 2378 |
|
|---|
| 2379 | /* USE_STAT_BLOCKS:
|
|---|
| 2380 | * This symbol is defined if this system has a stat structure declaring
|
|---|
| 2381 | * st_blksize and st_blocks.
|
|---|
| 2382 | */
|
|---|
| 2383 | #ifndef USE_STAT_BLOCKS
|
|---|
| 2384 | /*#define USE_STAT_BLOCKS / **/
|
|---|
| 2385 | #endif
|
|---|
| 2386 |
|
|---|
| 2387 | /* HAS_STRUCT_STATFS_F_FLAGS:
|
|---|
| 2388 | * This symbol, if defined, indicates that the struct statfs
|
|---|
| 2389 | * does have the f_flags member containing the mount flags of
|
|---|
| 2390 | * the filesystem containing the file.
|
|---|
| 2391 | * This kind of struct statfs is coming from <sys/mount.h> (BSD 4.3),
|
|---|
| 2392 | * not from <sys/statfs.h> (SYSV). Older BSDs (like Ultrix) do not
|
|---|
| 2393 | * have statfs() and struct statfs, they have ustat() and getmnt()
|
|---|
| 2394 | * with struct ustat and struct fs_data.
|
|---|
| 2395 | */
|
|---|
| 2396 | /*#define HAS_STRUCT_STATFS_F_FLAGS / **/
|
|---|
| 2397 |
|
|---|
| 2398 | /* HAS_STRUCT_STATFS:
|
|---|
| 2399 | * This symbol, if defined, indicates that the struct statfs
|
|---|
| 2400 | * to do statfs() is supported.
|
|---|
| 2401 | */
|
|---|
| 2402 | /*#define HAS_STRUCT_STATFS / **/
|
|---|
| 2403 |
|
|---|
| 2404 | /* HAS_FSTATVFS:
|
|---|
| 2405 | * This symbol, if defined, indicates that the fstatvfs routine is
|
|---|
| 2406 | * available to stat filesystems by file descriptors.
|
|---|
| 2407 | */
|
|---|
| 2408 | /*#define HAS_FSTATVFS / **/
|
|---|
| 2409 |
|
|---|
| 2410 | /* USE_STDIO_PTR:
|
|---|
| 2411 | * This symbol is defined if the _ptr and _cnt fields (or similar)
|
|---|
| 2412 | * of the stdio FILE structure can be used to access the stdio buffer
|
|---|
| 2413 | * for a file handle. If this is defined, then the FILE_ptr(fp)
|
|---|
| 2414 | * and FILE_cnt(fp) macros will also be defined and should be used
|
|---|
| 2415 | * to access these fields.
|
|---|
| 2416 | */
|
|---|
| 2417 | /* FILE_ptr:
|
|---|
| 2418 | * This macro is used to access the _ptr field (or equivalent) of the
|
|---|
| 2419 | * FILE structure pointed to by its argument. This macro will always be
|
|---|
| 2420 | * defined if USE_STDIO_PTR is defined.
|
|---|
| 2421 | */
|
|---|
| 2422 | /* STDIO_PTR_LVALUE:
|
|---|
| 2423 | * This symbol is defined if the FILE_ptr macro can be used as an
|
|---|
| 2424 | * lvalue.
|
|---|
| 2425 | */
|
|---|
| 2426 | /* FILE_cnt:
|
|---|
| 2427 | * This macro is used to access the _cnt field (or equivalent) of the
|
|---|
| 2428 | * FILE structure pointed to by its argument. This macro will always be
|
|---|
| 2429 | * defined if USE_STDIO_PTR is defined.
|
|---|
| 2430 | */
|
|---|
| 2431 | /* STDIO_CNT_LVALUE:
|
|---|
| 2432 | * This symbol is defined if the FILE_cnt macro can be used as an
|
|---|
| 2433 | * lvalue.
|
|---|
| 2434 | */
|
|---|
| 2435 | /* STDIO_PTR_LVAL_SETS_CNT:
|
|---|
| 2436 | * This symbol is defined if using the FILE_ptr macro as an lvalue
|
|---|
| 2437 | * to increase the pointer by n has the side effect of decreasing the
|
|---|
| 2438 | * value of File_cnt(fp) by n.
|
|---|
| 2439 | */
|
|---|
| 2440 | /* STDIO_PTR_LVAL_NOCHANGE_CNT:
|
|---|
| 2441 | * This symbol is defined if using the FILE_ptr macro as an lvalue
|
|---|
| 2442 | * to increase the pointer by n leaves File_cnt(fp) unchanged.
|
|---|
| 2443 | */
|
|---|
| 2444 | /*#define USE_STDIO_PTR / **/
|
|---|
| 2445 | #ifdef USE_STDIO_PTR
|
|---|
| 2446 | #define FILE_ptr(fp) ((fp)->_IO_read_ptr)
|
|---|
| 2447 | /*#define STDIO_PTR_LVALUE / **/
|
|---|
| 2448 | #define FILE_cnt(fp) ((fp)->_IO_read_end - (fp)->_IO_read_ptr)
|
|---|
| 2449 | /*#define STDIO_CNT_LVALUE / **/
|
|---|
| 2450 | /*#define STDIO_PTR_LVAL_SETS_CNT / **/
|
|---|
| 2451 | /*#define STDIO_PTR_LVAL_NOCHANGE_CNT / **/
|
|---|
| 2452 | #endif
|
|---|
| 2453 |
|
|---|
| 2454 | /* USE_STDIO_BASE:
|
|---|
| 2455 | * This symbol is defined if the _base field (or similar) of the
|
|---|
| 2456 | * stdio FILE structure can be used to access the stdio buffer for
|
|---|
| 2457 | * a file handle. If this is defined, then the FILE_base(fp) macro
|
|---|
| 2458 | * will also be defined and should be used to access this field.
|
|---|
| 2459 | * Also, the FILE_bufsiz(fp) macro will be defined and should be used
|
|---|
| 2460 | * to determine the number of bytes in the buffer. USE_STDIO_BASE
|
|---|
| 2461 | * will never be defined unless USE_STDIO_PTR is.
|
|---|
| 2462 | */
|
|---|
| 2463 | /* FILE_base:
|
|---|
| 2464 | * This macro is used to access the _base field (or equivalent) of the
|
|---|
| 2465 | * FILE structure pointed to by its argument. This macro will always be
|
|---|
| 2466 | * defined if USE_STDIO_BASE is defined.
|
|---|
| 2467 | */
|
|---|
| 2468 | /* FILE_bufsiz:
|
|---|
| 2469 | * This macro is used to determine the number of bytes in the I/O
|
|---|
| 2470 | * buffer pointed to by _base field (or equivalent) of the FILE
|
|---|
| 2471 | * structure pointed to its argument. This macro will always be defined
|
|---|
| 2472 | * if USE_STDIO_BASE is defined.
|
|---|
| 2473 | */
|
|---|
| 2474 | /*#define USE_STDIO_BASE / **/
|
|---|
| 2475 | #ifdef USE_STDIO_BASE
|
|---|
| 2476 | #define FILE_base(fp) ((fp)->_IO_read_base)
|
|---|
| 2477 | #define FILE_bufsiz(fp) ((fp)->_IO_read_end - (fp)->_IO_read_base)
|
|---|
| 2478 | #endif
|
|---|
| 2479 |
|
|---|
| 2480 | /* HAS_STRERROR:
|
|---|
| 2481 | * This symbol, if defined, indicates that the strerror routine is
|
|---|
| 2482 | * available to translate error numbers to strings. See the writeup
|
|---|
| 2483 | * of Strerror() in this file before you try to define your own.
|
|---|
| 2484 | */
|
|---|
| 2485 | /* HAS_SYS_ERRLIST:
|
|---|
| 2486 | * This symbol, if defined, indicates that the sys_errlist array is
|
|---|
| 2487 | * available to translate error numbers to strings. The extern int
|
|---|
| 2488 | * sys_nerr gives the size of that table.
|
|---|
| 2489 | */
|
|---|
| 2490 | /* Strerror:
|
|---|
| 2491 | * This preprocessor symbol is defined as a macro if strerror() is
|
|---|
| 2492 | * not available to translate error numbers to strings but sys_errlist[]
|
|---|
| 2493 | * array is there.
|
|---|
| 2494 | */
|
|---|
| 2495 | /*#define HAS_STRERROR / **/
|
|---|
| 2496 | /*#define HAS_SYS_ERRLIST / **/
|
|---|
| 2497 | #define Strerror(e) strerror(e)
|
|---|
| 2498 |
|
|---|
| 2499 | /* HAS_STRERROR_R:
|
|---|
| 2500 | * This symbol, if defined, indicates that the strerror_r routine
|
|---|
| 2501 | * is available to strerror re-entrantly.
|
|---|
| 2502 | */
|
|---|
| 2503 | /* STRERROR_R_PROTO:
|
|---|
| 2504 | * This symbol encodes the prototype of strerror_r.
|
|---|
| 2505 | * It is zero if d_strerror_r is undef, and one of the
|
|---|
| 2506 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_strerror_r
|
|---|
| 2507 | * is defined.
|
|---|
| 2508 | */
|
|---|
| 2509 | /*#define HAS_STRERROR_R / **/
|
|---|
| 2510 | #define STRERROR_R_PROTO 0 /**/
|
|---|
| 2511 |
|
|---|
| 2512 | /* HAS_STRTOLD:
|
|---|
| 2513 | * This symbol, if defined, indicates that the strtold routine is
|
|---|
| 2514 | * available to convert strings to long doubles.
|
|---|
| 2515 | */
|
|---|
| 2516 | /*#define HAS_STRTOLD / **/
|
|---|
| 2517 |
|
|---|
| 2518 | /* HAS_STRTOLL:
|
|---|
| 2519 | * This symbol, if defined, indicates that the strtoll routine is
|
|---|
| 2520 | * available to convert strings to long longs.
|
|---|
| 2521 | */
|
|---|
| 2522 | /*#define HAS_STRTOLL / **/
|
|---|
| 2523 |
|
|---|
| 2524 | /* HAS_STRTOQ:
|
|---|
| 2525 | * This symbol, if defined, indicates that the strtoq routine is
|
|---|
| 2526 | * available to convert strings to long longs (quads).
|
|---|
| 2527 | */
|
|---|
| 2528 | /*#define HAS_STRTOQ / **/
|
|---|
| 2529 |
|
|---|
| 2530 | /* HAS_STRTOUL:
|
|---|
| 2531 | * This symbol, if defined, indicates that the strtoul routine is
|
|---|
| 2532 | * available to provide conversion of strings to unsigned long.
|
|---|
| 2533 | */
|
|---|
| 2534 | #define HAS_STRTOUL /**/
|
|---|
| 2535 |
|
|---|
| 2536 | /* HAS_STRTOULL:
|
|---|
| 2537 | * This symbol, if defined, indicates that the strtoull routine is
|
|---|
| 2538 | * available to convert strings to unsigned long longs.
|
|---|
| 2539 | */
|
|---|
| 2540 | /*#define HAS_STRTOULL / **/
|
|---|
| 2541 |
|
|---|
| 2542 | /* HAS_STRTOUQ:
|
|---|
| 2543 | * This symbol, if defined, indicates that the strtouq routine is
|
|---|
| 2544 | * available to convert strings to unsigned long longs (quads).
|
|---|
| 2545 | */
|
|---|
| 2546 | /*#define HAS_STRTOUQ / **/
|
|---|
| 2547 |
|
|---|
| 2548 | /* HAS_TELLDIR_PROTO:
|
|---|
| 2549 | * This symbol, if defined, indicates that the system provides
|
|---|
| 2550 | * a prototype for the telldir() function. Otherwise, it is up
|
|---|
| 2551 | * to the program to supply one. A good guess is
|
|---|
| 2552 | * extern long telldir(DIR*);
|
|---|
| 2553 | */
|
|---|
| 2554 | /*#define HAS_TELLDIR_PROTO / **/
|
|---|
| 2555 |
|
|---|
| 2556 | /* HAS_TIME:
|
|---|
| 2557 | * This symbol, if defined, indicates that the time() routine exists.
|
|---|
| 2558 | */
|
|---|
| 2559 | /* Time_t:
|
|---|
| 2560 | * This symbol holds the type returned by time(). It can be long,
|
|---|
| 2561 | * or time_t on BSD sites (in which case <sys/types.h> should be
|
|---|
| 2562 | * included).
|
|---|
| 2563 | */
|
|---|
| 2564 | #define HAS_TIME /**/
|
|---|
| 2565 | #define Time_t time_t /* Time type */
|
|---|
| 2566 |
|
|---|
| 2567 | /* HAS_TIMES:
|
|---|
| 2568 | * This symbol, if defined, indicates that the times() routine exists.
|
|---|
| 2569 | * Note that this became obsolete on some systems (SUNOS), which now
|
|---|
| 2570 | * use getrusage(). It may be necessary to include <sys/times.h>.
|
|---|
| 2571 | */
|
|---|
| 2572 | /*#define HAS_TIMES / **/
|
|---|
| 2573 |
|
|---|
| 2574 | /* HAS_TMPNAM_R:
|
|---|
| 2575 | * This symbol, if defined, indicates that the tmpnam_r routine
|
|---|
| 2576 | * is available to tmpnam re-entrantly.
|
|---|
| 2577 | */
|
|---|
| 2578 | /* TMPNAM_R_PROTO:
|
|---|
| 2579 | * This symbol encodes the prototype of tmpnam_r.
|
|---|
| 2580 | * It is zero if d_tmpnam_r is undef, and one of the
|
|---|
| 2581 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_tmpnam_r
|
|---|
| 2582 | * is defined.
|
|---|
| 2583 | */
|
|---|
| 2584 | /*#define HAS_TMPNAM_R / **/
|
|---|
| 2585 | #define TMPNAM_R_PROTO 0 /**/
|
|---|
| 2586 |
|
|---|
| 2587 | /* HAS_UALARM:
|
|---|
| 2588 | * This symbol, if defined, indicates that the ualarm routine is
|
|---|
| 2589 | * available to do alarms with microsecond granularity.
|
|---|
| 2590 | */
|
|---|
| 2591 | /*#define HAS_UALARM / **/
|
|---|
| 2592 |
|
|---|
| 2593 | /* HAS_UNION_SEMUN:
|
|---|
| 2594 | * This symbol, if defined, indicates that the union semun is
|
|---|
| 2595 | * defined by including <sys/sem.h>. If not, the user code
|
|---|
| 2596 | * probably needs to define it as:
|
|---|
| 2597 | * union semun {
|
|---|
| 2598 | * int val;
|
|---|
| 2599 | * struct semid_ds *buf;
|
|---|
| 2600 | * unsigned short *array;
|
|---|
| 2601 | * }
|
|---|
| 2602 | */
|
|---|
| 2603 | /* USE_SEMCTL_SEMUN:
|
|---|
| 2604 | * This symbol, if defined, indicates that union semun is
|
|---|
| 2605 | * used for semctl IPC_STAT.
|
|---|
| 2606 | */
|
|---|
| 2607 | /* USE_SEMCTL_SEMID_DS:
|
|---|
| 2608 | * This symbol, if defined, indicates that struct semid_ds * is
|
|---|
| 2609 | * used for semctl IPC_STAT.
|
|---|
| 2610 | */
|
|---|
| 2611 | /*#define HAS_UNION_SEMUN / **/
|
|---|
| 2612 | /*#define USE_SEMCTL_SEMUN / **/
|
|---|
| 2613 | /*#define USE_SEMCTL_SEMID_DS / **/
|
|---|
| 2614 |
|
|---|
| 2615 | /* HAS_UNORDERED:
|
|---|
| 2616 | * This symbol, if defined, indicates that the unordered routine is
|
|---|
| 2617 | * available to check whether two doubles are unordered
|
|---|
| 2618 | * (effectively: whether either of them is NaN)
|
|---|
| 2619 | */
|
|---|
| 2620 | /*#define HAS_UNORDERED / **/
|
|---|
| 2621 |
|
|---|
| 2622 | /* HAS_UNSETENV:
|
|---|
| 2623 | * This symbol, if defined, indicates that the unsetenv () routine is
|
|---|
| 2624 | * available for use.
|
|---|
| 2625 | */
|
|---|
| 2626 | /*#define HAS_UNSETENV / **/
|
|---|
| 2627 |
|
|---|
| 2628 | /* HAS_USTAT:
|
|---|
| 2629 | * This symbol, if defined, indicates that the ustat system call is
|
|---|
| 2630 | * available to query file system statistics by dev_t.
|
|---|
| 2631 | */
|
|---|
| 2632 | /*#define HAS_USTAT / **/
|
|---|
| 2633 |
|
|---|
| 2634 | /* HAS_VFORK:
|
|---|
| 2635 | * This symbol, if defined, indicates that vfork() exists.
|
|---|
| 2636 | */
|
|---|
| 2637 | /*#define HAS_VFORK / **/
|
|---|
| 2638 |
|
|---|
| 2639 | /* Signal_t:
|
|---|
| 2640 | * This symbol's value is either "void" or "int", corresponding to the
|
|---|
| 2641 | * appropriate return type of a signal handler. Thus, you can declare
|
|---|
| 2642 | * a signal handler using "Signal_t (*handler)()", and define the
|
|---|
| 2643 | * handler using "Signal_t handler(sig)".
|
|---|
| 2644 | */
|
|---|
| 2645 | #define Signal_t int /* Signal handler's return type */
|
|---|
| 2646 |
|
|---|
| 2647 | /* HAS_VPRINTF:
|
|---|
| 2648 | * This symbol, if defined, indicates that the vprintf routine is available
|
|---|
| 2649 | * to printf with a pointer to an argument list. If unavailable, you
|
|---|
| 2650 | * may need to write your own, probably in terms of _doprnt().
|
|---|
| 2651 | */
|
|---|
| 2652 | /* USE_CHAR_VSPRINTF:
|
|---|
| 2653 | * This symbol is defined if this system has vsprintf() returning type
|
|---|
| 2654 | * (char*). The trend seems to be to declare it as "int vsprintf()". It
|
|---|
| 2655 | * is up to the package author to declare vsprintf correctly based on the
|
|---|
| 2656 | * symbol.
|
|---|
| 2657 | */
|
|---|
| 2658 | #define HAS_VPRINTF /**/
|
|---|
| 2659 | /*#define USE_CHAR_VSPRINTF / **/
|
|---|
| 2660 |
|
|---|
| 2661 | /* HAS_WRITEV:
|
|---|
| 2662 | * This symbol, if defined, indicates that the writev routine is
|
|---|
| 2663 | * available to do scatter writes.
|
|---|
| 2664 | */
|
|---|
| 2665 | /*#define HAS_WRITEV / **/
|
|---|
| 2666 |
|
|---|
| 2667 | /* USE_DYNAMIC_LOADING:
|
|---|
| 2668 | * This symbol, if defined, indicates that dynamic loading of
|
|---|
| 2669 | * some sort is available.
|
|---|
| 2670 | */
|
|---|
| 2671 | /*#define USE_DYNAMIC_LOADING / **/
|
|---|
| 2672 |
|
|---|
| 2673 | /* DOUBLESIZE:
|
|---|
| 2674 | * This symbol contains the size of a double, so that the C preprocessor
|
|---|
| 2675 | * can make decisions based on it.
|
|---|
| 2676 | */
|
|---|
| 2677 | #define DOUBLESIZE 8 /**/
|
|---|
| 2678 |
|
|---|
| 2679 | /* EBCDIC:
|
|---|
| 2680 | * This symbol, if defined, indicates that this system uses
|
|---|
| 2681 | * EBCDIC encoding.
|
|---|
| 2682 | */
|
|---|
| 2683 | /*#define EBCDIC / **/
|
|---|
| 2684 |
|
|---|
| 2685 | /* FFLUSH_NULL:
|
|---|
| 2686 | * This symbol, if defined, tells that fflush(NULL) does flush
|
|---|
| 2687 | * all pending stdio output.
|
|---|
| 2688 | */
|
|---|
| 2689 | /* FFLUSH_ALL:
|
|---|
| 2690 | * This symbol, if defined, tells that to flush
|
|---|
| 2691 | * all pending stdio output one must loop through all
|
|---|
| 2692 | * the stdio file handles stored in an array and fflush them.
|
|---|
| 2693 | * Note that if fflushNULL is defined, fflushall will not
|
|---|
| 2694 | * even be probed for and will be left undefined.
|
|---|
| 2695 | */
|
|---|
| 2696 | /*#define FFLUSH_NULL / **/
|
|---|
| 2697 | /*#define FFLUSH_ALL / **/
|
|---|
| 2698 |
|
|---|
| 2699 | /* Fpos_t:
|
|---|
| 2700 | * This symbol holds the type used to declare file positions in libc.
|
|---|
| 2701 | * It can be fpos_t, long, uint, etc... It may be necessary to include
|
|---|
| 2702 | * <sys/types.h> to get any typedef'ed information.
|
|---|
| 2703 | */
|
|---|
| 2704 | #define Fpos_t int /* File position type */
|
|---|
| 2705 |
|
|---|
| 2706 | /* Gid_t_f:
|
|---|
| 2707 | * This symbol defines the format string used for printing a Gid_t.
|
|---|
| 2708 | */
|
|---|
| 2709 | #define Gid_t_f "lu" /**/
|
|---|
| 2710 |
|
|---|
|
|---|