This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix ext/B/t/optree_misc.t in unthreaded builds
[perl5.git] / config_h.SH
CommitLineData
9f28af37
FC
1#!/bin/sh
2#
43dddb59
MB
3# THIS IS A GENERATED FILE
4# DO NOT HAND-EDIT
5#
6# See Porting/config_h.pl
7
34f1896b 8: Set up for generating config_h.SH
12ae5dfc 9case "$CONFIG_SH" in
776a38e3 10'') CONFIG_SH=config.sh;;
12ae5dfc
JH
11esac
12case "$CONFIG_H" in
776a38e3 13'') CONFIG_H=config.h;;
12ae5dfc 14esac
a02608de 15case $PERL_CONFIG_SH in
8d063cd8 16'')
12ae5dfc
JH
17 if test -f $CONFIG_SH; then TOP=.;
18 elif test -f ../$CONFIG_SH; then TOP=..;
19 elif test -f ../../$CONFIG_SH; then TOP=../..;
20 elif test -f ../../../$CONFIG_SH; then TOP=../../..;
21 elif test -f ../../../../$CONFIG_SH; then TOP=../../../..;
2304df62 22 else
12ae5dfc 23 echo "Can't find $CONFIG_SH."; exit 1
2304df62 24 fi
12ae5dfc 25 . $TOP/$CONFIG_SH
2304df62
AD
26 ;;
27esac
28case "$0" in
29*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
8d063cd8 30esac
11e2f395
RGS
31case "$CONFIG_H" in
32already-done) echo "Not re-extracting config.h" ;;
33*)
43dddb59
MB
34echo "Extracting $CONFIG_H (with variable substitutions)"
35sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un-def!#undef!'
aa86d596 36/* This file was produced by running the config_h.SH script, which
12ae5dfc 37 * gets its values from $CONFIG_SH, which is generally produced by
8d063cd8
LW
38 * running Configure.
39 *
40 * Feel free to modify any of this as the need arises. Note, however,
1aef975c 41 * that running config_h.SH again will wipe out any changes you've made.
12ae5dfc 42 * For a more permanent change edit $CONFIG_SH and rerun config_h.SH.
8d063cd8
LW
43 */
44
cd95ead5 45/* Package name : $package
dfe9444c
AD
46 * Source directory : $src
47 * Configuration time: $cf_time
48 * Configured by : $cf_by
49 * Target system : $myuname
2304df62 50 */
8d063cd8 51
2304df62
AD
52#ifndef _config_h_
53#define _config_h_
54
dfe9444c
AD
55/* LOC_SED:
56 * This symbol holds the complete pathname to the sed program.
774d564b 57 */
dfe9444c 58#define LOC_SED "$full_sed" /**/
774d564b 59
88fdc172
SB
60/* HAS_ALARM:
61 * This symbol, if defined, indicates that the alarm routine is
62 * available.
a0d0e21e 63 */
88fdc172 64#$d_alarm HAS_ALARM /**/
a0d0e21e 65
88fdc172
SB
66/* HAS_BCMP:
67 * This symbol is defined if the bcmp() routine is available to
68 * compare blocks of memory.
b4eb6b3d 69 */
88fdc172 70#$d_bcmp HAS_BCMP /**/
b4eb6b3d 71
88fdc172
SB
72/* HAS_BCOPY:
73 * This symbol is defined if the bcopy() routine is available to
74 * copy blocks of memory.
a687059c 75 */
88fdc172 76#$d_bcopy HAS_BCOPY /**/
a687059c 77
88fdc172
SB
78/* HAS_BZERO:
79 * This symbol is defined if the bzero() routine is available to
80 * set a memory block to 0.
0d3e774c 81 */
88fdc172 82#$d_bzero HAS_BZERO /**/
0d3e774c 83
88fdc172
SB
84/* HAS_CHOWN:
85 * This symbol, if defined, indicates that the chown routine is
86 * available.
a0d0e21e 87 */
88fdc172 88#$d_chown HAS_CHOWN /**/
a0d0e21e 89
88fdc172
SB
90/* HAS_CHROOT:
91 * This symbol, if defined, indicates that the chroot routine is
92 * available.
a0d0e21e 93 */
88fdc172 94#$d_chroot HAS_CHROOT /**/
a0d0e21e 95
88fdc172
SB
96/* HAS_CHSIZE:
97 * This symbol, if defined, indicates that the chsize routine is available
98 * to truncate files. You might need a -lx to get this routine.
87250799 99 */
88fdc172 100#$d_chsize HAS_CHSIZE /**/
87250799 101
1d8eaf8c
MB
102/* HAS_CRYPT:
103 * This symbol, if defined, indicates that the crypt routine is available
104 * to encrypt passwords and the like.
105 */
106#$d_crypt HAS_CRYPT /**/
107
13cfc98d
MB
108/* HAS_CTERMID:
109 * This symbol, if defined, indicates that the ctermid routine is
110 * available to generate filename for terminal.
111 */
112#$d_ctermid HAS_CTERMID /**/
113
88fdc172
SB
114/* HAS_CUSERID:
115 * This symbol, if defined, indicates that the cuserid routine is
116 * available to get character login names.
13281fa4 117 */
88fdc172 118#$d_cuserid HAS_CUSERID /**/
a0d0e21e 119
88fdc172
SB
120/* HAS_DBL_DIG:
121 * This symbol, if defined, indicates that this system's <float.h>
122 * or <limits.h> defines the symbol DBL_DIG, which is the number
123 * of significant digits in a double precision number. If this
124 * symbol is not defined, a guess of 15 is usually pretty good.
a0d0e21e 125 */
e5eef985 126#$d_dbl_dig HAS_DBL_DIG /**/
a0d0e21e 127
88fdc172
SB
128/* HAS_DIFFTIME:
129 * This symbol, if defined, indicates that the difftime routine is
130 * available.
a0d0e21e 131 */
88fdc172 132#$d_difftime HAS_DIFFTIME /**/
13281fa4 133
88fdc172
SB
134/* HAS_DLERROR:
135 * This symbol, if defined, indicates that the dlerror routine is
136 * available to return a string describing the last error that
137 * occurred from a call to dlopen(), dlclose() or dlsym().
ecfc5424 138 */
88fdc172 139#$d_dlerror HAS_DLERROR /**/
ecfc5424 140
88fdc172
SB
141/* HAS_DUP2:
142 * This symbol, if defined, indicates that the dup2 routine is
143 * available to duplicate file descriptors.
a687059c 144 */
88fdc172 145#$d_dup2 HAS_DUP2 /**/
a687059c 146
88fdc172
SB
147/* HAS_FCHMOD:
148 * This symbol, if defined, indicates that the fchmod routine is available
149 * to change mode of opened files. If unavailable, use chmod().
378cc40b 150 */
88fdc172 151#$d_fchmod HAS_FCHMOD /**/
378cc40b 152
88fdc172
SB
153/* HAS_FCHOWN:
154 * This symbol, if defined, indicates that the fchown routine is available
155 * to change ownership of opened files. If unavailable, use chown().
378cc40b 156 */
88fdc172 157#$d_fchown HAS_FCHOWN /**/
378cc40b 158
88fdc172
SB
159/* HAS_FCNTL:
160 * This symbol, if defined, indicates to the C program that
161 * the fcntl() function exists.
a687059c 162 */
88fdc172 163#$d_fcntl HAS_FCNTL /**/
a687059c 164
88fdc172
SB
165/* HAS_FGETPOS:
166 * This symbol, if defined, indicates that the fgetpos routine is
167 * available to get the file position indicator, similar to ftell().
a0d0e21e 168 */
88fdc172 169#$d_fgetpos HAS_FGETPOS /**/
a0d0e21e 170
88fdc172
SB
171/* HAS_FLOCK:
172 * This symbol, if defined, indicates that the flock routine is
173 * available to do file locking.
a687059c 174 */
88fdc172 175#$d_flock HAS_FLOCK /**/
a687059c 176
88fdc172
SB
177/* HAS_FORK:
178 * This symbol, if defined, indicates that the fork routine is
179 * available.
a0d0e21e 180 */
88fdc172 181#$d_fork HAS_FORK /**/
a0d0e21e 182
88fdc172
SB
183/* HAS_FSETPOS:
184 * This symbol, if defined, indicates that the fsetpos routine is
185 * available to set the file position indicator, similar to fseek().
a0d0e21e 186 */
88fdc172 187#$d_fsetpos HAS_FSETPOS /**/
a0d0e21e 188
88fdc172
SB
189/* HAS_GETTIMEOFDAY:
190 * This symbol, if defined, indicates that the gettimeofday() system
191 * call is available for a sub-second accuracy clock. Usually, the file
192 * <sys/resource.h> needs to be included (see I_SYS_RESOURCE).
193 * The type "Timeval" should be used to refer to "struct timeval".
5f05dabc 194 */
88fdc172
SB
195#$d_gettimeod HAS_GETTIMEOFDAY /**/
196#ifdef HAS_GETTIMEOFDAY
197#define Timeval struct timeval /* Structure used by gettimeofday() */
198#endif
5f05dabc 199
88fdc172
SB
200/* HAS_GETGROUPS:
201 * This symbol, if defined, indicates that the getgroups() routine is
202 * available to get the list of process groups. If unavailable, multiple
203 * groups are probably not supported.
378cc40b 204 */
88fdc172 205#$d_getgrps HAS_GETGROUPS /**/
378cc40b 206
88fdc172
SB
207/* HAS_GETLOGIN:
208 * This symbol, if defined, indicates that the getlogin routine is
209 * available to get the login name.
dfe9444c 210 */
88fdc172 211#$d_getlogin HAS_GETLOGIN /**/
dfe9444c 212
88fdc172
SB
213/* HAS_GETPGID:
214 * This symbol, if defined, indicates to the C program that
215 * the getpgid(pid) function is available to get the
216 * process group id.
a0d0e21e 217 */
88fdc172 218#$d_getpgid HAS_GETPGID /**/
a0d0e21e 219
88fdc172
SB
220/* HAS_GETPGRP2:
221 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
222 * routine is available to get the current process group.
a687059c 223 */
88fdc172 224#$d_getpgrp2 HAS_GETPGRP2 /**/
ecfc5424 225
88fdc172
SB
226/* HAS_GETPPID:
227 * This symbol, if defined, indicates that the getppid routine is
228 * available to get the parent process ID.
378cc40b 229 */
88fdc172 230#$d_getppid HAS_GETPPID /**/
378cc40b 231
88fdc172
SB
232/* HAS_GETPRIORITY:
233 * This symbol, if defined, indicates that the getpriority routine is
234 * available to get a process's priority.
0d3e774c 235 */
88fdc172 236#$d_getprior HAS_GETPRIORITY /**/
0d3e774c 237
88fdc172
SB
238/* HAS_INET_ATON:
239 * This symbol, if defined, indicates to the C program that the
240 * inet_aton() function is available to parse IP address "dotted-quad"
241 * strings.
a0d0e21e 242 */
88fdc172 243#$d_inetaton HAS_INET_ATON /**/
a0d0e21e 244
88fdc172
SB
245/* HAS_KILLPG:
246 * This symbol, if defined, indicates that the killpg routine is available
247 * to kill process groups. If unavailable, you probably should use kill
248 * with a negative process number.
a687059c 249 */
88fdc172 250#$d_killpg HAS_KILLPG /**/
a687059c 251
88fdc172
SB
252/* HAS_LINK:
253 * This symbol, if defined, indicates that the link routine is
254 * available to create hard links.
a0d0e21e 255 */
88fdc172 256#$d_link HAS_LINK /**/
a0d0e21e 257
88fdc172
SB
258/* HAS_LOCALECONV:
259 * This symbol, if defined, indicates that the localeconv routine is
260 * available for numeric and monetary formatting conventions.
a0d0e21e 261 */
88fdc172 262#$d_locconv HAS_LOCALECONV /**/
a0d0e21e 263
b15c1b56
AF
264/* HAS_LC_MONETARY_2008:
265 * This symbol, if defined, indicates that the localeconv routine is
266 * available and has the additional members added in POSIX 1003.1-2008.
267 */
268#$d_lc_monetary_2008 HAS_LC_MONETARY_2008 /**/
269
88fdc172
SB
270/* HAS_LOCKF:
271 * This symbol, if defined, indicates that the lockf routine is
272 * available to do file locking.
a0d0e21e 273 */
88fdc172 274#$d_lockf HAS_LOCKF /**/
a0d0e21e 275
88fdc172
SB
276/* HAS_LSTAT:
277 * This symbol, if defined, indicates that the lstat routine is
278 * available to do file stats on symbolic links.
378cc40b 279 */
88fdc172 280#$d_lstat HAS_LSTAT /**/
2304df62 281
88fdc172
SB
282/* HAS_MBLEN:
283 * This symbol, if defined, indicates that the mblen routine is available
284 * to find the number of bytes in a multibye character.
9f971974 285 */
88fdc172 286#$d_mblen HAS_MBLEN /**/
9f971974 287
88fdc172
SB
288/* HAS_MBSTOWCS:
289 * This symbol, if defined, indicates that the mbstowcs routine is
9cdcdad1 290 * available to convert a multibyte string into a wide character string.
9f971974 291 */
88fdc172 292#$d_mbstowcs HAS_MBSTOWCS /**/
9f971974 293
88fdc172
SB
294/* HAS_MBTOWC:
295 * This symbol, if defined, indicates that the mbtowc routine is available
9cdcdad1 296 * to convert a multibyte to a wide character.
9f971974 297 */
88fdc172 298#$d_mbtowc HAS_MBTOWC /**/
378cc40b 299
88fdc172
SB
300/* HAS_MEMCMP:
301 * This symbol, if defined, indicates that the memcmp routine is available
302 * to compare blocks of memory.
a687059c 303 */
88fdc172 304#$d_memcmp HAS_MEMCMP /**/
fe14fcc3 305
88fdc172
SB
306/* HAS_MEMCPY:
307 * This symbol, if defined, indicates that the memcpy routine is available
308 * to copy blocks of memory.
ecfc5424 309 */
88fdc172 310#$d_memcpy HAS_MEMCPY /**/
ecfc5424 311
88fdc172
SB
312/* HAS_MEMMOVE:
313 * This symbol, if defined, indicates that the memmove routine is available
314 * to copy potentially overlapping blocks of memory. This should be used
315 * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
316 * own version.
a0d0e21e 317 */
88fdc172 318#$d_memmove HAS_MEMMOVE /**/
a0d0e21e 319
88fdc172
SB
320/* HAS_MEMSET:
321 * This symbol, if defined, indicates that the memset routine is available
322 * to set blocks of memory.
fe749a9f 323 */
88fdc172 324#$d_memset HAS_MEMSET /**/
fe749a9f 325
88fdc172
SB
326/* HAS_MKDIR:
327 * This symbol, if defined, indicates that the mkdir routine is available
328 * to create directories. Otherwise you should fork off a new process to
329 * exec /bin/mkdir.
fe749a9f 330 */
88fdc172 331#$d_mkdir HAS_MKDIR /**/
fe749a9f 332
88fdc172
SB
333/* HAS_MKFIFO:
334 * This symbol, if defined, indicates that the mkfifo routine is
335 * available to create FIFOs. Otherwise, mknod should be able to
336 * do it for you. However, if mkfifo is there, mknod might require
337 * super-user privileges which mkfifo will not.
fe14fcc3 338 */
88fdc172 339#$d_mkfifo HAS_MKFIFO /**/
a687059c 340
88fdc172
SB
341/* HAS_MKTIME:
342 * This symbol, if defined, indicates that the mktime routine is
343 * available.
ecfc5424 344 */
88fdc172 345#$d_mktime HAS_MKTIME /**/
ecfc5424 346
88fdc172
SB
347/* HAS_MSYNC:
348 * This symbol, if defined, indicates that the msync system call is
349 * available to synchronize a mapped file.
a687059c 350 */
88fdc172 351#$d_msync HAS_MSYNC /**/
a687059c 352
88fdc172
SB
353/* HAS_MUNMAP:
354 * This symbol, if defined, indicates that the munmap system call is
355 * available to unmap a region, usually mapped by mmap().
fe14fcc3 356 */
88fdc172 357#$d_munmap HAS_MUNMAP /**/
a0d0e21e 358
427d28ce
JH
359/* HAS_NAN:
360 * This symbol, if defined, indicates that the nan routine is
361 * available to generate NaN.
362 */
363#$d_nan HAS_NAN /**/
364
365/* HAS_NEARBYINT:
366 * This symbol, if defined, indicates that the nextafter routine is
367 * available to return the integral value closest to (according to
368 the current rounding mode) to x.
369 */
370#$d_nearbyint HAS_NEARBYINT /**/
371
372/* HAS_NEXTAFTER:
373 * This symbol, if defined, indicates that the nextafter routine is
374 * available to return the next machine representable long double from
375 * x in direction y.
376 */
377#$d_nextafter HAS_NEXTAFTER /**/
378
379/* HAS_NEXTTOWARD:
380 * This symbol, if defined, indicates that the nexttoward routine is
381 * available to return the next machine representable long double from
382 * x in direction y.
383 */
384#$d_nexttoward HAS_NEXTTOWARD /**/
385
88fdc172
SB
386/* HAS_NICE:
387 * This symbol, if defined, indicates that the nice routine is
388 * available.
8e07c86e 389 */
88fdc172 390#$d_nice HAS_NICE /**/
8e07c86e 391
88fdc172
SB
392/* HAS_PATHCONF:
393 * This symbol, if defined, indicates that pathconf() is available
394 * to determine file-system related limits and options associated
395 * with a given filename.
a0d0e21e 396 */
88fdc172
SB
397/* HAS_FPATHCONF:
398 * This symbol, if defined, indicates that pathconf() is available
399 * to determine file-system related limits and options associated
400 * with a given open file descriptor.
a0d0e21e 401 */
88fdc172
SB
402#$d_pathconf HAS_PATHCONF /**/
403#$d_fpathconf HAS_FPATHCONF /**/
a0d0e21e 404
88fdc172
SB
405/* HAS_PAUSE:
406 * This symbol, if defined, indicates that the pause routine is
407 * available to suspend a process until a signal is received.
a0d0e21e 408 */
88fdc172 409#$d_pause HAS_PAUSE /**/
a0d0e21e 410
88fdc172
SB
411/* HAS_PIPE:
412 * This symbol, if defined, indicates that the pipe routine is
413 * available to create an inter-process channel.
a0d0e21e 414 */
88fdc172 415#$d_pipe HAS_PIPE /**/
fe14fcc3 416
1d8eaf8c
MB
417/* HAS_POLL:
418 * This symbol, if defined, indicates that the poll routine is
419 * available to poll active file descriptors. Please check I_POLL and
420 * I_SYS_POLL to know which header should be included as well.
421 */
422#$d_poll HAS_POLL /**/
423
88fdc172
SB
424/* HAS_READDIR:
425 * This symbol, if defined, indicates that the readdir routine is
426 * available to read directory entries. You may have to include
427 * <dirent.h>. See I_DIRENT.
378cc40b 428 */
88fdc172 429#$d_readdir HAS_READDIR /**/
378cc40b 430
88fdc172
SB
431/* HAS_SEEKDIR:
432 * This symbol, if defined, indicates that the seekdir routine is
433 * available. You may have to include <dirent.h>. See I_DIRENT.
378cc40b 434 */
88fdc172 435#$d_seekdir HAS_SEEKDIR /**/
2304df62 436
88fdc172
SB
437/* HAS_TELLDIR:
438 * This symbol, if defined, indicates that the telldir routine is
439 * available. You may have to include <dirent.h>. See I_DIRENT.
a0d0e21e 440 */
88fdc172 441#$d_telldir HAS_TELLDIR /**/
a0d0e21e 442
88fdc172
SB
443/* HAS_REWINDDIR:
444 * This symbol, if defined, indicates that the rewinddir routine is
445 * available. You may have to include <dirent.h>. See I_DIRENT.
a0d0e21e 446 */
88fdc172 447#$d_rewinddir HAS_REWINDDIR /**/
a0d0e21e 448
88fdc172
SB
449/* HAS_READLINK:
450 * This symbol, if defined, indicates that the readlink routine is
451 * available to read the value of a symbolic link.
dfe9444c 452 */
88fdc172 453#$d_readlink HAS_READLINK /**/
dfe9444c 454
427d28ce
JH
455/* HAS_REMAINDER:
456 * This symbol, if defined, indicates that the remainder routine is available.
457 */
458#$d_remainder HAS_REMAINDER /**/
459
460/* HAS_REMQUO:
461 * This symbol, if defined, indicates that the remquo routine is available.
462 */
463#$d_remquo HAS_REMQUO /**/
464
88fdc172
SB
465/* HAS_RENAME:
466 * This symbol, if defined, indicates that the rename routine is available
467 * to rename files. Otherwise you should do the unlink(), link(), unlink()
468 * trick.
d8f2e4cc 469 */
88fdc172 470#$d_rename HAS_RENAME /**/
d8f2e4cc 471
427d28ce
JH
472/* HAS_RINT:
473 * This symbol, if defined, indicates that the rint routine is available
474 * to return the nearest integral value to x as double using the current
475 * rounding mode.
476 */
477#$d_rint HAS_RINT /**/
478
88fdc172
SB
479/* HAS_RMDIR:
480 * This symbol, if defined, indicates that the rmdir routine is
481 * available to remove directories. Otherwise you should fork off a
482 * new process to exec /bin/rmdir.
a687059c 483 */
88fdc172 484#$d_rmdir HAS_RMDIR /**/
a687059c 485
427d28ce
JH
486/* HAS_ROUND:
487 * This symbol, if defined, indicates that the round routine is available.
488 */
489#$d_round HAS_ROUND /**/
490
88fdc172
SB
491/* HAS_SELECT:
492 * This symbol, if defined, indicates that the select routine is
493 * available to select active file descriptors. If the timeout field
494 * is used, <sys/time.h> may need to be included.
a687059c 495 */
88fdc172 496#$d_select HAS_SELECT /**/
a687059c 497
88fdc172
SB
498/* HAS_SETEGID:
499 * This symbol, if defined, indicates that the setegid routine is available
500 * to change the effective gid of the current program.
a687059c 501 */
88fdc172 502#$d_setegid HAS_SETEGID /**/
a687059c 503
88fdc172
SB
504/* HAS_SETEUID:
505 * This symbol, if defined, indicates that the seteuid routine is available
506 * to change the effective uid of the current program.
378cc40b 507 */
88fdc172 508#$d_seteuid HAS_SETEUID /**/
378cc40b 509
1d8eaf8c
MB
510/* HAS_SETGROUPS:
511 * This symbol, if defined, indicates that the setgroups() routine is
512 * available to set the list of process groups. If unavailable, multiple
513 * groups are probably not supported.
514 */
515#$d_setgrps HAS_SETGROUPS /**/
516
88fdc172
SB
517/* HAS_SETLINEBUF:
518 * This symbol, if defined, indicates that the setlinebuf routine is
519 * available to change stderr or stdout from block-buffered or unbuffered
520 * to a line-buffered mode.
378cc40b 521 */
88fdc172 522#$d_setlinebuf HAS_SETLINEBUF /**/
2304df62 523
88fdc172
SB
524/* HAS_SETLOCALE:
525 * This symbol, if defined, indicates that the setlocale routine is
526 * available to handle locale-specific ctype implementations.
2304df62 527 */
88fdc172 528#$d_setlocale HAS_SETLOCALE /**/
fe14fcc3 529
88fdc172
SB
530/* HAS_SETPGID:
531 * This symbol, if defined, indicates that the setpgid(pid, gpid)
532 * routine is available to set process group ID.
c2960299 533 */
88fdc172 534#$d_setpgid HAS_SETPGID /**/
dfe9444c 535
88fdc172
SB
536/* HAS_SETPGRP2:
537 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
538 * routine is available to set the current process group.
16d20bd9 539 */
88fdc172 540#$d_setpgrp2 HAS_SETPGRP2 /**/
dfe9444c 541
88fdc172
SB
542/* HAS_SETPRIORITY:
543 * This symbol, if defined, indicates that the setpriority routine is
544 * available to set a process's priority.
c2960299 545 */
88fdc172 546#$d_setprior HAS_SETPRIORITY /**/
8d063cd8 547
88fdc172
SB
548/* HAS_SETREGID:
549 * This symbol, if defined, indicates that the setregid routine is
550 * available to change the real and effective gid of the current
551 * process.
a89d8a78 552 */
88fdc172
SB
553/* HAS_SETRESGID:
554 * This symbol, if defined, indicates that the setresgid routine is
555 * available to change the real, effective and saved gid of the current
556 * process.
a89d8a78 557 */
88fdc172
SB
558#$d_setregid HAS_SETREGID /**/
559#$d_setresgid HAS_SETRESGID /**/
a89d8a78 560
88fdc172
SB
561/* HAS_SETREUID:
562 * This symbol, if defined, indicates that the setreuid routine is
563 * available to change the real and effective uid of the current
564 * process.
a0d0e21e 565 */
88fdc172
SB
566/* HAS_SETRESUID:
567 * This symbol, if defined, indicates that the setresuid routine is
568 * available to change the real, effective and saved uid of the current
569 * process.
2e1b3b7e 570 */
88fdc172
SB
571#$d_setreuid HAS_SETREUID /**/
572#$d_setresuid HAS_SETRESUID /**/
2e1b3b7e 573
88fdc172
SB
574/* HAS_SETRGID:
575 * This symbol, if defined, indicates that the setrgid routine is available
576 * to change the real gid of the current program.
a687059c 577 */
88fdc172 578#$d_setrgid HAS_SETRGID /**/
e5d73d77 579
88fdc172
SB
580/* HAS_SETRUID:
581 * This symbol, if defined, indicates that the setruid routine is available
582 * to change the real uid of the current program.
ecfc5424 583 */
88fdc172 584#$d_setruid HAS_SETRUID /**/
ecfc5424 585
88fdc172
SB
586/* HAS_SETSID:
587 * This symbol, if defined, indicates that the setsid routine is
588 * available to set the process group ID.
9f971974 589 */
88fdc172 590#$d_setsid HAS_SETSID /**/
9f971974 591
88fdc172
SB
592/* HAS_STRCHR:
593 * This symbol is defined to indicate that the strchr()/strrchr()
594 * functions are available for string searching. If not, try the
595 * index()/rindex() pair.
85e6fe83 596 */
88fdc172
SB
597/* HAS_INDEX:
598 * This symbol is defined to indicate that the index()/rindex()
599 * functions are available for string searching.
a0d0e21e 600 */
88fdc172
SB
601#$d_strchr HAS_STRCHR /**/
602#$d_index HAS_INDEX /**/
85e6fe83 603
88fdc172
SB
604/* HAS_STRCOLL:
605 * This symbol, if defined, indicates that the strcoll routine is
606 * available to compare strings using collating information.
87250799 607 */
88fdc172 608#$d_strcoll HAS_STRCOLL /**/
87250799 609
88fdc172
SB
610/* HAS_STRTOD:
611 * This symbol, if defined, indicates that the strtod routine is
612 * available to provide better numeric string conversion than atof().
a0d0e21e 613 */
88fdc172 614#$d_strtod HAS_STRTOD /**/
a0d0e21e 615
88fdc172
SB
616/* HAS_STRTOL:
617 * This symbol, if defined, indicates that the strtol routine is available
618 * to provide better numeric string conversion than atoi() and friends.
85e6fe83 619 */
88fdc172 620#$d_strtol HAS_STRTOL /**/
d8f2e4cc 621
88fdc172
SB
622/* HAS_STRXFRM:
623 * This symbol, if defined, indicates that the strxfrm() routine is
624 * available to transform strings.
d8f2e4cc 625 */
88fdc172 626#$d_strxfrm HAS_STRXFRM /**/
d8f2e4cc 627
88fdc172
SB
628/* HAS_SYMLINK:
629 * This symbol, if defined, indicates that the symlink routine is available
630 * to create symbolic links.
dfe9444c 631 */
88fdc172 632#$d_symlink HAS_SYMLINK /**/
dfe9444c 633
88fdc172
SB
634/* HAS_SYSCALL:
635 * This symbol, if defined, indicates that the syscall routine is
636 * available to call arbitrary system calls. If undefined, that's tough.
a0d0e21e 637 */
88fdc172 638#$d_syscall HAS_SYSCALL /**/
a687059c 639
88fdc172
SB
640/* HAS_SYSCONF:
641 * This symbol, if defined, indicates that sysconf() is available
642 * to determine system related limits and options.
aaacdc8b 643 */
88fdc172
SB
644#$d_sysconf HAS_SYSCONF /**/
645
646/* HAS_SYSTEM:
647 * This symbol, if defined, indicates that the system routine is
648 * available to issue a shell command.
aaacdc8b 649 */
88fdc172 650#$d_system HAS_SYSTEM /**/
aaacdc8b 651
88fdc172
SB
652/* HAS_TCGETPGRP:
653 * This symbol, if defined, indicates that the tcgetpgrp routine is
654 * available to get foreground process group ID.
aaacdc8b 655 */
88fdc172 656#$d_tcgetpgrp HAS_TCGETPGRP /**/
aaacdc8b 657
88fdc172
SB
658/* HAS_TCSETPGRP:
659 * This symbol, if defined, indicates that the tcsetpgrp routine is
660 * available to set foreground process group ID.
a22e52b9 661 */
88fdc172 662#$d_tcsetpgrp HAS_TCSETPGRP /**/
a22e52b9 663
427d28ce
JH
664/* HAS_TGAMMA:
665 * This symbol, if defined, indicates that the lgamma routine is
666 * available to do the gamma function. See also HAS_LGAMMA.
667 */
668#$d_tgamma HAS_TGAMMA /**/
669
88fdc172
SB
670/* HAS_TRUNCATE:
671 * This symbol, if defined, indicates that the truncate routine is
672 * available to truncate files.
5ff3f7a4 673 */
88fdc172 674#$d_truncate HAS_TRUNCATE /**/
5ff3f7a4 675
88fdc172
SB
676/* HAS_TZNAME:
677 * This symbol, if defined, indicates that the tzname[] array is
678 * available to access timezone names.
5ff3f7a4 679 */
88fdc172 680#$d_tzname HAS_TZNAME /**/
5ff3f7a4 681
88fdc172
SB
682/* HAS_UMASK:
683 * This symbol, if defined, indicates that the umask routine is
684 * available to set and get the value of the file creation mask.
5ff3f7a4 685 */
88fdc172 686#$d_umask HAS_UMASK /**/
5ff3f7a4 687
88fdc172
SB
688/* HAS_USLEEP:
689 * This symbol, if defined, indicates that the usleep routine is
690 * available to let the process sleep on a sub-second accuracy.
5ff3f7a4 691 */
88fdc172 692#$d_usleep HAS_USLEEP /**/
5ff3f7a4 693
88fdc172
SB
694/* HAS_WAIT4:
695 * This symbol, if defined, indicates that wait4() exists.
8e07c86e 696 */
88fdc172 697#$d_wait4 HAS_WAIT4 /**/
8e07c86e 698
88fdc172
SB
699/* HAS_WAITPID:
700 * This symbol, if defined, indicates that the waitpid routine is
701 * available to wait for child process.
1aef975c 702 */
88fdc172 703#$d_waitpid HAS_WAITPID /**/
85e6fe83 704
88fdc172
SB
705/* HAS_WCSTOMBS:
706 * This symbol, if defined, indicates that the wcstombs routine is
707 * available to convert wide character strings to multibyte strings.
bccf77a5 708 */
88fdc172 709#$d_wcstombs HAS_WCSTOMBS /**/
dfe9444c 710
88fdc172
SB
711/* HAS_WCTOMB:
712 * This symbol, if defined, indicates that the wctomb routine is available
9cdcdad1 713 * to convert a wide character to a multibyte.
bccf77a5 714 */
88fdc172 715#$d_wctomb HAS_WCTOMB /**/
bccf77a5 716
1d8eaf8c
MB
717/* Groups_t:
718 * This symbol holds the type used for the second argument to
719 * getgroups() and setgroups(). Usually, this is the same as
720 * gidtype (gid_t) , but sometimes it isn't.
721 * It can be int, ushort, gid_t, etc...
722 * It may be necessary to include <sys/types.h> to get any
723 * typedef'ed information. This is only required if you have
724 * getgroups() or setgroups()..
725 */
726#if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS)
727#define Groups_t $groupstype /* Type for 2nd arg to [sg]etgroups() */
728#endif
729
88fdc172
SB
730/* I_ARPA_INET:
731 * This symbol, if defined, indicates to the C program that it should
732 * include <arpa/inet.h> to get inet_addr and friends declarations.
ff935051 733 */
88fdc172 734#$i_arpainet I_ARPA_INET /**/
ff935051 735
88fdc172
SB
736/* I_DBM:
737 * This symbol, if defined, indicates that <dbm.h> exists and should
738 * be included.
ff935051 739 */
88fdc172
SB
740/* I_RPCSVC_DBM:
741 * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
742 * should be included.
10bc17b6 743 */
88fdc172
SB
744#$i_dbm I_DBM /**/
745#$i_rpcsvcdbm I_RPCSVC_DBM /**/
10bc17b6 746
88fdc172
SB
747/* I_DLFCN:
748 * This symbol, if defined, indicates that <dlfcn.h> exists and should
749 * be included.
78a7c709 750 */
88fdc172 751#$i_dlfcn I_DLFCN /**/
78a7c709 752
88fdc172
SB
753/* I_FCNTL:
754 * This manifest constant tells the C program to include <fcntl.h>.
c7aff470 755 */
88fdc172 756#$i_fcntl I_FCNTL /**/
44b94491 757
88fdc172
SB
758/* I_FLOAT:
759 * This symbol, if defined, indicates to the C program that it should
760 * include <float.h> to get definition of symbols like DBL_MAX or
761 * DBL_MIN, i.e. machine dependent floating point values.
c7aff470 762 */
88fdc172 763#$i_float I_FLOAT /**/
c7aff470 764
13cfc98d
MB
765/* I_GDBM:
766 * This symbol, if defined, indicates that <gdbm.h> exists and should
767 * be included.
768 */
769#$i_gdbm I_GDBM /**/
770
88fdc172
SB
771/* I_LIMITS:
772 * This symbol, if defined, indicates to the C program that it should
773 * include <limits.h> to get definition of symbols like WORD_BIT or
774 * LONG_MAX, i.e. machine dependant limitations.
c7aff470 775 */
88fdc172 776#$i_limits I_LIMITS /**/
c7aff470 777
88fdc172
SB
778/* I_LOCALE:
779 * This symbol, if defined, indicates to the C program that it should
780 * include <locale.h>.
a845a0d4 781 */
88fdc172 782#$i_locale I_LOCALE /**/
a845a0d4 783
88fdc172
SB
784/* I_MATH:
785 * This symbol, if defined, indicates to the C program that it should
786 * include <math.h>.
a845a0d4 787 */
88fdc172 788#$i_math I_MATH /**/
a845a0d4 789
88fdc172
SB
790/* I_MEMORY:
791 * This symbol, if defined, indicates to the C program that it should
792 * include <memory.h>.
a845a0d4 793 */
88fdc172
SB
794#$i_memory I_MEMORY /**/
795
88fdc172
SB
796/* I_NETINET_IN:
797 * This symbol, if defined, indicates to the C program that it should
798 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
a845a0d4 799 */
88fdc172
SB
800#$i_niin I_NETINET_IN /**/
801
88fdc172
SB
802/* I_STDDEF:
803 * This symbol, if defined, indicates that <stddef.h> exists and should
804 * be included.
a845a0d4 805 */
88fdc172
SB
806#$i_stddef I_STDDEF /**/
807
808/* I_STDLIB:
809 * This symbol, if defined, indicates that <stdlib.h> exists and should
810 * be included.
a845a0d4 811 */
88fdc172
SB
812#$i_stdlib I_STDLIB /**/
813
814/* I_STRING:
815 * This symbol, if defined, indicates to the C program that it should
816 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
a845a0d4 817 */
88fdc172
SB
818#$i_string I_STRING /**/
819
820/* I_SYS_DIR:
821 * This symbol, if defined, indicates to the C program that it should
822 * include <sys/dir.h>.
a845a0d4 823 */
88fdc172
SB
824#$i_sysdir I_SYS_DIR /**/
825
826/* I_SYS_FILE:
827 * This symbol, if defined, indicates to the C program that it should
828 * include <sys/file.h> to get definition of R_OK and friends.
a845a0d4 829 */
88fdc172 830#$i_sysfile I_SYS_FILE /**/
a845a0d4 831
88fdc172
SB
832/* I_SYS_IOCTL:
833 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
834 * be included. Otherwise, include <sgtty.h> or <termio.h>.
a845a0d4 835 */
88fdc172
SB
836/* I_SYS_SOCKIO:
837 * This symbol, if defined, indicates the <sys/sockio.h> should be included
838 * to get socket ioctl options, like SIOCATMARK.
a845a0d4 839 */
88fdc172
SB
840#$i_sysioctl I_SYS_IOCTL /**/
841#$i_syssockio I_SYS_SOCKIO /**/
842
843/* I_SYS_NDIR:
844 * This symbol, if defined, indicates to the C program that it should
845 * include <sys/ndir.h>.
a845a0d4 846 */
88fdc172 847#$i_sysndir I_SYS_NDIR /**/
a845a0d4 848
88fdc172
SB
849/* I_SYS_PARAM:
850 * This symbol, if defined, indicates to the C program that it should
851 * include <sys/param.h>.
a845a0d4 852 */
88fdc172
SB
853#$i_sysparam I_SYS_PARAM /**/
854
216dac04
MB
855/* I_SYS_POLL:
856 * This symbol, if defined, indicates that the program may include
857 * <sys/poll.h>. When I_POLL is also defined, it's probably safest
858 * to only include <poll.h>.
859 */
860#$i_syspoll I_SYS_POLL /**/
861
88fdc172
SB
862/* I_SYS_RESOURCE:
863 * This symbol, if defined, indicates to the C program that it should
864 * include <sys/resource.h>.
a845a0d4 865 */
88fdc172 866#$i_sysresrc I_SYS_RESOURCE /**/
a845a0d4 867
88fdc172
SB
868/* I_SYS_SELECT:
869 * This symbol, if defined, indicates to the C program that it should
870 * include <sys/select.h> in order to get definition of struct timeval.
a845a0d4 871 */
88fdc172 872#$i_sysselct I_SYS_SELECT /**/
a845a0d4 873
88fdc172 874/* I_SYS_STAT:
a845a0d4 875 * This symbol, if defined, indicates to the C program that it should
88fdc172 876 * include <sys/stat.h>.
a845a0d4 877 */
88fdc172
SB
878#$i_sysstat I_SYS_STAT /**/
879
880/* I_SYS_TIMES:
a845a0d4 881 * This symbol, if defined, indicates to the C program that it should
88fdc172 882 * include <sys/times.h>.
a845a0d4 883 */
88fdc172
SB
884#$i_systimes I_SYS_TIMES /**/
885
886/* I_SYS_TYPES:
a845a0d4 887 * This symbol, if defined, indicates to the C program that it should
88fdc172 888 * include <sys/types.h>.
a845a0d4 889 */
88fdc172
SB
890#$i_systypes I_SYS_TYPES /**/
891
892/* I_SYS_UN:
893 * This symbol, if defined, indicates to the C program that it should
894 * include <sys/un.h> to get UNIX domain socket definitions.
a845a0d4 895 */
88fdc172
SB
896#$i_sysun I_SYS_UN /**/
897
898/* I_SYS_WAIT:
899 * This symbol, if defined, indicates to the C program that it should
900 * include <sys/wait.h>.
a845a0d4 901 */
88fdc172 902#$i_syswait I_SYS_WAIT /**/
a845a0d4 903
88fdc172
SB
904/* I_UNISTD:
905 * This symbol, if defined, indicates to the C program that it should
906 * include <unistd.h>.
a845a0d4 907 */
88fdc172 908#$i_unistd I_UNISTD /**/
a845a0d4 909
88fdc172
SB
910/* I_UTIME:
911 * This symbol, if defined, indicates to the C program that it should
912 * include <utime.h>.
a845a0d4 913 */
88fdc172 914#$i_utime I_UTIME /**/
a845a0d4 915
88fdc172
SB
916/* I_VALUES:
917 * This symbol, if defined, indicates to the C program that it should
918 * include <values.h> to get definition of symbols like MINFLOAT or
919 * MAXLONG, i.e. machine dependant limitations. Probably, you
920 * should use <limits.h> instead, if it is available.
a845a0d4 921 */
88fdc172
SB
922#$i_values I_VALUES /**/
923
924/* I_VFORK:
925 * This symbol, if defined, indicates to the C program that it should
926 * include vfork.h.
a845a0d4 927 */
88fdc172
SB
928#$i_vfork I_VFORK /**/
929
d03b3b00
MB
930/* CAN_VAPROTO:
931 * This variable is defined on systems supporting prototype declaration
932 * of functions with a variable number of arguments.
933 */
934/* _V:
935 * This macro is used to declare function parameters in prototypes for
936 * functions with a variable number of parameters. Use double parentheses.
937 * For example:
938 *
939 * int printf _V((char *fmt, ...));
940 *
941 * Remember to use the plain simple _() macro when declaring a function
942 * with no variable number of arguments, since it might be possible to
943 * have a non-effect _V() macro and still get prototypes via _().
944 */
945#$vaproto CAN_VAPROTO /**/
946#ifdef CAN_VAPROTO
947#define _V(args) args
948#else
949#define _V(args) ()
950#endif
951
06501368
MB
952/* OSNAME:
953 * This symbol contains the name of the operating system, as determined
954 * by Configure. You shouldn't rely on it too much; the specific
955 * feature tests from Configure are generally more reliable.
a845a0d4 956 */
06501368
MB
957/* OSVERS:
958 * This symbol contains the version of the operating system, as determined
959 * by Configure. You shouldn't rely on it too much; the specific
960 * feature tests from Configure are generally more reliable.
eaf812ae 961 */
06501368
MB
962#define OSNAME "$osname" /**/
963#define OSVERS "$osvers" /**/
eaf812ae 964
6e89a33a
MB
965/* MULTIARCH:
966 * This symbol, if defined, signifies that the build
967 * process will produce some binary files that are going to be
968 * used in a cross-platform environment. This is the case for
969 * example with the NeXT "fat" binaries that contain executables
970 * for several CPUs.
971 */
972#$multiarch MULTIARCH /**/
973
b8677e3b
MB
974/* MEM_ALIGNBYTES:
975 * This symbol contains the number of bytes required to align a
976 * double, or a long double when applicable. Usual values are 2,
588c1107
AD
977 * 4 and 8. The default is eight, for safety. For cross-compiling
978 * or multiarch support, Configure will set a minimum of 8.
b8677e3b 979 */
b8677e3b 980#define MEM_ALIGNBYTES $alignbytes
08c92000 981
08c92000
MB
982/* ARCHLIB:
983 * This variable, if defined, holds the name of the directory in
984 * which the user wants to put architecture-dependent public
985 * library files for $package. It is most often a local directory
986 * such as /usr/local/lib. Programs using this variable must be
987 * prepared to deal with filename expansion. If ARCHLIB is the
988 * same as PRIVLIB, it is not defined, since presumably the
989 * program already searches PRIVLIB.
990 */
991/* ARCHLIB_EXP:
992 * This symbol contains the ~name expanded version of ARCHLIB, to be used
993 * in programs that are not prepared to deal with ~ expansion at run-time.
994 */
995#$d_archlib ARCHLIB "$archlib" /**/
996#$d_archlib ARCHLIB_EXP "$archlibexp" /**/
997
998/* ARCHNAME:
999 * This symbol holds a string representing the architecture name.
1000 * It may be used to construct an architecture-dependant pathname
1001 * where library files may be held under a private library, for
1002 * instance.
1003 */
1004#define ARCHNAME "$archname" /**/
1005
08c92000
MB
1006/* BIN:
1007 * This symbol holds the path of the bin directory where the package will
1008 * be installed. Program must be prepared to deal with ~name substitution.
1009 */
1010/* BIN_EXP:
1011 * This symbol is the filename expanded version of the BIN symbol, for
1012 * programs that do not want to deal with that at run-time.
1013 */
f3f1a2d8
MB
1014/* PERL_RELOCATABLE_INC:
1015 * This symbol, if defined, indicates that we'd like to relocate entries
1016 * in @INC at run time based on the location of the perl binary.
1017 */
08c92000
MB
1018#define BIN "$bin" /**/
1019#define BIN_EXP "$binexp" /**/
122b9bf4 1020#define PERL_RELOCATABLE_INC "$userelocatableinc" /**/
08c92000 1021
06501368
MB
1022/* INTSIZE:
1023 * This symbol contains the value of sizeof(int) so that the C
1024 * preprocessor can make decisions based on it.
1025 */
1026/* LONGSIZE:
1027 * This symbol contains the value of sizeof(long) so that the C
1028 * preprocessor can make decisions based on it.
1029 */
1030/* SHORTSIZE:
1031 * This symbol contains the value of sizeof(short) so that the C
1032 * preprocessor can make decisions based on it.
1033 */
1034#define INTSIZE $intsize /**/
1035#define LONGSIZE $longsize /**/
1036#define SHORTSIZE $shortsize /**/
1037
b8677e3b
MB
1038/* BYTEORDER:
1039 * This symbol holds the hexadecimal constant defined in byteorder,
1040 * in a UV, i.e. 0x1234 or 0x4321 or 0x12345678, etc...
1041 * If the compiler supports cross-compiling or multiple-architecture
f05550c0 1042 * binaries, use compiler-defined macros to
b8677e3b 1043 * determine the byte order.
08c92000 1044 */
c9d1bf8e 1045#if defined(MULTIARCH)
b8677e3b
MB
1046# ifdef __LITTLE_ENDIAN__
1047# if LONGSIZE == 4
1048# define BYTEORDER 0x1234
1049# else
1050# if LONGSIZE == 8
1051# define BYTEORDER 0x12345678
1052# endif
1053# endif
1054# else
1055# ifdef __BIG_ENDIAN__
1056# if LONGSIZE == 4
1057# define BYTEORDER 0x4321
1058# else
1059# if LONGSIZE == 8
1060# define BYTEORDER 0x87654321
1061# endif
1062# endif
1063# endif
1064# endif
b8677e3b
MB
1065#else
1066#define BYTEORDER 0x$byteorder /* large digits for MSB */
f05550c0 1067#endif
08c92000 1068
b8677e3b
MB
1069/* CHARBITS:
1070 * This symbol contains the size of a char, so that the C preprocessor
1071 * can make decisions based on it.
08c92000 1072 */
b8677e3b 1073#define CHARBITS $charbits /**/
08c92000 1074
06501368
MB
1075/* CAT2:
1076 * This macro concatenates 2 tokens together.
1077 */
1078/* STRINGIFY:
1079 * This macro surrounds its token with double quotes.
1080 */
1081#if $cpp_stuff == 1
1082#define CAT2(a,b) a/**/b
1083#define STRINGIFY(a) "a"
1084#endif
1085#if $cpp_stuff == 42
1086#define PeRl_CaTiFy(a, b) a ## b
1087#define PeRl_StGiFy(a) #a
1088#define CAT2(a,b) PeRl_CaTiFy(a,b)
1089#define StGiFy(a) PeRl_StGiFy(a)
1090#define STRINGIFY(a) PeRl_StGiFy(a)
1091#endif
1092#if $cpp_stuff != 1 && $cpp_stuff != 42
1093#include "Bletch: How does this C preprocessor concatenate tokens?"
1094#endif
1095
1096/* CPPSTDIN:
1097 * This symbol contains the first part of the string which will invoke
1098 * the C preprocessor on the standard input and produce to standard
1099 * output. Typical value of "cc -E" or "/lib/cpp", but it can also
1100 * call a wrapper. See CPPRUN.
1101 */
1102/* CPPMINUS:
1103 * This symbol contains the second part of the string which will invoke
1104 * the C preprocessor on the standard input and produce to standard
1105 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
1106 * to specify standard input, otherwise the value is "".
1107 */
1108/* CPPRUN:
1109 * This symbol contains the string which will invoke a C preprocessor on
1110 * the standard input and produce to standard output. It needs to end
1111 * with CPPLAST, after all other preprocessor flags have been specified.
1112 * The main difference with CPPSTDIN is that this program will never be a
1113 * pointer to a shell wrapper, i.e. it will be empty if no preprocessor is
1114 * available directly to the user. Note that it may well be different from
1115 * the preprocessor used to compile the C program.
1116 */
1117/* CPPLAST:
1118 * This symbol is intended to be used along with CPPRUN in the same manner
1119 * symbol CPPMINUS is used with CPPSTDIN. It contains either "-" or "".
1120 */
1121#define CPPSTDIN "$cppstdin"
1122#define CPPMINUS "$cppminus"
1123#define CPPRUN "$cpprun"
1124#define CPPLAST "$cpplast"
1125
1126/* HAS_ACCESS:
1127 * This manifest constant lets the C program know that the access()
1128 * system call is available to check for accessibility using real UID/GID.
1129 * (always present on UNIX.)
1130 */
1131#$d_access HAS_ACCESS /**/
1132
ed140128
AD
1133/* HAS_ACCESSX:
1134 * This symbol, if defined, indicates that the accessx routine is
1135 * available to do extended access checks.
eaf812ae 1136 */
ed140128 1137#$d_accessx HAS_ACCESSX /**/
eaf812ae 1138
08c92000
MB
1139/* HAS_ASCTIME_R:
1140 * This symbol, if defined, indicates that the asctime_r routine
1141 * is available to asctime re-entrantly.
1142 */
1143/* ASCTIME_R_PROTO:
1144 * This symbol encodes the prototype of asctime_r.
1145 * It is zero if d_asctime_r is undef, and one of the
1146 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_asctime_r
1147 * is defined.
1148 */
1149#$d_asctime_r HAS_ASCTIME_R /**/
1150#define ASCTIME_R_PROTO $asctime_r_proto /**/
1151
06501368
MB
1152/* HASATTRIBUTE_FORMAT:
1153 * Can we handle GCC attribute for checking printf-style formats
1154 */
1155/* PRINTF_FORMAT_NULL_OK:
1156 * Allows __printf__ format to be null when checking printf-style
1157 */
1158/* HASATTRIBUTE_MALLOC:
1159 * Can we handle GCC attribute for malloc-style functions.
1160 */
1161/* HASATTRIBUTE_NONNULL:
1162 * Can we handle GCC attribute for nonnull function parms.
1163 */
1164/* HASATTRIBUTE_NORETURN:
1165 * Can we handle GCC attribute for functions that do not return
1166 */
1167/* HASATTRIBUTE_PURE:
1168 * Can we handle GCC attribute for pure functions
1169 */
1170/* HASATTRIBUTE_UNUSED:
1171 * Can we handle GCC attribute for unused variables and arguments
1172 */
1173/* HASATTRIBUTE_DEPRECATED:
1174 * Can we handle GCC attribute for marking deprecated APIs
1175 */
1176/* HASATTRIBUTE_WARN_UNUSED_RESULT:
1177 * Can we handle GCC attribute for warning on unused results
1178 */
1179#$d_attribute_deprecated HASATTRIBUTE_DEPRECATED /**/
1180#$d_attribute_format HASATTRIBUTE_FORMAT /**/
1181#$d_printf_format_null PRINTF_FORMAT_NULL_OK /**/
1182#$d_attribute_noreturn HASATTRIBUTE_NORETURN /**/
1183#$d_attribute_malloc HASATTRIBUTE_MALLOC /**/
1184#$d_attribute_nonnull HASATTRIBUTE_NONNULL /**/
1185#$d_attribute_pure HASATTRIBUTE_PURE /**/
1186#$d_attribute_unused HASATTRIBUTE_UNUSED /**/
1187#$d_attribute_warn_unused_result HASATTRIBUTE_WARN_UNUSED_RESULT /**/
1188
0e0c5f82
MB
1189/* HAS_BACKTRACE:
1190 * This symbol, if defined, indicates that the backtrace() routine is
1191 * available to get a stack trace. The <execinfo.h> header must be
1192 * included to use this routine.
1193 */
1194#$d_backtrace HAS_BACKTRACE /**/
1195
b8677e3b
MB
1196/* CASTI32:
1197 * This symbol is defined if the C compiler can cast negative
1198 * or large floating point numbers to 32-bit ints.
eaf812ae 1199 */
b8677e3b
MB
1200#$d_casti32 CASTI32 /**/
1201
1202/* CASTNEGFLOAT:
1203 * This symbol is defined if the C compiler can cast negative
1204 * numbers to unsigned longs, ints and shorts.
fcdf39cf 1205 */
b8677e3b
MB
1206/* CASTFLAGS:
1207 * This symbol contains flags that say what difficulties the compiler
1208 * has casting odd floating values to unsigned long:
1209 * 0 = ok
1210 * 1 = couldn't cast < 0
1211 * 2 = couldn't cast >= 0x80000000
1212 * 4 = couldn't cast in argument expression list
eaf812ae 1213 */
b8677e3b
MB
1214#$d_castneg CASTNEGFLOAT /**/
1215#define CASTFLAGS $castflags /**/
eaf812ae 1216
b8677e3b
MB
1217/* VOID_CLOSEDIR:
1218 * This symbol, if defined, indicates that the closedir() routine
1219 * does not return a value.
f244a502 1220 */
b8677e3b 1221#$d_void_closedir VOID_CLOSEDIR /**/
f244a502 1222
06501368
MB
1223/* HASCONST:
1224 * This symbol, if defined, indicates that this C compiler knows about
1225 * the const type. There is no need to actually test for that symbol
1226 * within your programs. The mere use of the "const" keyword will
1227 * trigger the necessary tests.
1228 */
1229#$d_const HASCONST /**/
1230#ifndef HASCONST
1231#define const
1232#endif
1233
08c92000
MB
1234/* HAS_CRYPT_R:
1235 * This symbol, if defined, indicates that the crypt_r routine
1236 * is available to crypt re-entrantly.
a845a0d4 1237 */
08c92000
MB
1238/* CRYPT_R_PROTO:
1239 * This symbol encodes the prototype of crypt_r.
1240 * It is zero if d_crypt_r is undef, and one of the
1241 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_crypt_r
1242 * is defined.
a845a0d4 1243 */
08c92000
MB
1244#$d_crypt_r HAS_CRYPT_R /**/
1245#define CRYPT_R_PROTO $crypt_r_proto /**/
a845a0d4 1246
06501368
MB
1247/* HAS_CSH:
1248 * This symbol, if defined, indicates that the C-shell exists.
1249 */
1250/* CSH:
1251 * This symbol, if defined, contains the full pathname of csh.
1252 */
1253#$d_csh HAS_CSH /**/
1254#ifdef HAS_CSH
1255#define CSH "$full_csh" /**/
1256#endif
1257
eaf812ae
MB
1258/* HAS_CTERMID_R:
1259 * This symbol, if defined, indicates that the ctermid_r routine
1260 * is available to ctermid re-entrantly.
1261 */
1262/* CTERMID_R_PROTO:
1263 * This symbol encodes the prototype of ctermid_r.
1264 * It is zero if d_ctermid_r is undef, and one of the
1265 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_ctermid_r
1266 * is defined.
1267 */
1268#$d_ctermid_r HAS_CTERMID_R /**/
1269#define CTERMID_R_PROTO $ctermid_r_proto /**/
1270
08c92000
MB
1271/* HAS_CTIME_R:
1272 * This symbol, if defined, indicates that the ctime_r routine
1273 * is available to ctime re-entrantly.
a845a0d4 1274 */
08c92000
MB
1275/* CTIME_R_PROTO:
1276 * This symbol encodes the prototype of ctime_r.
1277 * It is zero if d_ctime_r is undef, and one of the
1278 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_ctime_r
1279 * is defined.
a845a0d4 1280 */
08c92000
MB
1281#$d_ctime_r HAS_CTIME_R /**/
1282#define CTIME_R_PROTO $ctime_r_proto /**/
a845a0d4 1283
0e0c5f82
MB
1284/* HAS_DLADDR:
1285 * This symbol, if defined, indicates that the dladdr() routine is
20557826
MB
1286 * available to query dynamic linker information for an address.
1287 * The <dlfcn.h> header must be included to use this routine.
0e0c5f82
MB
1288 */
1289#$d_dladdr HAS_DLADDR /**/
1290
06501368
MB
1291/* SETUID_SCRIPTS_ARE_SECURE_NOW:
1292 * This symbol, if defined, indicates that the bug that prevents
1293 * setuid scripts from being secure is not present in this kernel.
1294 */
1295/* DOSUID:
1296 * This symbol, if defined, indicates that the C program should
1297 * check the script that it is executing for setuid/setgid bits, and
1298 * attempt to emulate setuid/setgid on systems that have disabled
1299 * setuid #! scripts because the kernel can't do it securely.
1300 * It is up to the package designer to make sure that this emulation
1301 * is done securely. Among other things, it should do an fstat on
1302 * the script it just opened to make sure it really is a setuid/setgid
1303 * script, it should make sure the arguments passed correspond exactly
1304 * to the argument on the #! line, and it should not trust any
1305 * subprocesses to which it must pass the filename rather than the
1306 * file descriptor of the script to be executed.
1307 */
1308#$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/
1309#$d_dosuid DOSUID /**/
1310
08c92000
MB
1311/* HAS_DRAND48_R:
1312 * This symbol, if defined, indicates that the drand48_r routine
1313 * is available to drand48 re-entrantly.
a845a0d4 1314 */
08c92000
MB
1315/* DRAND48_R_PROTO:
1316 * This symbol encodes the prototype of drand48_r.
1317 * It is zero if d_drand48_r is undef, and one of the
1318 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_drand48_r
1319 * is defined.
1320 */
1321#$d_drand48_r HAS_DRAND48_R /**/
1322#define DRAND48_R_PROTO $drand48_r_proto /**/
a845a0d4 1323
06501368
MB
1324/* HAS_DRAND48_PROTO:
1325 * This symbol, if defined, indicates that the system provides
1326 * a prototype for the drand48() function. Otherwise, it is up
1327 * to the program to supply one. A good guess is
1328 * extern double drand48(void);
1329 */
1330#$d_drand48proto HAS_DRAND48_PROTO /**/
1331
ed140128
AD
1332/* HAS_EACCESS:
1333 * This symbol, if defined, indicates that the eaccess routine is
1334 * available to do extended access checks.
1335 */
1336#$d_eaccess HAS_EACCESS /**/
1337
06501368
MB
1338/* HAS_ENDGRENT:
1339 * This symbol, if defined, indicates that the getgrent routine is
1340 * available for finalizing sequential access of the group database.
1341 */
1342#$d_endgrent HAS_ENDGRENT /**/
1343
08c92000
MB
1344/* HAS_ENDGRENT_R:
1345 * This symbol, if defined, indicates that the endgrent_r routine
1346 * is available to endgrent re-entrantly.
88fdc172 1347 */
08c92000
MB
1348/* ENDGRENT_R_PROTO:
1349 * This symbol encodes the prototype of endgrent_r.
1350 * It is zero if d_endgrent_r is undef, and one of the
1351 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endgrent_r
1352 * is defined.
88fdc172 1353 */
08c92000
MB
1354#$d_endgrent_r HAS_ENDGRENT_R /**/
1355#define ENDGRENT_R_PROTO $endgrent_r_proto /**/
1356
06501368
MB
1357/* HAS_ENDHOSTENT:
1358 * This symbol, if defined, indicates that the endhostent() routine is
1359 * available to close whatever was being used for host queries.
1360 */
1361#$d_endhent HAS_ENDHOSTENT /**/
1362
eaf812ae
MB
1363/* HAS_ENDHOSTENT_R:
1364 * This symbol, if defined, indicates that the endhostent_r routine
1365 * is available to endhostent re-entrantly.
1366 */
1367/* ENDHOSTENT_R_PROTO:
1368 * This symbol encodes the prototype of endhostent_r.
1369 * It is zero if d_endhostent_r is undef, and one of the
1370 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endhostent_r
1371 * is defined.
1372 */
1373#$d_endhostent_r HAS_ENDHOSTENT_R /**/
1374#define ENDHOSTENT_R_PROTO $endhostent_r_proto /**/
1375
06501368
MB
1376/* HAS_ENDNETENT:
1377 * This symbol, if defined, indicates that the endnetent() routine is
1378 * available to close whatever was being used for network queries.
1379 */
1380#$d_endnent HAS_ENDNETENT /**/
1381
eaf812ae
MB
1382/* HAS_ENDNETENT_R:
1383 * This symbol, if defined, indicates that the endnetent_r routine
1384 * is available to endnetent re-entrantly.
1385 */
1386/* ENDNETENT_R_PROTO:
1387 * This symbol encodes the prototype of endnetent_r.
1388 * It is zero if d_endnetent_r is undef, and one of the
1389 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endnetent_r
1390 * is defined.
1391 */
1392#$d_endnetent_r HAS_ENDNETENT_R /**/
1393#define ENDNETENT_R_PROTO $endnetent_r_proto /**/
1394
06501368
MB
1395/* HAS_ENDPROTOENT:
1396 * This symbol, if defined, indicates that the endprotoent() routine is
1397 * available to close whatever was being used for protocol queries.
1398 */
1399#$d_endpent HAS_ENDPROTOENT /**/
1400
eaf812ae
MB
1401/* HAS_ENDPROTOENT_R:
1402 * This symbol, if defined, indicates that the endprotoent_r routine
1403 * is available to endprotoent re-entrantly.
1404 */
1405/* ENDPROTOENT_R_PROTO:
1406 * This symbol encodes the prototype of endprotoent_r.
1407 * It is zero if d_endprotoent_r is undef, and one of the
1408 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endprotoent_r
1409 * is defined.
1410 */
1411#$d_endprotoent_r HAS_ENDPROTOENT_R /**/
1412#define ENDPROTOENT_R_PROTO $endprotoent_r_proto /**/
1413
06501368
MB
1414/* HAS_ENDPWENT:
1415 * This symbol, if defined, indicates that the getgrent routine is
1416 * available for finalizing sequential access of the passwd database.
1417 */
1418#$d_endpwent HAS_ENDPWENT /**/
1419
08c92000
MB
1420/* HAS_ENDPWENT_R:
1421 * This symbol, if defined, indicates that the endpwent_r routine
1422 * is available to endpwent re-entrantly.
88fdc172 1423 */
08c92000
MB
1424/* ENDPWENT_R_PROTO:
1425 * This symbol encodes the prototype of endpwent_r.
1426 * It is zero if d_endpwent_r is undef, and one of the
1427 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endpwent_r
1428 * is defined.
88fdc172 1429 */
08c92000
MB
1430#$d_endpwent_r HAS_ENDPWENT_R /**/
1431#define ENDPWENT_R_PROTO $endpwent_r_proto /**/
1432
06501368
MB
1433/* HAS_ENDSERVENT:
1434 * This symbol, if defined, indicates that the endservent() routine is
1435 * available to close whatever was being used for service queries.
1436 */
1437#$d_endsent HAS_ENDSERVENT /**/
1438
1439/* HAS_ENDSERVENT_R:
1440 * This symbol, if defined, indicates that the endservent_r routine
1441 * is available to endservent re-entrantly.
1442 */
1443/* ENDSERVENT_R_PROTO:
eaf812ae
MB
1444 * This symbol encodes the prototype of endservent_r.
1445 * It is zero if d_endservent_r is undef, and one of the
1446 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endservent_r
1447 * is defined.
1448 */
1449#$d_endservent_r HAS_ENDSERVENT_R /**/
1450#define ENDSERVENT_R_PROTO $endservent_r_proto /**/
1451
b8677e3b
MB
1452/* HAS_FD_SET:
1453 * This symbol, when defined, indicates presence of the fd_set typedef
1454 * in <sys/types.h>
a845a0d4 1455 */
b8677e3b 1456#$d_fd_set HAS_FD_SET /**/
a845a0d4 1457
06501368
MB
1458/* FLEXFILENAMES:
1459 * This symbol, if defined, indicates that the system supports filenames
1460 * longer than 14 characters.
1461 */
1462#$d_flexfnam FLEXFILENAMES /**/
1463
b8677e3b
MB
1464/* Gconvert:
1465 * This preprocessor macro is defined to convert a floating point
1466 * number to a string without a trailing decimal point. This
1467 * emulates the behavior of sprintf("%g"), but is sometimes much more
1468 * efficient. If gconvert() is not available, but gcvt() drops the
1469 * trailing decimal point, then gcvt() is used. If all else fails,
1470 * a macro using sprintf("%g") is used. Arguments for the Gconvert
1471 * macro are: value, number of digits, whether trailing zeros should
1472 * be retained, and the output buffer.
1473 * The usual values are:
1474 * d_Gconvert='gconvert((x),(n),(t),(b))'
1475 * d_Gconvert='gcvt((x),(n),(b))'
1476 * d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1477 * The last two assume trailing zeros should not be kept.
a845a0d4 1478 */
b8677e3b 1479#define Gconvert(x,n,t,b) $d_Gconvert
a845a0d4 1480
06501368
MB
1481/* HAS_GETGRENT:
1482 * This symbol, if defined, indicates that the getgrent routine is
1483 * available for sequential access of the group database.
1484 */
1485#$d_getgrent HAS_GETGRENT /**/
1486
08c92000
MB
1487/* HAS_GETGRENT_R:
1488 * This symbol, if defined, indicates that the getgrent_r routine
1489 * is available to getgrent re-entrantly.
a845a0d4 1490 */
08c92000
MB
1491/* GETGRENT_R_PROTO:
1492 * This symbol encodes the prototype of getgrent_r.
1493 * It is zero if d_getgrent_r is undef, and one of the
1494 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getgrent_r
1495 * is defined.
1496 */
1497#$d_getgrent_r HAS_GETGRENT_R /**/
1498#define GETGRENT_R_PROTO $getgrent_r_proto /**/
a845a0d4 1499
08c92000
MB
1500/* HAS_GETGRGID_R:
1501 * This symbol, if defined, indicates that the getgrgid_r routine
1502 * is available to getgrgid re-entrantly.
a845a0d4 1503 */
08c92000
MB
1504/* GETGRGID_R_PROTO:
1505 * This symbol encodes the prototype of getgrgid_r.
1506 * It is zero if d_getgrgid_r is undef, and one of the
1507 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getgrgid_r
1508 * is defined.
a845a0d4 1509 */
08c92000
MB
1510#$d_getgrgid_r HAS_GETGRGID_R /**/
1511#define GETGRGID_R_PROTO $getgrgid_r_proto /**/
a845a0d4 1512
08c92000
MB
1513/* HAS_GETGRNAM_R:
1514 * This symbol, if defined, indicates that the getgrnam_r routine
1515 * is available to getgrnam re-entrantly.
a845a0d4 1516 */
08c92000
MB
1517/* GETGRNAM_R_PROTO:
1518 * This symbol encodes the prototype of getgrnam_r.
1519 * It is zero if d_getgrnam_r is undef, and one of the
1520 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getgrnam_r
1521 * is defined.
a845a0d4 1522 */
08c92000
MB
1523#$d_getgrnam_r HAS_GETGRNAM_R /**/
1524#define GETGRNAM_R_PROTO $getgrnam_r_proto /**/
a845a0d4 1525
06501368
MB
1526/* HAS_GETHOSTBYADDR:
1527 * This symbol, if defined, indicates that the gethostbyaddr() routine is
1528 * available to look up hosts by their IP addresses.
1529 */
1530#$d_gethbyaddr HAS_GETHOSTBYADDR /**/
1531
1532/* HAS_GETHOSTBYNAME:
1533 * This symbol, if defined, indicates that the gethostbyname() routine is
1534 * available to look up host names in some data base or other.
1535 */
1536#$d_gethbyname HAS_GETHOSTBYNAME /**/
1537
1538/* HAS_GETHOSTENT:
1539 * This symbol, if defined, indicates that the gethostent() routine is
1540 * available to look up host names in some data base or another.
1541 */
1542#$d_gethent HAS_GETHOSTENT /**/
1543
1544/* HAS_GETHOSTNAME:
1545 * This symbol, if defined, indicates that the C program may use the
1546 * gethostname() routine to derive the host name. See also HAS_UNAME
1547 * and PHOSTNAME.
1548 */
1549/* HAS_UNAME:
1550 * This symbol, if defined, indicates that the C program may use the
1551 * uname() routine to derive the host name. See also HAS_GETHOSTNAME
1552 * and PHOSTNAME.
1553 */
1554/* PHOSTNAME:
1555 * This symbol, if defined, indicates the command to feed to the
1556 * popen() routine to derive the host name. See also HAS_GETHOSTNAME
1557 * and HAS_UNAME. Note that the command uses a fully qualified path,
1558 * so that it is safe even if used by a process with super-user
1559 * privileges.
1560 */
1561/* HAS_PHOSTNAME:
1562 * This symbol, if defined, indicates that the C program may use the
1563 * contents of PHOSTNAME as a command to feed to the popen() routine
1564 * to derive the host name.
1565 */
1566#$d_gethname HAS_GETHOSTNAME /**/
1567#$d_uname HAS_UNAME /**/
1568#$d_phostname HAS_PHOSTNAME /**/
1569#ifdef HAS_PHOSTNAME
1570#define PHOSTNAME "$aphostname" /* How to get the host name */
1571#endif
1572
eaf812ae
MB
1573/* HAS_GETHOSTBYADDR_R:
1574 * This symbol, if defined, indicates that the gethostbyaddr_r routine
1575 * is available to gethostbyaddr re-entrantly.
a845a0d4 1576 */
eaf812ae
MB
1577/* GETHOSTBYADDR_R_PROTO:
1578 * This symbol encodes the prototype of gethostbyaddr_r.
1579 * It is zero if d_gethostbyaddr_r is undef, and one of the
1580 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_gethostbyaddr_r
1581 * is defined.
a845a0d4 1582 */
eaf812ae
MB
1583#$d_gethostbyaddr_r HAS_GETHOSTBYADDR_R /**/
1584#define GETHOSTBYADDR_R_PROTO $gethostbyaddr_r_proto /**/
08c92000 1585
eaf812ae
MB
1586/* HAS_GETHOSTBYNAME_R:
1587 * This symbol, if defined, indicates that the gethostbyname_r routine
1588 * is available to gethostbyname re-entrantly.
a845a0d4 1589 */
eaf812ae
MB
1590/* GETHOSTBYNAME_R_PROTO:
1591 * This symbol encodes the prototype of gethostbyname_r.
1592 * It is zero if d_gethostbyname_r is undef, and one of the
1593 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_gethostbyname_r
08c92000 1594 * is defined.
a845a0d4 1595 */
eaf812ae
MB
1596#$d_gethostbyname_r HAS_GETHOSTBYNAME_R /**/
1597#define GETHOSTBYNAME_R_PROTO $gethostbyname_r_proto /**/
1598
1599/* HAS_GETHOSTENT_R:
1600 * This symbol, if defined, indicates that the gethostent_r routine
1601 * is available to gethostent re-entrantly.
1602 */
1603/* GETHOSTENT_R_PROTO:
1604 * This symbol encodes the prototype of gethostent_r.
1605 * It is zero if d_gethostent_r is undef, and one of the
1606 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_gethostent_r
1607 * is defined.
1608 */
1609#$d_gethostent_r HAS_GETHOSTENT_R /**/
1610#define GETHOSTENT_R_PROTO $gethostent_r_proto /**/
1611
06501368
MB
1612/* HAS_GETHOST_PROTOS:
1613 * This symbol, if defined, indicates that <netdb.h> includes
1614 * prototypes for gethostent(), gethostbyname(), and
1615 * gethostbyaddr(). Otherwise, it is up to the program to guess
1616 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
1617 */
1618#$d_gethostprotos HAS_GETHOST_PROTOS /**/
1619
eaf812ae
MB
1620/* HAS_GETLOGIN_R:
1621 * This symbol, if defined, indicates that the getlogin_r routine
1622 * is available to getlogin re-entrantly.
1623 */
1624/* GETLOGIN_R_PROTO:
1625 * This symbol encodes the prototype of getlogin_r.
1626 * It is zero if d_getlogin_r is undef, and one of the
1627 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getlogin_r
1628 * is defined.
1629 */
1630#$d_getlogin_r HAS_GETLOGIN_R /**/
1631#define GETLOGIN_R_PROTO $getlogin_r_proto /**/
1632
06501368
MB
1633/* HAS_GETNETBYADDR:
1634 * This symbol, if defined, indicates that the getnetbyaddr() routine is
1635 * available to look up networks by their IP addresses.
1636 */
1637#$d_getnbyaddr HAS_GETNETBYADDR /**/
1638
1639/* HAS_GETNETBYNAME:
1640 * This symbol, if defined, indicates that the getnetbyname() routine is
1641 * available to look up networks by their names.
1642 */
1643#$d_getnbyname HAS_GETNETBYNAME /**/
1644
1645/* HAS_GETNETENT:
1646 * This symbol, if defined, indicates that the getnetent() routine is
1647 * available to look up network names in some data base or another.
1648 */
1649#$d_getnent HAS_GETNETENT /**/
1650
eaf812ae
MB
1651/* HAS_GETNETBYADDR_R:
1652 * This symbol, if defined, indicates that the getnetbyaddr_r routine
1653 * is available to getnetbyaddr re-entrantly.
1654 */
1655/* GETNETBYADDR_R_PROTO:
1656 * This symbol encodes the prototype of getnetbyaddr_r.
1657 * It is zero if d_getnetbyaddr_r is undef, and one of the
1658 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getnetbyaddr_r
1659 * is defined.
1660 */
1661#$d_getnetbyaddr_r HAS_GETNETBYADDR_R /**/
1662#define GETNETBYADDR_R_PROTO $getnetbyaddr_r_proto /**/
1663
1664/* HAS_GETNETBYNAME_R:
1665 * This symbol, if defined, indicates that the getnetbyname_r routine
1666 * is available to getnetbyname re-entrantly.
1667 */
1668/* GETNETBYNAME_R_PROTO:
1669 * This symbol encodes the prototype of getnetbyname_r.
1670 * It is zero if d_getnetbyname_r is undef, and one of the
1671 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getnetbyname_r
1672 * is defined.
1673 */
1674#$d_getnetbyname_r HAS_GETNETBYNAME_R /**/
1675#define GETNETBYNAME_R_PROTO $getnetbyname_r_proto /**/
1676
1677/* HAS_GETNETENT_R:
1678 * This symbol, if defined, indicates that the getnetent_r routine
1679 * is available to getnetent re-entrantly.
1680 */
1681/* GETNETENT_R_PROTO:
1682 * This symbol encodes the prototype of getnetent_r.
1683 * It is zero if d_getnetent_r is undef, and one of the
1684 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getnetent_r
1685 * is defined.
1686 */
1687#$d_getnetent_r HAS_GETNETENT_R /**/
1688#define GETNETENT_R_PROTO $getnetent_r_proto /**/
1689
06501368
MB
1690/* HAS_GETNET_PROTOS:
1691 * This symbol, if defined, indicates that <netdb.h> includes
1692 * prototypes for getnetent(), getnetbyname(), and
1693 * getnetbyaddr(). Otherwise, it is up to the program to guess
1694 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
1695 */
1696#$d_getnetprotos HAS_GETNET_PROTOS /**/
1697
b8677e3b
MB
1698/* HAS_GETPAGESIZE:
1699 * This symbol, if defined, indicates that the getpagesize system call
1700 * is available to get system page size, which is the granularity of
1701 * many memory management calls.
a845a0d4 1702 */
b8677e3b 1703#$d_getpagsz HAS_GETPAGESIZE /**/
a845a0d4 1704
06501368
MB
1705/* HAS_GETPROTOENT:
1706 * This symbol, if defined, indicates that the getprotoent() routine is
1707 * available to look up protocols in some data base or another.
1708 */
1709#$d_getpent HAS_GETPROTOENT /**/
1710
1711/* HAS_GETPGRP:
1712 * This symbol, if defined, indicates that the getpgrp routine is
1713 * available to get the current process group.
1714 */
1715/* USE_BSD_GETPGRP:
1716 * This symbol, if defined, indicates that getpgrp needs one
1717 * arguments whereas USG one needs none.
1718 */
1719#$d_getpgrp HAS_GETPGRP /**/
1720#$d_bsdgetpgrp USE_BSD_GETPGRP /**/
1721
1722/* HAS_GETPROTOBYNAME:
1723 * This symbol, if defined, indicates that the getprotobyname()
1724 * routine is available to look up protocols by their name.
1725 */
1726/* HAS_GETPROTOBYNUMBER:
1727 * This symbol, if defined, indicates that the getprotobynumber()
1728 * routine is available to look up protocols by their number.
1729 */
1730#$d_getpbyname HAS_GETPROTOBYNAME /**/
1731#$d_getpbynumber HAS_GETPROTOBYNUMBER /**/
1732
eaf812ae
MB
1733/* HAS_GETPROTOBYNAME_R:
1734 * This symbol, if defined, indicates that the getprotobyname_r routine
1735 * is available to getprotobyname re-entrantly.
1736 */
1737/* GETPROTOBYNAME_R_PROTO:
1738 * This symbol encodes the prototype of getprotobyname_r.
1739 * It is zero if d_getprotobyname_r is undef, and one of the
1740 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getprotobyname_r
1741 * is defined.
1742 */
1743#$d_getprotobyname_r HAS_GETPROTOBYNAME_R /**/
1744#define GETPROTOBYNAME_R_PROTO $getprotobyname_r_proto /**/
1745
1746/* HAS_GETPROTOBYNUMBER_R:
1747 * This symbol, if defined, indicates that the getprotobynumber_r routine
1748 * is available to getprotobynumber re-entrantly.
1749 */
1750/* GETPROTOBYNUMBER_R_PROTO:
1751 * This symbol encodes the prototype of getprotobynumber_r.
1752 * It is zero if d_getprotobynumber_r is undef, and one of the
1753 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getprotobynumber_r
1754 * is defined.
1755 */
1756#$d_getprotobynumber_r HAS_GETPROTOBYNUMBER_R /**/
1757#define GETPROTOBYNUMBER_R_PROTO $getprotobynumber_r_proto /**/
1758
1759/* HAS_GETPROTOENT_R:
1760 * This symbol, if defined, indicates that the getprotoent_r routine
1761 * is available to getprotoent re-entrantly.
1762 */
1763/* GETPROTOENT_R_PROTO:
1764 * This symbol encodes the prototype of getprotoent_r.
1765 * It is zero if d_getprotoent_r is undef, and one of the
1766 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getprotoent_r
1767 * is defined.
1768 */
1769#$d_getprotoent_r HAS_GETPROTOENT_R /**/
1770#define GETPROTOENT_R_PROTO $getprotoent_r_proto /**/
1771
06501368
MB
1772/* HAS_GETPROTO_PROTOS:
1773 * This symbol, if defined, indicates that <netdb.h> includes
1774 * prototypes for getprotoent(), getprotobyname(), and
1775 * getprotobyaddr(). Otherwise, it is up to the program to guess
1776 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
1777 */
1778#$d_getprotoprotos HAS_GETPROTO_PROTOS /**/
1779
1780/* HAS_GETPWENT:
1781 * This symbol, if defined, indicates that the getpwent routine is
1782 * available for sequential access of the passwd database.
1783 * If this is not available, the older getpw() function may be available.
1784 */
1785#$d_getpwent HAS_GETPWENT /**/
1786
08c92000
MB
1787/* HAS_GETPWENT_R:
1788 * This symbol, if defined, indicates that the getpwent_r routine
1789 * is available to getpwent re-entrantly.
a845a0d4 1790 */
08c92000
MB
1791/* GETPWENT_R_PROTO:
1792 * This symbol encodes the prototype of getpwent_r.
1793 * It is zero if d_getpwent_r is undef, and one of the
1794 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getpwent_r
1795 * is defined.
a845a0d4 1796 */
08c92000
MB
1797#$d_getpwent_r HAS_GETPWENT_R /**/
1798#define GETPWENT_R_PROTO $getpwent_r_proto /**/
a845a0d4 1799
08c92000
MB
1800/* HAS_GETPWNAM_R:
1801 * This symbol, if defined, indicates that the getpwnam_r routine
1802 * is available to getpwnam re-entrantly.
a845a0d4 1803 */
08c92000
MB
1804/* GETPWNAM_R_PROTO:
1805 * This symbol encodes the prototype of getpwnam_r.
1806 * It is zero if d_getpwnam_r is undef, and one of the
1807 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getpwnam_r
1808 * is defined.
a845a0d4 1809 */
08c92000
MB
1810#$d_getpwnam_r HAS_GETPWNAM_R /**/
1811#define GETPWNAM_R_PROTO $getpwnam_r_proto /**/
a845a0d4 1812
08c92000
MB
1813/* HAS_GETPWUID_R:
1814 * This symbol, if defined, indicates that the getpwuid_r routine
1815 * is available to getpwuid re-entrantly.
10bc17b6 1816 */
08c92000
MB
1817/* GETPWUID_R_PROTO:
1818 * This symbol encodes the prototype of getpwuid_r.
1819 * It is zero if d_getpwuid_r is undef, and one of the
1820 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getpwuid_r
1821 * is defined.
a845a0d4 1822 */
08c92000
MB
1823#$d_getpwuid_r HAS_GETPWUID_R /**/
1824#define GETPWUID_R_PROTO $getpwuid_r_proto /**/
a845a0d4 1825
06501368
MB
1826/* HAS_GETSERVENT:
1827 * This symbol, if defined, indicates that the getservent() routine is
1828 * available to look up network services in some data base or another.
1829 */
1830#$d_getsent HAS_GETSERVENT /**/
1831
eaf812ae
MB
1832/* HAS_GETSERVBYNAME_R:
1833 * This symbol, if defined, indicates that the getservbyname_r routine
1834 * is available to getservbyname re-entrantly.
1835 */
1836/* GETSERVBYNAME_R_PROTO:
1837 * This symbol encodes the prototype of getservbyname_r.
1838 * It is zero if d_getservbyname_r is undef, and one of the
1839 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getservbyname_r
1840 * is defined.
1841 */
1842#$d_getservbyname_r HAS_GETSERVBYNAME_R /**/
1843#define GETSERVBYNAME_R_PROTO $getservbyname_r_proto /**/
1844
1845/* HAS_GETSERVBYPORT_R:
1846 * This symbol, if defined, indicates that the getservbyport_r routine
1847 * is available to getservbyport re-entrantly.
1848 */
1849/* GETSERVBYPORT_R_PROTO:
1850 * This symbol encodes the prototype of getservbyport_r.
1851 * It is zero if d_getservbyport_r is undef, and one of the
1852 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getservbyport_r
1853 * is defined.
1854 */
1855#$d_getservbyport_r HAS_GETSERVBYPORT_R /**/
1856#define GETSERVBYPORT_R_PROTO $getservbyport_r_proto /**/
1857
1858/* HAS_GETSERVENT_R:
1859 * This symbol, if defined, indicates that the getservent_r routine
1860 * is available to getservent re-entrantly.
1861 */
1862/* GETSERVENT_R_PROTO:
1863 * This symbol encodes the prototype of getservent_r.
1864 * It is zero if d_getservent_r is undef, and one of the
1865 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getservent_r
1866 * is defined.
1867 */
1868#$d_getservent_r HAS_GETSERVENT_R /**/
1869#define GETSERVENT_R_PROTO $getservent_r_proto /**/
1870
06501368
MB
1871/* HAS_GETSERV_PROTOS:
1872 * This symbol, if defined, indicates that <netdb.h> includes
1873 * prototypes for getservent(), getservbyname(), and
1874 * getservbyaddr(). Otherwise, it is up to the program to guess
1875 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
1876 */
1877#$d_getservprotos HAS_GETSERV_PROTOS /**/
1878
08c92000
MB
1879/* HAS_GETSPNAM_R:
1880 * This symbol, if defined, indicates that the getspnam_r routine
1881 * is available to getspnam re-entrantly.
a845a0d4 1882 */
08c92000
MB
1883/* GETSPNAM_R_PROTO:
1884 * This symbol encodes the prototype of getspnam_r.
1885 * It is zero if d_getspnam_r is undef, and one of the
1886 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getspnam_r
1887 * is defined.
a845a0d4 1888 */
08c92000
MB
1889#$d_getspnam_r HAS_GETSPNAM_R /**/
1890#define GETSPNAM_R_PROTO $getspnam_r_proto /**/
a845a0d4 1891
06501368
MB
1892/* HAS_GETSERVBYNAME:
1893 * This symbol, if defined, indicates that the getservbyname()
1894 * routine is available to look up services by their name.
1895 */
1896/* HAS_GETSERVBYPORT:
1897 * This symbol, if defined, indicates that the getservbyport()
1898 * routine is available to look up services by their port.
1899 */
1900#$d_getsbyname HAS_GETSERVBYNAME /**/
1901#$d_getsbyport HAS_GETSERVBYPORT /**/
1902
08c92000
MB
1903/* HAS_GMTIME_R:
1904 * This symbol, if defined, indicates that the gmtime_r routine
1905 * is available to gmtime re-entrantly.
1906 */
1907/* GMTIME_R_PROTO:
1908 * This symbol encodes the prototype of gmtime_r.
1909 * It is zero if d_gmtime_r is undef, and one of the
1910 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_gmtime_r
1911 * is defined.
1912 */
1913#$d_gmtime_r HAS_GMTIME_R /**/
1914#define GMTIME_R_PROTO $gmtime_r_proto /**/
1915
b8677e3b
MB
1916/* HAS_GNULIBC:
1917 * This symbol, if defined, indicates to the C program that
1918 * the GNU C library is being used. A better check is to use
1919 * the __GLIBC__ and __GLIBC_MINOR__ symbols supplied with glibc.
a845a0d4 1920 */
b8677e3b
MB
1921#$d_gnulibc HAS_GNULIBC /**/
1922#if defined(HAS_GNULIBC) && !defined(_GNU_SOURCE)
1923# define _GNU_SOURCE
1924#endif
1925
06501368
MB
1926/* HAS_HTONL:
1927 * This symbol, if defined, indicates that the htonl() routine (and
1928 * friends htons() ntohl() ntohs()) are available to do network
1929 * order byte swapping.
1930 */
1931/* HAS_HTONS:
1932 * This symbol, if defined, indicates that the htons() routine (and
1933 * friends htonl() ntohl() ntohs()) are available to do network
1934 * order byte swapping.
1935 */
1936/* HAS_NTOHL:
1937 * This symbol, if defined, indicates that the ntohl() routine (and
1938 * friends htonl() htons() ntohs()) are available to do network
1939 * order byte swapping.
1940 */
1941/* HAS_NTOHS:
1942 * This symbol, if defined, indicates that the ntohs() routine (and
1943 * friends htonl() htons() ntohl()) are available to do network
1944 * order byte swapping.
1945 */
1946#$d_htonl HAS_HTONL /**/
1947#$d_htonl HAS_HTONS /**/
1948#$d_htonl HAS_NTOHL /**/
1949#$d_htonl HAS_NTOHS /**/
1950
b8677e3b
MB
1951/* HAS_ISASCII:
1952 * This manifest constant lets the C program know that isascii
1953 * is available.
a845a0d4 1954 */
b8677e3b
MB
1955#$d_isascii HAS_ISASCII /**/
1956
1957/* HAS_LCHOWN:
1958 * This symbol, if defined, indicates that the lchown routine is
1959 * available to operate on a symbolic link (instead of following the
1960 * link).
a845a0d4 1961 */
b8677e3b 1962#$d_lchown HAS_LCHOWN /**/
a845a0d4 1963
08c92000
MB
1964/* HAS_LOCALTIME_R:
1965 * This symbol, if defined, indicates that the localtime_r routine
1966 * is available to localtime re-entrantly.
1967 */
f025e94b
MB
1968/* LOCALTIME_R_NEEDS_TZSET:
1969 * Many libc's localtime_r implementations do not call tzset,
1970 * making them differ from localtime(), and making timezone
47d847ba 1971 * changes using \$ENV{TZ} without explicitly calling tzset
f025e94b
MB
1972 * impossible. This symbol makes us call tzset before localtime_r
1973 */
8572b25d
BH
1974#$d_localtime_r_needs_tzset LOCALTIME_R_NEEDS_TZSET /**/
1975#ifdef LOCALTIME_R_NEEDS_TZSET
1976#define L_R_TZSET tzset(),
1977#else
1978#define L_R_TZSET
1979#endif
1980
08c92000
MB
1981/* LOCALTIME_R_PROTO:
1982 * This symbol encodes the prototype of localtime_r.
1983 * It is zero if d_localtime_r is undef, and one of the
1984 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_localtime_r
1985 * is defined.
1986 */
1987#$d_localtime_r HAS_LOCALTIME_R /**/
1988#define LOCALTIME_R_PROTO $localtime_r_proto /**/
1989
06501368
MB
1990/* HAS_LONG_DOUBLE:
1991 * This symbol will be defined if the C compiler supports long
1992 * doubles.
08c92000 1993 */
06501368
MB
1994/* LONG_DOUBLESIZE:
1995 * This symbol contains the size of a long double, so that the
1996 * C preprocessor can make decisions based on it. It is only
1997 * defined if the system supports long doubles.
a845a0d4 1998 */
db8b8c75
MB
1999/* HAS_LDEXPL:
2000 * This symbol, if defined, indicates that the ldexpl routine is
2001 * available to shift a long double floating-point number
2002 * by an integral power of 2.
2003 */
dc91db6c
JH
2004/* LONG_DOUBLEKIND:
2005 * LONG_DOUBLEKIND will be one of
2006 * LONG_DOUBLE_IS_DOUBLE
2007 * LONG_DOUBLE_IS_IEEE_754_128_BIT_LITTLE_ENDIAN
2008 * LONG_DOUBLE_IS_IEEE_754_128_BIT_BIG_ENDIAN
2009 * LONG_DOUBLE_IS_X86_80_BIT_LITTLE_ENDIAN
2010 * LONG_DOUBLE_IS_X86_80_BIT_BIG_ENDIAN
2011 * LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_LITTLE_ENDIAN
2012 * LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_BIG_ENDIAN
2013 * LONG_DOUBLE_IS_UNKNOWN_FORMAT
2014 * It is only defined if the system supports long doubles.
2015 */
db8b8c75 2016#$d_ldexpl HAS_LDEXPL /**/
06501368
MB
2017#$d_longdbl HAS_LONG_DOUBLE /**/
2018#ifdef HAS_LONG_DOUBLE
2019#define LONG_DOUBLESIZE $longdblsize /**/
dc91db6c
JH
2020#define LONG_DOUBLEKIND $longdblkind /**/
2021#define LONG_DOUBLE_IS_DOUBLE 0
2022#define LONG_DOUBLE_IS_IEEE_754_128_BIT_LITTLE_ENDIAN 1
2023#define LONG_DOUBLE_IS_IEEE_754_128_BIT_BIG_ENDIAN 2
2024#define LONG_DOUBLE_IS_X86_80_BIT_LITTLE_ENDIAN 3
2025#define LONG_DOUBLE_IS_X86_80_BIT_BIG_ENDIAN 4
2026#define LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_LITTLE_ENDIAN 5
2027#define LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_BIG_ENDIAN 6
2028#define LONG_DOUBLE_IS_UNKNOWN_FORMAT -1
06501368 2029#endif
a845a0d4 2030
06501368
MB
2031/* HAS_LONG_LONG:
2032 * This symbol will be defined if the C compiler supports long long.
eaf812ae 2033 */
06501368
MB
2034/* LONGLONGSIZE:
2035 * This symbol contains the size of a long long, so that the
2036 * C preprocessor can make decisions based on it. It is only
2037 * defined if the system supports long long.
2038 */
2039#$d_longlong HAS_LONG_LONG /**/
2040#ifdef HAS_LONG_LONG
2041#define LONGLONGSIZE $longlongsize /**/
2042#endif
eaf812ae 2043
06501368
MB
2044/* HAS_LSEEK_PROTO:
2045 * This symbol, if defined, indicates that the system provides
2046 * a prototype for the lseek() function. Otherwise, it is up
2047 * to the program to supply one. A good guess is
2048 * extern off_t lseek(int, off_t, int);
a845a0d4 2049 */
06501368
MB
2050#$d_lseekproto HAS_LSEEK_PROTO /**/
2051
2052/* HAS_MEMCHR:
2053 * This symbol, if defined, indicates that the memchr routine is available
2054 * to locate characters within a C string.
a845a0d4 2055 */
06501368
MB
2056#$d_memchr HAS_MEMCHR /**/
2057
2058/* HAS_MKSTEMP:
2059 * This symbol, if defined, indicates that the mkstemp routine is
2060 * available to exclusively create and open a uniquely named
2061 * temporary file.
2062 */
2063#$d_mkstemp HAS_MKSTEMP /**/
2064
2065/* HAS_MMAP:
2066 * This symbol, if defined, indicates that the mmap system call is
2067 * available to map a file into memory.
2068 */
2069/* Mmap_t:
2070 * This symbol holds the return type of the mmap() system call
2071 * (and simultaneously the type of the first argument).
2072 * Usually set to 'void *' or 'caddr_t'.
2073 */
2074#$d_mmap HAS_MMAP /**/
2075#define Mmap_t $mmaptype /**/
2076
2077/* HAS_MSG:
2078 * This symbol, if defined, indicates that the entire msg*(2) library is
2079 * supported (IPC mechanism based on message queues).
2080 */
2081#$d_msg HAS_MSG /**/
2082
2083/* HAS_OPEN3:
2084 * This manifest constant lets the C program know that the three
2085 * argument form of open(2) is available.
2086 */
2087#$d_open3 HAS_OPEN3 /**/
2088
2089/* OLD_PTHREAD_CREATE_JOINABLE:
2090 * This symbol, if defined, indicates how to create pthread
2091 * in joinable (aka undetached) state. NOTE: not defined
2092 * if pthread.h already has defined PTHREAD_CREATE_JOINABLE
2093 * (the new version of the constant).
2094 * If defined, known values are PTHREAD_CREATE_UNDETACHED
2095 * and __UNDETACHED.
2096 */
2097#$d_old_pthread_create_joinable OLD_PTHREAD_CREATE_JOINABLE $old_pthread_create_joinable /**/
2098
2099/* HAS_PTHREAD_ATFORK:
2100 * This symbol, if defined, indicates that the pthread_atfork routine
2101 * is available to setup fork handlers.
2102 */
2103#$d_pthread_atfork HAS_PTHREAD_ATFORK /**/
2104
2105/* HAS_PTHREAD_YIELD:
2106 * This symbol, if defined, indicates that the pthread_yield
2107 * routine is available to yield the execution of the current
2108 * thread. sched_yield is preferable to pthread_yield.
2109 */
2110/* SCHED_YIELD:
2111 * This symbol defines the way to yield the execution of
2112 * the current thread. Known ways are sched_yield,
2113 * pthread_yield, and pthread_yield with NULL.
2114 */
2115/* HAS_SCHED_YIELD:
2116 * This symbol, if defined, indicates that the sched_yield
08c92000
MB
2117 * routine is available to yield the execution of the current
2118 * thread. sched_yield is preferable to pthread_yield.
2119 */
2120#$d_pthread_yield HAS_PTHREAD_YIELD /**/
2121#define SCHED_YIELD $sched_yield /**/
2122#$d_sched_yield HAS_SCHED_YIELD /**/
a845a0d4 2123
08c92000
MB
2124/* HAS_RANDOM_R:
2125 * This symbol, if defined, indicates that the random_r routine
2126 * is available to random re-entrantly.
a845a0d4 2127 */
08c92000
MB
2128/* RANDOM_R_PROTO:
2129 * This symbol encodes the prototype of random_r.
2130 * It is zero if d_random_r is undef, and one of the
2131 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_random_r
2132 * is defined.
a845a0d4 2133 */
08c92000
MB
2134#$d_random_r HAS_RANDOM_R /**/
2135#define RANDOM_R_PROTO $random_r_proto /**/
a845a0d4 2136
eaf812ae
MB
2137/* HAS_READDIR64_R:
2138 * This symbol, if defined, indicates that the readdir64_r routine
2139 * is available to readdir64 re-entrantly.
2140 */
2141/* READDIR64_R_PROTO:
2142 * This symbol encodes the prototype of readdir64_r.
2143 * It is zero if d_readdir64_r is undef, and one of the
2144 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_readdir64_r
2145 * is defined.
2146 */
2147#$d_readdir64_r HAS_READDIR64_R /**/
2148#define READDIR64_R_PROTO $readdir64_r_proto /**/
2149
08c92000
MB
2150/* HAS_READDIR_R:
2151 * This symbol, if defined, indicates that the readdir_r routine
2152 * is available to readdir re-entrantly.
a845a0d4 2153 */
08c92000
MB
2154/* READDIR_R_PROTO:
2155 * This symbol encodes the prototype of readdir_r.
2156 * It is zero if d_readdir_r is undef, and one of the
2157 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_readdir_r
2158 * is defined.
2159 */
2160#$d_readdir_r HAS_READDIR_R /**/
2161#define READDIR_R_PROTO $readdir_r_proto /**/
a845a0d4 2162
b8677e3b
MB
2163/* HAS_SAFE_BCOPY:
2164 * This symbol, if defined, indicates that the bcopy routine is available
2165 * to copy potentially overlapping memory blocks. Normally, you should
2166 * probably use memmove() or memcpy(). If neither is defined, roll your
2167 * own version.
08c92000 2168 */
b8677e3b 2169#$d_safebcpy HAS_SAFE_BCOPY /**/
08c92000 2170
b8677e3b
MB
2171/* HAS_SAFE_MEMCPY:
2172 * This symbol, if defined, indicates that the memcpy routine is available
2173 * to copy potentially overlapping memory blocks. If you need to
2174 * copy overlapping memory blocks, you should check HAS_MEMMOVE and
2175 * use memmove() instead, if available.
08c92000 2176 */
b8677e3b
MB
2177#$d_safemcpy HAS_SAFE_MEMCPY /**/
2178
2179/* HAS_SANE_MEMCMP:
2180 * This symbol, if defined, indicates that the memcmp routine is available
2181 * and can be used to compare relative magnitudes of chars with their high
2182 * bits set. If it is not defined, roll your own version.
2183 */
2184#$d_sanemcmp HAS_SANE_MEMCMP /**/
08c92000 2185
06501368
MB
2186/* HAS_SEM:
2187 * This symbol, if defined, indicates that the entire sem*(2) library is
2188 * supported.
2189 */
2190#$d_sem HAS_SEM /**/
2191
2192/* HAS_SETGRENT:
2193 * This symbol, if defined, indicates that the setgrent routine is
2194 * available for initializing sequential access of the group database.
2195 */
2196#$d_setgrent HAS_SETGRENT /**/
2197
08c92000
MB
2198/* HAS_SETGRENT_R:
2199 * This symbol, if defined, indicates that the setgrent_r routine
2200 * is available to setgrent re-entrantly.
2201 */
2202/* SETGRENT_R_PROTO:
2203 * This symbol encodes the prototype of setgrent_r.
2204 * It is zero if d_setgrent_r is undef, and one of the
2205 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setgrent_r
2206 * is defined.
2207 */
2208#$d_setgrent_r HAS_SETGRENT_R /**/
2209#define SETGRENT_R_PROTO $setgrent_r_proto /**/
2210
06501368
MB
2211/* HAS_SETHOSTENT:
2212 * This symbol, if defined, indicates that the sethostent() routine is
2213 * available.
2214 */
2215#$d_sethent HAS_SETHOSTENT /**/
2216
eaf812ae
MB
2217/* HAS_SETHOSTENT_R:
2218 * This symbol, if defined, indicates that the sethostent_r routine
2219 * is available to sethostent re-entrantly.
2220 */
2221/* SETHOSTENT_R_PROTO:
2222 * This symbol encodes the prototype of sethostent_r.
2223 * It is zero if d_sethostent_r is undef, and one of the
2224 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_sethostent_r
2225 * is defined.
2226 */
2227#$d_sethostent_r HAS_SETHOSTENT_R /**/
2228#define SETHOSTENT_R_PROTO $sethostent_r_proto /**/
2229
eaf812ae
MB
2230/* HAS_SETLOCALE_R:
2231 * This symbol, if defined, indicates that the setlocale_r routine
2232 * is available to setlocale re-entrantly.
2233 */
2234/* SETLOCALE_R_PROTO:
2235 * This symbol encodes the prototype of setlocale_r.
2236 * It is zero if d_setlocale_r is undef, and one of the
2237 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setlocale_r
2238 * is defined.
2239 */
2240#$d_setlocale_r HAS_SETLOCALE_R /**/
2241#define SETLOCALE_R_PROTO $setlocale_r_proto /**/
2242
06501368
MB
2243/* HAS_SETNETENT:
2244 * This symbol, if defined, indicates that the setnetent() routine is
2245 * available.
2246 */
2247#$d_setnent HAS_SETNETENT /**/
2248
eaf812ae
MB
2249/* HAS_SETNETENT_R:
2250 * This symbol, if defined, indicates that the setnetent_r routine
2251 * is available to setnetent re-entrantly.
2252 */
2253/* SETNETENT_R_PROTO:
2254 * This symbol encodes the prototype of setnetent_r.
2255 * It is zero if d_setnetent_r is undef, and one of the
2256 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setnetent_r
2257 * is defined.
2258 */
2259#$d_setnetent_r HAS_SETNETENT_R /**/
2260#define SETNETENT_R_PROTO $setnetent_r_proto /**/
2261
06501368
MB
2262/* HAS_SETPROTOENT:
2263 * This symbol, if defined, indicates that the setprotoent() routine is
2264 * available.
2265 */
2266#$d_setpent HAS_SETPROTOENT /**/
2267
2268/* HAS_SETPGRP:
2269 * This symbol, if defined, indicates that the setpgrp routine is
2270 * available to set the current process group.
2271 */
2272/* USE_BSD_SETPGRP:
2273 * This symbol, if defined, indicates that setpgrp needs two
2274 * arguments whereas USG one needs none. See also HAS_SETPGID
2275 * for a POSIX interface.
2276 */
2277#$d_setpgrp HAS_SETPGRP /**/
2278#$d_bsdsetpgrp USE_BSD_SETPGRP /**/
2279
eaf812ae
MB
2280/* HAS_SETPROTOENT_R:
2281 * This symbol, if defined, indicates that the setprotoent_r routine
2282 * is available to setprotoent re-entrantly.
2283 */
2284/* SETPROTOENT_R_PROTO:
2285 * This symbol encodes the prototype of setprotoent_r.
2286 * It is zero if d_setprotoent_r is undef, and one of the
2287 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setprotoent_r
2288 * is defined.
2289 */
2290#$d_setprotoent_r HAS_SETPROTOENT_R /**/
2291#define SETPROTOENT_R_PROTO $setprotoent_r_proto /**/
2292
06501368
MB
2293/* HAS_SETPWENT:
2294 * This symbol, if defined, indicates that the setpwent routine is
2295 * available for initializing sequential access of the passwd database.
2296 */
2297#$d_setpwent HAS_SETPWENT /**/
2298
08c92000
MB
2299/* HAS_SETPWENT_R:
2300 * This symbol, if defined, indicates that the setpwent_r routine
2301 * is available to setpwent re-entrantly.
2302 */
2303/* SETPWENT_R_PROTO:
2304 * This symbol encodes the prototype of setpwent_r.
2305 * It is zero if d_setpwent_r is undef, and one of the
2306 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setpwent_r
2307 * is defined.
2308 */
2309#$d_setpwent_r HAS_SETPWENT_R /**/
2310#define SETPWENT_R_PROTO $setpwent_r_proto /**/
2311
06501368
MB
2312/* HAS_SETSERVENT:
2313 * This symbol, if defined, indicates that the setservent() routine is
2314 * available.
2315 */
2316#$d_setsent HAS_SETSERVENT /**/
2317
eaf812ae
MB
2318/* HAS_SETSERVENT_R:
2319 * This symbol, if defined, indicates that the setservent_r routine
2320 * is available to setservent re-entrantly.
2321 */
2322/* SETSERVENT_R_PROTO:
2323 * This symbol encodes the prototype of setservent_r.
2324 * It is zero if d_setservent_r is undef, and one of the
2325 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setservent_r
2326 * is defined.
2327 */
2328#$d_setservent_r HAS_SETSERVENT_R /**/
2329#define SETSERVENT_R_PROTO $setservent_r_proto /**/
2330
06501368
MB
2331/* HAS_SETVBUF:
2332 * This symbol, if defined, indicates that the setvbuf routine is
2333 * available to change buffering on an open stdio stream.
2334 * to a line-buffered mode.
2335 */
2336#$d_setvbuf HAS_SETVBUF /**/
2337
2338/* HAS_SHM:
2339 * This symbol, if defined, indicates that the entire shm*(2) library is
2340 * supported.
2341 */
2342#$d_shm HAS_SHM /**/
2343
2344/* Shmat_t:
2345 * This symbol holds the return type of the shmat() system call.
2346 * Usually set to 'void *' or 'char *'.
2347 */
2348/* HAS_SHMAT_PROTOTYPE:
2349 * This symbol, if defined, indicates that the sys/shm.h includes
2350 * a prototype for shmat(). Otherwise, it is up to the program to
2351 * guess one. Shmat_t shmat(int, Shmat_t, int) is a good guess,
2352 * but not always right so it should be emitted by the program only
2353 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
2354 */
2355#define Shmat_t $shmattype /**/
2356#$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/
2357
b8677e3b
MB
2358/* HAS_SIGACTION:
2359 * This symbol, if defined, indicates that Vr4's sigaction() routine
2360 * is available.
eaf812ae 2361 */
b8677e3b 2362#$d_sigaction HAS_SIGACTION /**/
eaf812ae 2363
b8677e3b
MB
2364/* HAS_SIGSETJMP:
2365 * This variable indicates to the C program that the sigsetjmp()
2366 * routine is available to save the calling process's registers
2367 * and stack environment for later use by siglongjmp(), and
2368 * to optionally save the process's signal mask. See
2369 * Sigjmp_buf, Sigsetjmp, and Siglongjmp.
10bc17b6 2370 */
b8677e3b
MB
2371/* Sigjmp_buf:
2372 * This is the buffer type to be used with Sigsetjmp and Siglongjmp.
c7aff470 2373 */
b8677e3b
MB
2374/* Sigsetjmp:
2375 * This macro is used in the same way as sigsetjmp(), but will invoke
2376 * traditional setjmp() if sigsetjmp isn't available.
2377 * See HAS_SIGSETJMP.
b363b713 2378 */
b8677e3b
MB
2379/* Siglongjmp:
2380 * This macro is used in the same way as siglongjmp(), but will invoke
2381 * traditional longjmp() if siglongjmp isn't available.
2382 * See HAS_SIGSETJMP.
a7fea17f 2383 */
b8677e3b
MB
2384#$d_sigsetjmp HAS_SIGSETJMP /**/
2385#ifdef HAS_SIGSETJMP
2386#define Sigjmp_buf sigjmp_buf
2387#define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask))
2388#define Siglongjmp(buf,retval) siglongjmp((buf),(retval))
2389#else
2390#define Sigjmp_buf jmp_buf
2391#define Sigsetjmp(buf,save_mask) setjmp((buf))
2392#define Siglongjmp(buf,retval) longjmp((buf),(retval))
2393#endif
44b94491 2394
06501368
MB
2395/* HAS_SOCKET:
2396 * This symbol, if defined, indicates that the BSD socket interface is
2397 * supported.
2398 */
2399/* HAS_SOCKETPAIR:
2400 * This symbol, if defined, indicates that the BSD socketpair() call is
2401 * supported.
2402 */
2403/* HAS_MSG_CTRUNC:
2404 * This symbol, if defined, indicates that the MSG_CTRUNC is supported.
2405 * Checking just with #ifdef might not be enough because this symbol
2406 * has been known to be an enum.
2407 */
2408/* HAS_MSG_DONTROUTE:
2409 * This symbol, if defined, indicates that the MSG_DONTROUTE is supported.
2410 * Checking just with #ifdef might not be enough because this symbol
2411 * has been known to be an enum.
2412 */
2413/* HAS_MSG_OOB:
2414 * This symbol, if defined, indicates that the MSG_OOB is supported.
2415 * Checking just with #ifdef might not be enough because this symbol
2416 * has been known to be an enum.
2417 */
2418/* HAS_MSG_PEEK:
2419 * This symbol, if defined, indicates that the MSG_PEEK is supported.
2420 * Checking just with #ifdef might not be enough because this symbol
2421 * has been known to be an enum.
2422 */
2423/* HAS_MSG_PROXY:
2424 * This symbol, if defined, indicates that the MSG_PROXY is supported.
2425 * Checking just with #ifdef might not be enough because this symbol
2426 * has been known to be an enum.
2427 */
2428/* HAS_SCM_RIGHTS:
2429 * This symbol, if defined, indicates that the SCM_RIGHTS is supported.
2430 * Checking just with #ifdef might not be enough because this symbol
2431 * has been known to be an enum.
2432 */
2433/* HAS_SOCKADDR_SA_LEN:
2434 * This symbol, if defined, indicates that the struct sockaddr
2435 * structure has a member called sa_len, indicating the length of
2436 * the structure.
2437 */
18126d98
MB
2438/* HAS_SOCKADDR_IN6:
2439 * This symbol, if defined, indicates the availability of
2440 * struct sockaddr_in6;
2441 */
06501368
MB
2442/* HAS_SIN6_SCOPE_ID:
2443 * This symbol, if defined, indicates that the struct sockaddr_in6
2444 * structure has a member called sin6_scope_id.
2445 */
122b9bf4
MB
2446/* HAS_IP_MREQ:
2447 * This symbol, if defined, indicates the availability of
2448 * struct ip_mreq;
2449 */
3e06601f
MB
2450/* HAS_IP_MREQ_SOURCE:
2451 * This symbol, if defined, indicates the availability of
2452 * struct ip_mreq_source;
2453 */
18126d98
MB
2454/* HAS_IPV6_MREQ:
2455 * This symbol, if defined, indicates the availability of
2456 * struct ipv6_mreq;
2457 */
3e06601f
MB
2458/* HAS_IPV6_MREQ_SOURCE:
2459 * This symbol, if defined, indicates the availability of
2460 * struct ipv6_mreq_source;
2461 */
06501368
MB
2462#$d_socket HAS_SOCKET /**/
2463#$d_sockpair HAS_SOCKETPAIR /**/
2464#$d_sockaddr_sa_len HAS_SOCKADDR_SA_LEN /**/
2465#$d_msg_ctrunc HAS_MSG_CTRUNC /**/
2466#$d_msg_dontroute HAS_MSG_DONTROUTE /**/
2467#$d_msg_oob HAS_MSG_OOB /**/
2468#$d_msg_peek HAS_MSG_PEEK /**/
2469#$d_msg_proxy HAS_MSG_PROXY /**/
2470#$d_scm_rights HAS_SCM_RIGHTS /**/
18126d98 2471#$d_sockaddr_in6 HAS_SOCKADDR_IN6 /**/
06501368 2472#$d_sin6_scope_id HAS_SIN6_SCOPE_ID /**/
122b9bf4 2473#$d_ip_mreq HAS_IP_MREQ /**/
3e06601f 2474#$d_ip_mreq_source HAS_IP_MREQ_SOURCE /**/
18126d98 2475#$d_ipv6_mreq HAS_IPV6_MREQ /**/
3e06601f 2476#$d_ipv6_mreq_source HAS_IPV6_MREQ_SOURCE /**/
06501368 2477
08c92000
MB
2478/* HAS_SRAND48_R:
2479 * This symbol, if defined, indicates that the srand48_r routine
2480 * is available to srand48 re-entrantly.
2481 */
2482/* SRAND48_R_PROTO:
2483 * This symbol encodes the prototype of srand48_r.
2484 * It is zero if d_srand48_r is undef, and one of the
2485 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_srand48_r
2486 * is defined.
2487 */
2488#$d_srand48_r HAS_SRAND48_R /**/
2489#define SRAND48_R_PROTO $srand48_r_proto /**/
2490
2491/* HAS_SRANDOM_R:
2492 * This symbol, if defined, indicates that the srandom_r routine
2493 * is available to srandom re-entrantly.
2494 */
2495/* SRANDOM_R_PROTO:
2496 * This symbol encodes the prototype of srandom_r.
2497 * It is zero if d_srandom_r is undef, and one of the
2498 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_srandom_r
2499 * is defined.
2500 */
2501#$d_srandom_r HAS_SRANDOM_R /**/
2502#define SRANDOM_R_PROTO $srandom_r_proto /**/
2503
06501368
MB
2504/* USE_STAT_BLOCKS:
2505 * This symbol is defined if this system has a stat structure declaring
2506 * st_blksize and st_blocks.
2507 */
2508#ifndef USE_STAT_BLOCKS
2509#$d_statblks USE_STAT_BLOCKS /**/
2510#endif
2511
2512/* HAS_STATIC_INLINE:
2513 * This symbol, if defined, indicates that the C compiler supports
2514 * C99-style static inline. That is, the function can't be called
2515 * from another translation unit.
2516 */
2517/* PERL_STATIC_INLINE:
2518 * This symbol gives the best-guess incantation to use for static
2519 * inline functions. If HAS_STATIC_INLINE is defined, this will
2520 * give C99-style inline. If HAS_STATIC_INLINE is not defined,
2521 * this will give a plain 'static'. It will always be defined
2522 * to something that gives static linkage.
2523 * Possibilities include
2524 * static inline (c99)
2525 * static __inline__ (gcc -ansi)
2526 * static __inline (MSVC)
2527 * static _inline (older MSVC)
2528 * static (c89 compilers)
2529 */
2530#$d_static_inline HAS_STATIC_INLINE /**/
2531#define PERL_STATIC_INLINE $perl_static_inline /**/
2532
b8677e3b
MB
2533/* USE_STDIO_PTR:
2534 * This symbol is defined if the _ptr and _cnt fields (or similar)
2535 * of the stdio FILE structure can be used to access the stdio buffer
2536 * for a file handle. If this is defined, then the FILE_ptr(fp)
2537 * and FILE_cnt(fp) macros will also be defined and should be used
2538 * to access these fields.
a33c94aa 2539 */
b8677e3b
MB
2540/* FILE_ptr:
2541 * This macro is used to access the _ptr field (or equivalent) of the
2542 * FILE structure pointed to by its argument. This macro will always be
2543 * defined if USE_STDIO_PTR is defined.
43dddb59 2544 */
b8677e3b
MB
2545/* STDIO_PTR_LVALUE:
2546 * This symbol is defined if the FILE_ptr macro can be used as an
2547 * lvalue.
08c92000 2548 */
b8677e3b
MB
2549/* FILE_cnt:
2550 * This macro is used to access the _cnt field (or equivalent) of the
2551 * FILE structure pointed to by its argument. This macro will always be
2552 * defined if USE_STDIO_PTR is defined.
08c92000 2553 */
b8677e3b
MB
2554/* STDIO_CNT_LVALUE:
2555 * This symbol is defined if the FILE_cnt macro can be used as an
2556 * lvalue.
08c92000 2557 */
b8677e3b
MB
2558/* STDIO_PTR_LVAL_SETS_CNT:
2559 * This symbol is defined if using the FILE_ptr macro as an lvalue
2560 * to increase the pointer by n has the side effect of decreasing the
2561 * value of File_cnt(fp) by n.
2562 */
2563/* STDIO_PTR_LVAL_NOCHANGE_CNT:
2564 * This symbol is defined if using the FILE_ptr macro as an lvalue
2565 * to increase the pointer by n leaves File_cnt(fp) unchanged.
2566 */
2567#$d_stdstdio USE_STDIO_PTR /**/
2568#ifdef USE_STDIO_PTR
2569#define FILE_ptr(fp) $stdio_ptr
2570#$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/
2571#define FILE_cnt(fp) $stdio_cnt
2572#$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/
2573#$d_stdio_ptr_lval_sets_cnt STDIO_PTR_LVAL_SETS_CNT /**/
2574#$d_stdio_ptr_lval_nochange_cnt STDIO_PTR_LVAL_NOCHANGE_CNT /**/
2575#endif
2576
2577/* USE_STDIO_BASE:
2578 * This symbol is defined if the _base field (or similar) of the
2579 * stdio FILE structure can be used to access the stdio buffer for
2580 * a file handle. If this is defined, then the FILE_base(fp) macro
2581 * will also be defined and should be used to access this field.
2582 * Also, the FILE_bufsiz(fp) macro will be defined and should be used
2583 * to determine the number of bytes in the buffer. USE_STDIO_BASE
2584 * will never be defined unless USE_STDIO_PTR is.
2585 */
2586/* FILE_base:
2587 * This macro is used to access the _base field (or equivalent) of the
2588 * FILE structure pointed to by its argument. This macro will always be
2589 * defined if USE_STDIO_BASE is defined.
2590 */
2591/* FILE_bufsiz:
2592 * This macro is used to determine the number of bytes in the I/O
2593 * buffer pointed to by _base field (or equivalent) of the FILE
2594 * structure pointed to its argument. This macro will always be defined
2595 * if USE_STDIO_BASE is defined.
2596 */
2597#$d_stdiobase USE_STDIO_BASE /**/
2598#ifdef USE_STDIO_BASE
2599#define FILE_base(fp) $stdio_base
2600#define FILE_bufsiz(fp) $stdio_bufsiz
2601#endif
08c92000 2602
06501368
MB
2603/* USE_STRUCT_COPY:
2604 * This symbol, if defined, indicates that this C compiler knows how
2605 * to copy structures. If undefined, you'll need to use a block copy
2606 * routine of some sort instead.
2607 */
2608#$d_strctcpy USE_STRUCT_COPY /**/
2609
2610/* HAS_STRERROR:
2611 * This symbol, if defined, indicates that the strerror routine is
2612 * available to translate error numbers to strings. See the writeup
2613 * of Strerror() in this file before you try to define your own.
2614 */
2615/* HAS_SYS_ERRLIST:
2616 * This symbol, if defined, indicates that the sys_errlist array is
2617 * available to translate error numbers to strings. The extern int
2618 * sys_nerr gives the size of that table.
2619 */
2620/* Strerror:
2621 * This preprocessor symbol is defined as a macro if strerror() is
2622 * not available to translate error numbers to strings but sys_errlist[]
2623 * array is there.
2624 */
2625#$d_strerror HAS_STRERROR /**/
2626#$d_syserrlst HAS_SYS_ERRLIST /**/
2627#define Strerror(e) $d_strerrm
2628
08c92000
MB
2629/* HAS_STRERROR_R:
2630 * This symbol, if defined, indicates that the strerror_r routine
2631 * is available to strerror re-entrantly.
2632 */
2633/* STRERROR_R_PROTO:
2634 * This symbol encodes the prototype of strerror_r.
2635 * It is zero if d_strerror_r is undef, and one of the
2636 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_strerror_r
2637 * is defined.
2638 */
2639#$d_strerror_r HAS_STRERROR_R /**/
2640#define STRERROR_R_PROTO $strerror_r_proto /**/
2641
06501368
MB
2642/* HAS_STRTOUL:
2643 * This symbol, if defined, indicates that the strtoul routine is
2644 * available to provide conversion of strings to unsigned long.
2645 */
2646#$d_strtoul HAS_STRTOUL /**/
2647
2648/* HAS_TIME:
2649 * This symbol, if defined, indicates that the time() routine exists.
2650 */
2651/* Time_t:
2652 * This symbol holds the type returned by time(). It can be long,
2653 * or time_t on BSD sites (in which case <sys/types.h> should be
2654 * included).
2655 */
2656#$d_time HAS_TIME /**/
2657#define Time_t $timetype /* Time type */
2658
2659/* HAS_TIMES:
2660 * This symbol, if defined, indicates that the times() routine exists.
2661 * Note that this became obsolete on some systems (SUNOS), which now
2662 * use getrusage(). It may be necessary to include <sys/times.h>.
2663 */
2664#$d_times HAS_TIMES /**/
2665
2666/* HAS_TMPNAM_R:
08c92000
MB
2667 * This symbol, if defined, indicates that the tmpnam_r routine
2668 * is available to tmpnam re-entrantly.
2669 */
2670/* TMPNAM_R_PROTO:
2671 * This symbol encodes the prototype of tmpnam_r.
2672 * It is zero if d_tmpnam_r is undef, and one of the
2673 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_tmpnam_r
2674 * is defined.
2675 */
2676#$d_tmpnam_r HAS_TMPNAM_R /**/
2677#define TMPNAM_R_PROTO $tmpnam_r_proto /**/
2678
eaf812ae
MB
2679/* HAS_TTYNAME_R:
2680 * This symbol, if defined, indicates that the ttyname_r routine
2681 * is available to ttyname re-entrantly.
2682 */
2683/* TTYNAME_R_PROTO:
2684 * This symbol encodes the prototype of ttyname_r.
2685 * It is zero if d_ttyname_r is undef, and one of the
2686 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_ttyname_r
2687 * is defined.
2688 */
2689#$d_ttyname_r HAS_TTYNAME_R /**/
2690#define TTYNAME_R_PROTO $ttyname_r_proto /**/
2691
06501368
MB
2692/* HAS_UNION_SEMUN:
2693 * This symbol, if defined, indicates that the union semun is
2694 * defined by including <sys/sem.h>. If not, the user code
2695 * probably needs to define it as:
2696 * union semun {
2697 * int val;
2698 * struct semid_ds *buf;
2699 * unsigned short *array;
2700 * }
2701 */
2702/* USE_SEMCTL_SEMUN:
2703 * This symbol, if defined, indicates that union semun is
2704 * used for semctl IPC_STAT.
2705 */
2706/* USE_SEMCTL_SEMID_DS:
2707 * This symbol, if defined, indicates that struct semid_ds * is
2708 * used for semctl IPC_STAT.
2709 */
2710#$d_union_semun HAS_UNION_SEMUN /**/
2711#$d_semctl_semun USE_SEMCTL_SEMUN /**/
2712#$d_semctl_semid_ds USE_SEMCTL_SEMID_DS /**/
2713
2714/* HAS_VFORK:
2715 * This symbol, if defined, indicates that vfork() exists.
2716 */
2717#$d_vfork HAS_VFORK /**/
2718
2719/* HAS_PSEUDOFORK:
2720 * This symbol, if defined, indicates that an emulation of the
2721 * fork routine is available.
2722 */
2723#$d_pseudofork HAS_PSEUDOFORK /**/
2724
2725/* Signal_t:
2726 * This symbol's value is either "void" or "int", corresponding to the
2727 * appropriate return type of a signal handler. Thus, you can declare
2728 * a signal handler using "Signal_t (*handler)()", and define the
2729 * handler using "Signal_t handler(sig)".
2730 */
2731#define Signal_t $signal_t /* Signal handler's return type */
2732
2733/* HASVOLATILE:
2734 * This symbol, if defined, indicates that this C compiler knows about
2735 * the volatile declaration.
2736 */
2737#$d_volatile HASVOLATILE /**/
2738#ifndef HASVOLATILE
2739#define volatile
2740#endif
2741
b8677e3b
MB
2742/* HAS_VPRINTF:
2743 * This symbol, if defined, indicates that the vprintf routine is available
2744 * to printf with a pointer to an argument list. If unavailable, you
2745 * may need to write your own, probably in terms of _doprnt().
c5f05a91 2746 */
b8677e3b
MB
2747/* USE_CHAR_VSPRINTF:
2748 * This symbol is defined if this system has vsprintf() returning type
2749 * (char*). The trend seems to be to declare it as "int vsprintf()". It
2750 * is up to the package author to declare vsprintf correctly based on the
2751 * symbol.
233e16ce 2752 */
b8677e3b
MB
2753#$d_vprintf HAS_VPRINTF /**/
2754#$d_charvspr USE_CHAR_VSPRINTF /**/
233e16ce 2755
b8677e3b
MB
2756/* DOUBLESIZE:
2757 * This symbol contains the size of a double, so that the C preprocessor
2758 * can make decisions based on it.
a3540c92 2759 */
b8677e3b 2760#define DOUBLESIZE $doublesize /**/
a3540c92 2761
bade9271
JH
2762/* DOUBLEKIND:
2763 * DOUBLEKIND will be one of
2764 * DOUBLE_IS_IEEE_754_32_BIT_LITTLE_ENDIAN
2765 * DOUBLE_IS_IEEE_754_32_BIT_BIG_ENDIAN
2766 * DOUBLE_IS_IEEE_754_64_BIT_LITTLE_ENDIAN
2767 * DOUBLE_IS_IEEE_754_64_BIT_BIG_ENDIAN
2768 * DOUBLE_IS_IEEE_754_128_BIT_LITTLE_ENDIAN
2769 * DOUBLE_IS_IEEE_754_128_BIT_BIG_ENDIAN
f8d924ae
JH
2770 * DOUBLE_IS_IEEE_754_64_BIT_MIXED_ENDIAN_LE_BE
2771 * DOUBLE_IS_IEEE_754_64_BIT_MIXED_ENDIAN_BE_LE
bade9271
JH
2772 * DOUBLE_IS_UNKNOWN_FORMAT
2773 */
2774#define DOUBLEKIND $doublekind /**/
2775#define DOUBLE_IS_IEEE_754_32_BIT_LITTLE_ENDIAN 1
2776#define DOUBLE_IS_IEEE_754_32_BIT_BIG_ENDIAN 2
2777#define DOUBLE_IS_IEEE_754_64_BIT_LITTLE_ENDIAN 3
2778#define DOUBLE_IS_IEEE_754_64_BIT_BIG_ENDIAN 4
2779#define DOUBLE_IS_IEEE_754_128_BIT_LITTLE_ENDIAN 5
2780#define DOUBLE_IS_IEEE_754_128_BIT_BIG_ENDIAN 6
f8d924ae
JH
2781#define DOUBLE_IS_IEEE_754_64_BIT_MIXED_ENDIAN_LE_BE 7
2782#define DOUBLE_IS_IEEE_754_64_BIT_MIXED_ENDIAN_BE_LE 8
bade9271
JH
2783#define DOUBLE_IS_UNKNOWN_FORMAT -1
2784
06501368 2785/* EBCDIC:
1332606d 2786 * This symbol, if defined, indicates that this system uses
06501368
MB
2787 * EBCDIC encoding.
2788 */
2789#$ebcdic EBCDIC /**/
2790
2791/* Fpos_t:
2792 * This symbol holds the type used to declare file positions in libc.
2793 * It can be fpos_t, long, uint, etc... It may be necessary to include
2794 * <sys/types.h> to get any typedef'ed information.
2795 */
2796#define Fpos_t $fpostype /* File position type */
2797
2798/* Gid_t_f:
2799 * This symbol defines the format string used for printing a Gid_t.
2800 */
2801#define Gid_t_f $gidformat /**/
2802
2803/* Gid_t_sign:
cfc2543a 2804 * This symbol holds the signedness of a Gid_t.
06501368
MB
2805 * 1 for unsigned, -1 for signed.
2806 */
2807#define Gid_t_sign $gidsign /* GID sign */
2808
2809/* Gid_t_size:
2810 * This symbol holds the size of a Gid_t in bytes.
2811 */
2812#define Gid_t_size $gidsize /* GID size */
2813
2814/* Gid_t:
2815 * This symbol holds the return type of getgid() and the type of
2816 * argument to setrgid() and related functions. Typically,
2817 * it is the type of group ids in the kernel. It can be int, ushort,
2818 * gid_t, etc... It may be necessary to include <sys/types.h> to get
2819 * any typedef'ed information.
2820 */
2821#define Gid_t $gidtype /* Type for getgid(), etc... */
2822
2823/* I_DIRENT:
2824 * This symbol, if defined, indicates to the C program that it should
2825 * include <dirent.h>. Using this symbol also triggers the definition
2826 * of the Direntry_t define which ends up being 'struct dirent' or
2827 * 'struct direct' depending on the availability of <dirent.h>.
2828 */
2829/* DIRNAMLEN:
2830 * This symbol, if defined, indicates to the C program that the length
2831 * of directory entry names is provided by a d_namlen field. Otherwise
2832 * you need to do strlen() on the d_name field.
2833 */
2834/* Direntry_t:
2835 * This symbol is set to 'struct direct' or 'struct dirent' depending on
2836 * whether dirent is available or not. You should use this pseudo type to
2837 * portably declare your directory entries.
2838 */
2839#$i_dirent I_DIRENT /**/
2840#$d_dirnamlen DIRNAMLEN /**/
2841#define Direntry_t $direntrytype
2842
0e0c5f82
MB
2843/* I_EXECINFO:
2844 * This symbol, if defined, indicates to the C program that it should
2845 * include <execinfo.h> for backtrace() support.
2846 */
2847#$i_execinfo I_EXECINFO /**/
2848
06501368
MB
2849/* I_GRP:
2850 * This symbol, if defined, indicates to the C program that it should
2851 * include <grp.h>.
2852 */
2853/* GRPASSWD:
2854 * This symbol, if defined, indicates to the C program that struct group
2855 * in <grp.h> contains gr_passwd.
2856 */
2857#$i_grp I_GRP /**/
2858#$d_grpasswd GRPASSWD /**/
2859
b8677e3b
MB
2860/* I_MACH_CTHREADS:
2861 * This symbol, if defined, indicates to the C program that it should
2862 * include <mach/cthreads.h>.
43dddb59 2863 */
b8677e3b 2864#$i_machcthr I_MACH_CTHREADS /**/
43dddb59 2865
06501368
MB
2866/* I_NDBM:
2867 * This symbol, if defined, indicates that <ndbm.h> exists and should
2868 * be included.
2869 */
2870/* I_GDBMNDBM:
2871 * This symbol, if defined, indicates that <gdbm/ndbm.h> exists and should
2872 * be included. This was the location of the ndbm.h compatibility file
2873 * in RedHat 7.1.
2874 */
2875/* I_GDBM_NDBM:
2876 * This symbol, if defined, indicates that <gdbm-ndbm.h> exists and should
2877 * be included. This is the location of the ndbm.h compatibility file
2878 * in Debian 4.0.
2879 */
2880/* NDBM_H_USES_PROTOTYPES:
2881 * This symbol, if defined, indicates that <ndbm.h> uses real ANSI C
2882 * prototypes instead of K&R style function declarations without any
2883 * parameter information. While ANSI C prototypes are supported in C++,
2884 * K&R style function declarations will yield errors.
2885 */
2886/* GDBMNDBM_H_USES_PROTOTYPES:
2887 * This symbol, if defined, indicates that <gdbm/ndbm.h> uses real ANSI C
2888 * prototypes instead of K&R style function declarations without any
2889 * parameter information. While ANSI C prototypes are supported in C++,
2890 * K&R style function declarations will yield errors.
2891 */
2892/* GDBM_NDBM_H_USES_PROTOTYPES:
2893 * This symbol, if defined, indicates that <gdbm-ndbm.h> uses real ANSI C
2894 * prototypes instead of K&R style function declarations without any
2895 * parameter information. While ANSI C prototypes are supported in C++,
2896 * K&R style function declarations will yield errors.
2897 */
2898#$i_ndbm I_NDBM /**/
2899#$i_gdbmndbm I_GDBMNDBM /**/
2900#$i_gdbm_ndbm I_GDBM_NDBM /**/
2901#$d_ndbm_h_uses_prototypes NDBM_H_USES_PROTOTYPES /**/
2902#$d_gdbmndbm_h_uses_prototypes GDBMNDBM_H_USES_PROTOTYPES /**/
2903#$d_gdbm_ndbm_h_uses_prototypes GDBM_NDBM_H_USES_PROTOTYPES /**/
2904
2905/* I_NETDB:
2906 * This symbol, if defined, indicates that <netdb.h> exists and
2907 * should be included.
2908 */
2909#$i_netdb I_NETDB /**/
2910
2911/* I_NET_ERRNO:
2912 * This symbol, if defined, indicates that <net/errno.h> exists and
2913 * should be included.
2914 */
2915#$i_neterrno I_NET_ERRNO /**/
2916
b8677e3b
MB
2917/* I_PTHREAD:
2918 * This symbol, if defined, indicates to the C program that it should
2919 * include <pthread.h>.
08c92000 2920 */
b8677e3b 2921#$i_pthread I_PTHREAD /**/
08c92000 2922
06501368
MB
2923/* I_PWD:
2924 * This symbol, if defined, indicates to the C program that it should
2925 * include <pwd.h>.
2926 */
2927/* PWQUOTA:
2928 * This symbol, if defined, indicates to the C program that struct passwd
2929 * contains pw_quota.
2930 */
2931/* PWAGE:
2932 * This symbol, if defined, indicates to the C program that struct passwd
2933 * contains pw_age.
2934 */
2935/* PWCHANGE:
2936 * This symbol, if defined, indicates to the C program that struct passwd
2937 * contains pw_change.
2938 */
2939/* PWCLASS:
2940 * This symbol, if defined, indicates to the C program that struct passwd
2941 * contains pw_class.
2942 */
2943/* PWEXPIRE:
2944 * This symbol, if defined, indicates to the C program that struct passwd
2945 * contains pw_expire.
2946 */
2947/* PWCOMMENT:
2948 * This symbol, if defined, indicates to the C program that struct passwd
2949 * contains pw_comment.
2950 */
2951/* PWGECOS:
2952 * This symbol, if defined, indicates to the C program that struct passwd
2953 * contains pw_gecos.
2954 */
2955/* PWPASSWD:
2956 * This symbol, if defined, indicates to the C program that struct passwd
2957 * contains pw_passwd.
2958 */
2959#$i_pwd I_PWD /**/
2960#$d_pwquota PWQUOTA /**/
2961#$d_pwage PWAGE /**/
2962#$d_pwchange PWCHANGE /**/
2963#$d_pwclass PWCLASS /**/
2964#$d_pwexpire PWEXPIRE /**/
2965#$d_pwcomment PWCOMMENT /**/
2966#$d_pwgecos PWGECOS /**/
2967#$d_pwpasswd PWPASSWD /**/
2968
4e5044f0
JH
2969/* I_QUADMATH:
2970 * This symbol, if defined, indicates to the C program that it should
2971 * include <quadmath.h>.
2972 */
2973#$i_quadmath I_QUADMATH /**/
2974
b8677e3b
MB
2975/* I_SYS_ACCESS:
2976 * This symbol, if defined, indicates to the C program that it should
2977 * include <sys/access.h>.
08c92000 2978 */
b8677e3b 2979#$i_sysaccess I_SYS_ACCESS /**/
08c92000 2980
b8677e3b
MB
2981/* I_SYS_SECURITY:
2982 * This symbol, if defined, indicates to the C program that it should
2983 * include <sys/security.h>.
08c92000 2984 */
b8677e3b 2985#$i_syssecrt I_SYS_SECURITY /**/
08c92000 2986
06501368
MB
2987/* I_SYSUIO:
2988 * This symbol, if defined, indicates that <sys/uio.h> exists and
2989 * should be included.
2990 */
2991#$i_sysuio I_SYSUIO /**/
2992
0e0c5f82
MB
2993/* I_TERMIO:
2994 * This symbol, if defined, indicates that the program should include
2995 * <termio.h> rather than <sgtty.h>. There are also differences in
2996 * the ioctl() calls that depend on the value of this symbol.
2997 */
2998/* I_TERMIOS:
2999 * This symbol, if defined, indicates that the program should include
3000 * the POSIX termios.h rather than sgtty.h or termio.h.
3001 * There are also differences in the ioctl() calls that depend on the
3002 * value of this symbol.
3003 */
3004/* I_SGTTY:
3005 * This symbol, if defined, indicates that the program should include
3006 * <sgtty.h> rather than <termio.h>. There are also differences in
3007 * the ioctl() calls that depend on the value of this symbol.
3008 */
3009#$i_termio I_TERMIO /**/
3010#$i_termios I_TERMIOS /**/
3011#$i_sgtty I_SGTTY /**/
3012
b8677e3b
MB
3013/* I_TIME:
3014 * This symbol, if defined, indicates to the C program that it should
3015 * include <time.h>.
08c92000 3016 */
b8677e3b
MB
3017/* I_SYS_TIME:
3018 * This symbol, if defined, indicates to the C program that it should
3019 * include <sys/time.h>.
08c92000 3020 */
b8677e3b 3021/* I_SYS_TIME_KERNEL:
43dddb59 3022 * This symbol, if defined, indicates to the C program that it should
b8677e3b 3023 * include <sys/time.h> with KERNEL defined.
43dddb59 3024 */
b8677e3b
MB
3025/* HAS_TM_TM_ZONE:
3026 * This symbol, if defined, indicates to the C program that
3027 * the struct tm has a tm_zone field.
43dddb59 3028 */
b8677e3b
MB
3029/* HAS_TM_TM_GMTOFF:
3030 * This symbol, if defined, indicates to the C program that
3031 * the struct tm has a tm_gmtoff field.
43dddb59 3032 */
b8677e3b
MB
3033#$i_time I_TIME /**/
3034#$i_systime I_SYS_TIME /**/
3035#$i_systimek I_SYS_TIME_KERNEL /**/
3036#$d_tm_tm_zone HAS_TM_TM_ZONE /**/
3037#$d_tm_tm_gmtoff HAS_TM_TM_GMTOFF /**/
43dddb59 3038
06501368
MB
3039/* I_STDARG:
3040 * This symbol, if defined, indicates that <stdarg.h> exists and should
3041 * be included.
3042 */
3043/* I_VARARGS:
3044 * This symbol, if defined, indicates to the C program that it should
3045 * include <varargs.h>.
3046 */
3047#$i_stdarg I_STDARG /**/
3048#$i_varargs I_VARARGS /**/
3049
3050/* PERL_INC_VERSION_LIST:
3051 * This variable specifies the list of subdirectories in over
3052 * which perl.c:incpush() and lib/lib.pm will automatically
3053 * search when adding directories to @INC, in a format suitable
3054 * for a C initialization string. See the inc_version_list entry
3055 * in Porting/Glossary for more details.
08c92000 3056 */
b8677e3b 3057#$d_inc_version_list PERL_INC_VERSION_LIST $inc_version_list_init /**/
08c92000 3058
b8677e3b
MB
3059/* INSTALL_USR_BIN_PERL:
3060 * This symbol, if defined, indicates that Perl is to be installed
3061 * also as /usr/bin/perl.
08c92000 3062 */
b8677e3b 3063#$installusrbinperl INSTALL_USR_BIN_PERL /**/
08c92000 3064
06501368
MB
3065/* Off_t:
3066 * This symbol holds the type used to declare offsets in the kernel.
3067 * It can be int, long, off_t, etc... It may be necessary to include
3068 * <sys/types.h> to get any typedef'ed information.
3069 */
3070/* LSEEKSIZE:
3071 * This symbol holds the number of bytes used by the Off_t.
3072 */
3073/* Off_t_size:
3074 * This symbol holds the number of bytes used by the Off_t.
3075 */
3076#define Off_t $lseektype /* <offset> type */
3077#define LSEEKSIZE $lseeksize /* <offset> size */
3078#define Off_t_size $lseeksize /* <offset> size */
3079
3080/* Free_t:
3081 * This variable contains the return type of free(). It is usually
3082 * void, but occasionally int.
3083 */
3084/* Malloc_t:
3085 * This symbol is the type of pointer returned by malloc and realloc.
3086 */
3087#define Malloc_t $malloctype /**/
3088#define Free_t $freetype /**/
3089
3090/* PERL_MALLOC_WRAP:
3091 * This symbol, if defined, indicates that we'd like malloc wrap checks.
3092 */
3093#$usemallocwrap PERL_MALLOC_WRAP /**/
3094
3095/* MYMALLOC:
3096 * This symbol, if defined, indicates that we're using our own malloc.
3097 */
3098#$d_mymalloc MYMALLOC /**/
3099
3100/* Mode_t:
3101 * This symbol holds the type used to declare file modes
3102 * for systems calls. It is usually mode_t, but may be
3103 * int or unsigned short. It may be necessary to include <sys/types.h>
3104 * to get any typedef'ed information.
3105 */
3106#define Mode_t $modetype /* file mode parameter for system calls */
3107
b8677e3b
MB
3108/* VAL_O_NONBLOCK:
3109 * This symbol is to be used during open() or fcntl(F_SETFL) to turn on
3110 * non-blocking I/O for the file descriptor. Note that there is no way
3111 * back, i.e. you cannot turn it blocking again this way. If you wish to
3112 * alternatively switch between blocking and non-blocking, use the
3113 * ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
eaf812ae 3114 */
b8677e3b
MB
3115/* VAL_EAGAIN:
3116 * This symbol holds the errno error code set by read() when no data was
3117 * present on the non-blocking file descriptor.
1d8eaf8c 3118 */
b8677e3b
MB
3119/* RD_NODATA:
3120 * This symbol holds the return code from read() when no data is present
3121 * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
3122 * not defined, then you can't distinguish between no data and EOF by
3123 * issuing a read(). You'll have to find another way to tell for sure!
e74475c7 3124 */
b8677e3b
MB
3125/* EOF_NONBLOCK:
3126 * This symbol, if defined, indicates to the C program that a read() on
3127 * a non-blocking file descriptor will return 0 on EOF, and not the value
3128 * held in RD_NODATA (-1 usually, in that case!).
e74475c7 3129 */
b8677e3b
MB
3130#define VAL_O_NONBLOCK $o_nonblock
3131#define VAL_EAGAIN $eagain
3132#define RD_NODATA $rd_nodata
3133#$d_eofnblk EOF_NONBLOCK
eaf812ae 3134
06501368
MB
3135/* Netdb_host_t:
3136 * This symbol holds the type used for the 1st argument
3137 * to gethostbyaddr().
3138 */
3139/* Netdb_hlen_t:
3140 * This symbol holds the type used for the 2nd argument
3141 * to gethostbyaddr().
3142 */
3143/* Netdb_name_t:
3144 * This symbol holds the type used for the argument to
3145 * gethostbyname().
3146 */
3147/* Netdb_net_t:
3148 * This symbol holds the type used for the 1st argument to
3149 * getnetbyaddr().
3150 */
3151#define Netdb_host_t $netdb_host_type /**/
3152#define Netdb_hlen_t $netdb_hlen_type /**/
3153#define Netdb_name_t $netdb_name_type /**/
3154#define Netdb_net_t $netdb_net_type /**/
3155
b8677e3b
MB
3156/* PERL_OTHERLIBDIRS:
3157 * This variable contains a colon-separated set of paths for the perl
3158 * binary to search for additional library files or modules.
3159 * These directories will be tacked to the end of @INC.
3160 * Perl will automatically search below each path for version-
3161 * and architecture-specific directories. See PERL_INC_VERSION_LIST
3162 * for more details.
08c92000 3163 */
b8677e3b 3164#$d_perl_otherlibdirs PERL_OTHERLIBDIRS "$otherlibdirs" /**/
08c92000 3165
06501368
MB
3166/* Pid_t:
3167 * This symbol holds the type used to declare process ids in the kernel.
3168 * It can be int, uint, pid_t, etc... It may be necessary to include
3169 * <sys/types.h> to get any typedef'ed information.
3170 */
3171#define Pid_t $pidtype /* PID type */
3172
b8677e3b
MB
3173/* PRIVLIB:
3174 * This symbol contains the name of the private library for this package.
3175 * The library is private in the sense that it needn't be in anyone's
3176 * execution path, but it should be accessible by the world. The program
3177 * should be prepared to do ~ expansion.
c0bacbef 3178 */
b8677e3b
MB
3179/* PRIVLIB_EXP:
3180 * This symbol contains the ~name expanded version of PRIVLIB, to be used
3181 * in programs that are not prepared to deal with ~ expansion at run-time.
3182 */
3183#define PRIVLIB "$privlib" /**/
3184#define PRIVLIB_EXP "$privlibexp" /**/
c0bacbef 3185
06501368
MB
3186/* CAN_PROTOTYPE:
3187 * If defined, this macro indicates that the C compiler can handle
3188 * function prototypes.
3189 */
3190/* _:
3191 * This macro is used to declare function parameters for folks who want
3192 * to make declarations with prototypes using a different style than
3193 * the above macros. Use double parentheses. For example:
3194 *
3195 * int main _((int argc, char *argv[]));
3196 */
3197#$prototype CAN_PROTOTYPE /**/
3198#ifdef CAN_PROTOTYPE
3199#define _(args) args
3200#else
3201#define _(args) ()
3202#endif
3203
b8677e3b
MB
3204/* PTRSIZE:
3205 * This symbol contains the size of a pointer, so that the C preprocessor
3206 * can make decisions based on it. It will be sizeof(void *) if
3207 * the compiler supports (void *); otherwise it will be
3208 * sizeof(char *).
08c92000 3209 */
b8677e3b 3210#define PTRSIZE $ptrsize /**/
08c92000 3211
06501368
MB
3212/* HAS_QUAD:
3213 * This symbol, if defined, tells that there's a 64-bit integer type,
3214 * Quad_t, and its unsigned counterpart, Uquad_t. QUADKIND will be one
3215 * of QUAD_IS_INT, QUAD_IS_LONG, QUAD_IS_LONG_LONG, QUAD_IS_INT64_T,
3216 * or QUAD_IS___INT64.
3217 */
3218#$d_quad HAS_QUAD /**/
3219#ifdef HAS_QUAD
3220# define Quad_t $quadtype /**/
3221# define Uquad_t $uquadtype /**/
3222# define QUADKIND $quadkind /**/
3223# define QUAD_IS_INT 1
3224# define QUAD_IS_LONG 2
3225# define QUAD_IS_LONG_LONG 3
3226# define QUAD_IS_INT64_T 4
3227# define QUAD_IS___INT64 5
3228#endif
3229
b8677e3b
MB
3230/* Drand01:
3231 * This macro is to be used to generate uniformly distributed
3232 * random numbers over the range [0., 1.[. You may have to supply
3233 * an 'extern double drand48();' in your program since SunOS 4.1.3
3234 * doesn't provide you with anything relevant in its headers.
3235 * See HAS_DRAND48_PROTO.
a33c94aa 3236 */
b8677e3b
MB
3237/* Rand_seed_t:
3238 * This symbol defines the type of the argument of the
3239 * random seed function.
49dabb45 3240 */
b8677e3b
MB
3241/* seedDrand01:
3242 * This symbol defines the macro to be used in seeding the
3243 * random number generator (see Drand01).
3813c136 3244 */
b8677e3b
MB
3245/* RANDBITS:
3246 * This symbol indicates how many bits are produced by the
3247 * function used to generate normalized random numbers.
3248 * Values include 15, 16, 31, and 48.
1acc7ade 3249 */
a05353bf
MB
3250#define Drand01() $drand01 /**/
3251#define Rand_seed_t $randseedtype /**/
3252#define seedDrand01(x) $seedfunc((Rand_seed_t)x) /**/
3253#define RANDBITS $randbits /**/
b8677e3b 3254
06501368
MB
3255/* Select_fd_set_t:
3256 * This symbol holds the type used for the 2nd, 3rd, and 4th
3257 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
3258 * is defined, and 'int *' otherwise. This is only useful if you
3259 * have select(), of course.
3260 */
3261#define Select_fd_set_t $selecttype /**/
3262
3263/* SH_PATH:
3264 * This symbol contains the full pathname to the shell used on this
3265 * on this system to execute Bourne shell scripts. Usually, this will be
3266 * /bin/sh, though it's possible that some systems will have /bin/ksh,
3267 * /bin/pdksh, /bin/ash, /bin/bash, or even something such as
3268 * D:/bin/sh.exe.
3269 */
0b0a0724 3270#define SH_PATH "$targetsh" /**/
06501368
MB
3271
3272/* SIG_NAME:
3273 * This symbol contains a list of signal names in order of
3274 * signal number. This is intended
3275 * to be used as a static array initialization, like this:
3276 * char *sig_name[] = { SIG_NAME };
3277 * The signals in the list are separated with commas, and each signal
3278 * is surrounded by double quotes. There is no leading SIG in the signal
3279 * name, i.e. SIGQUIT is known as "QUIT".
3280 * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
3281 * etc., where nn is the actual signal number (e.g. NUM37).
3282 * The signal number for sig_name[i] is stored in sig_num[i].
3283 * The last element is 0 to terminate the list with a NULL. This
3284 * corresponds to the 0 at the end of the sig_name_init list.
3285 * Note that this variable is initialized from the sig_name_init,
3286 * not from sig_name (which is unused).
3287 */
3288/* SIG_NUM:
3289 * This symbol contains a list of signal numbers, in the same order as the
3290 * SIG_NAME list. It is suitable for static array initialization, as in:
3291 * int sig_num[] = { SIG_NUM };
3292 * The signals in the list are separated with commas, and the indices
3293 * within that list and the SIG_NAME list match, so it's easy to compute
3294 * the signal name from a number or vice versa at the price of a small
3295 * dynamic linear lookup.
3296 * Duplicates are allowed, but are moved to the end of the list.
3297 * The signal number corresponding to sig_name[i] is sig_number[i].
3298 * if (i < NSIG) then sig_number[i] == i.
3299 * The last element is 0, corresponding to the 0 at the end of
3300 * the sig_name_init list.
3301 * Note that this variable is initialized from the sig_num_init,
3302 * not from sig_num (which is unused).
3303 */
3304/* SIG_SIZE:
3305 * This variable contains the number of elements of the SIG_NAME
3306 * and SIG_NUM arrays, excluding the final NULL entry.
3307 */
3308#define SIG_NAME $sig_name_init /**/
3309#define SIG_NUM $sig_num_init /**/
3310#define SIG_SIZE $sig_size /**/
3311
b8677e3b
MB
3312/* SITEARCH:
3313 * This symbol contains the name of the private library for this package.
3314 * The library is private in the sense that it needn't be in anyone's
3315 * execution path, but it should be accessible by the world. The program
3316 * should be prepared to do ~ expansion.
3317 * The standard distribution will put nothing in this directory.
3318 * After perl has been installed, users may install their own local
3319 * architecture-dependent modules in this directory with
3320 * MakeMaker Makefile.PL
3321 * or equivalent. See INSTALL for details.
a33c94aa 3322 */
b8677e3b
MB
3323/* SITEARCH_EXP:
3324 * This symbol contains the ~name expanded version of SITEARCH, to be used
3325 * in programs that are not prepared to deal with ~ expansion at run-time.
10bc17b6 3326 */
b8677e3b
MB
3327#$d_sitearch SITEARCH "$sitearch" /**/
3328#$d_sitearch SITEARCH_EXP "$sitearchexp" /**/
3329
3330/* SITELIB:
3331 * This symbol contains the name of the private library for this package.
3332 * The library is private in the sense that it needn't be in anyone's
3333 * execution path, but it should be accessible by the world. The program
3334 * should be prepared to do ~ expansion.
3335 * The standard distribution will put nothing in this directory.
3336 * After perl has been installed, users may install their own local
3337 * architecture-independent modules in this directory with
3338 * MakeMaker Makefile.PL
3339 * or equivalent. See INSTALL for details.
10bc17b6 3340 */
b8677e3b
MB
3341/* SITELIB_EXP:
3342 * This symbol contains the ~name expanded version of SITELIB, to be used
3343 * in programs that are not prepared to deal with ~ expansion at run-time.
10bc17b6 3344 */
b8677e3b
MB
3345/* SITELIB_STEM:
3346 * This define is SITELIB_EXP with any trailing version-specific component
3347 * removed. The elements in inc_version_list (inc_version_list.U) can
3348 * be tacked onto this variable to generate a list of directories to search.
10bc17b6 3349 */
b8677e3b
MB
3350#define SITELIB "$sitelib" /**/
3351#define SITELIB_EXP "$sitelibexp" /**/
3352#define SITELIB_STEM "$sitelib_stem" /**/
10bc17b6 3353
06501368
MB
3354/* Size_t_size:
3355 * This symbol holds the size of a Size_t in bytes.
3356 */
3357#define Size_t_size $sizesize /**/
3358
3359/* Size_t:
3360 * This symbol holds the type used to declare length parameters
3361 * for string functions. It is usually size_t, but may be
3362 * unsigned long, int, etc. It may be necessary to include
3363 * <sys/types.h> to get any typedef'ed information.
3364 */
3365#define Size_t $sizetype /* length parameter for string functions */
3366
3367/* Sock_size_t:
3368 * This symbol holds the type used for the size argument of
3369 * various socket calls (just the base type, not the pointer-to).
3370 */
3371#define Sock_size_t $socksizetype /**/
3372
b8677e3b
MB
3373/* SSize_t:
3374 * This symbol holds the type used by functions that return
3375 * a count of bytes or an error condition. It must be a signed type.
3376 * It is usually ssize_t, but may be long or int, etc.
3377 * It may be necessary to include <sys/types.h> or <unistd.h>
3378 * to get any typedef'ed information.
3379 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
10bc17b6 3380 */
b8677e3b 3381#define SSize_t $ssizetype /* signed count of bytes */
08c92000 3382
06501368
MB
3383/* STDCHAR:
3384 * This symbol is defined to be the type of char used in stdio.h.
3385 * It has the values "unsigned char" or "char".
eaf812ae 3386 */
06501368
MB
3387#define STDCHAR $stdchar /**/
3388
3389/* Uid_t_f:
3390 * This symbol defines the format string used for printing a Uid_t.
eaf812ae 3391 */
06501368 3392#define Uid_t_f $uidformat /**/
eaf812ae 3393
06501368 3394/* Uid_t_sign:
cfc2543a 3395 * This symbol holds the signedness of a Uid_t.
06501368 3396 * 1 for unsigned, -1 for signed.
36adc09b 3397 */
06501368
MB
3398#define Uid_t_sign $uidsign /* UID sign */
3399
3400/* Uid_t_size:
3401 * This symbol holds the size of a Uid_t in bytes.
a33c94aa 3402 */
06501368 3403#define Uid_t_size $uidsize /* UID size */
a33c94aa 3404
06501368
MB
3405/* Uid_t:
3406 * This symbol holds the type used to declare user ids in the kernel.
3407 * It can be int, ushort, uid_t, etc... It may be necessary to include
3408 * <sys/types.h> to get any typedef'ed information.
15b61c98 3409 */
06501368 3410#define Uid_t $uidtype /* UID type */
b8677e3b 3411
06501368
MB
3412/* USE_ITHREADS:
3413 * This symbol, if defined, indicates that Perl should be built to
3414 * use the interpreter-based threading implementation.
b8677e3b 3415 */
06501368
MB
3416/* USE_5005THREADS:
3417 * This symbol, if defined, indicates that Perl should be built to
3418 * use the 5.005-based threading implementation.
3419 * Only valid up to 5.8.x.
ed140128 3420 */
06501368
MB
3421/* OLD_PTHREADS_API:
3422 * This symbol, if defined, indicates that Perl should
3423 * be built to use the old draft POSIX threads API.
ed140128 3424 */
06501368
MB
3425/* USE_REENTRANT_API:
3426 * This symbol, if defined, indicates that Perl should
3427 * try to use the various _r versions of library functions.
3428 * This is extremely experimental.
3429 */
3430#$use5005threads USE_5005THREADS /**/
3431#$useithreads USE_ITHREADS /**/
3432#if defined(USE_5005THREADS) && !defined(USE_ITHREADS)
3433#define USE_THREADS /* until src is revised*/
3434#endif
3435#$d_oldpthreads OLD_PTHREADS_API /**/
3436#$usereentrant USE_REENTRANT_API /**/
ed140128 3437
06501368
MB
3438/* PERL_VENDORARCH:
3439 * If defined, this symbol contains the name of a private library.
3440 * The library is private in the sense that it needn't be in anyone's
3441 * execution path, but it should be accessible by the world.
3442 * It may have a ~ on the front.
3443 * The standard distribution will put nothing in this directory.
3444 * Vendors who distribute perl may wish to place their own
3445 * architecture-dependent modules and extensions in this directory with
3446 * MakeMaker Makefile.PL INSTALLDIRS=vendor
3447 * or equivalent. See INSTALL for details.
ed140128 3448 */
06501368
MB
3449/* PERL_VENDORARCH_EXP:
3450 * This symbol contains the ~name expanded version of PERL_VENDORARCH, to be used
3451 * in programs that are not prepared to deal with ~ expansion at run-time.
3452 */
3453#$d_vendorarch PERL_VENDORARCH "$vendorarch" /**/
3454#$d_vendorarch PERL_VENDORARCH_EXP "$vendorarchexp" /**/
3455
3456/* PERL_VENDORLIB_EXP:
3457 * This symbol contains the ~name expanded version of VENDORLIB, to be used
3458 * in programs that are not prepared to deal with ~ expansion at run-time.
3459 */
3460/* PERL_VENDORLIB_STEM:
3461 * This define is PERL_VENDORLIB_EXP with any trailing version-specific component
3462 * removed. The elements in inc_version_list (inc_version_list.U) can
3463 * be tacked onto this variable to generate a list of directories to search.
3464 */
3465#$d_vendorlib PERL_VENDORLIB_EXP "$vendorlibexp" /**/
3466#$d_vendorlib PERL_VENDORLIB_STEM "$vendorlib_stem" /**/
ed140128 3467
f53a6e0e
MB
3468/* USE_CROSS_COMPILE:
3469 * This symbol, if defined, indicates that Perl is being cross-compiled.
3470 */
3471/* PERL_TARGETARCH:
3472 * This symbol, if defined, indicates the target architecture
3473 * Perl has been cross-compiled to. Undefined if not a cross-compile.
3474 */
3475#ifndef USE_CROSS_COMPILE
3476#$usecrosscompile USE_CROSS_COMPILE /**/
3477#define PERL_TARGETARCH "$targetarch" /**/
3478#endif
3479
1be1b388
MB
3480/* PERL_USE_DEVEL:
3481 * This symbol, if defined, indicates that Perl was configured with
3482 * -Dusedevel, to enable development features. This should not be
3483 * done for production builds.
3484 */
3485#$usedevel PERL_USE_DEVEL /**/
3486
ed140128
AD
3487/* HAS_ATOLF:
3488 * This symbol, if defined, indicates that the atolf routine is
3489 * available to convert strings into long doubles.
3490 */
3491#$d_atolf HAS_ATOLF /**/
3492
3493/* HAS_ATOLL:
3494 * This symbol, if defined, indicates that the atoll routine is
3495 * available to convert strings into long longs.
3496 */
3497#$d_atoll HAS_ATOLL /**/
3498
3499/* HAS__FWALK:
3500 * This symbol, if defined, indicates that the _fwalk system call is
3501 * available to apply a function to all the file handles.
3502 */
3503#$d__fwalk HAS__FWALK /**/
3504
40613a90
JH
3505/* HAS_ACOSH:
3506 * This symbol, if defined, indicates that the acosh routine is
d0166596 3507 * available to do the inverse hyperbolic cosine function.
40613a90
JH
3508 */
3509#$d_acosh HAS_ACOSH /**/
3510
427d28ce
JH
3511/* HAS_ASINH:
3512 * This symbol, if defined, indicates that the asinh routine is
3513 * available to do the inverse hyperbolic sine function.
3514 */
3515#$d_asinh HAS_ASINH /**/
3516
3517/* HAS_ATANH:
3518 * This symbol, if defined, indicates that the atanh routine is
3519 * available to do the inverse hyperbolic tangent function.
3520 */
3521#$d_atanh HAS_ATANH /**/
3522
3523/* HAS_CBRT:
3524 * This symbol, if defined, indicates that the cbrt routine is
3525 * available to do the cubic root function.
3526 */
3527#$d_cbrt HAS_CBRT /**/
3528
3529/* HAS_COPYSIGN:
3530 * This symbol, if defined, indicates that the copysign routine is
3531 * available to do the copysign function.
3532 */
3533#$d_copysign HAS_COPYSIGN /**/
3534
3535/* HAS_ERF:
3536 * This symbol, if defined, indicates that the erf routine is
3537 * available to do the error function.
3538 */
3539#$d_erf HAS_ERF /**/
3540
3541/* HAS_ERFC:
3542 * This symbol, if defined, indicates that the erfc routine is
3543 * available to do the complementary error function.
3544 */
3545#$d_erfc HAS_ERFC /**/
3546
3547/* HAS_EXP2:
3548 * This symbol, if defined, indicates that the exp2 routine is
3549 * available to do the 2**x function.
3550 */
3551#$d_exp2 HAS_EXP2 /**/
3552
3553/* HAS_EXPM1:
3554 * This symbol, if defined, indicates that the expm1 routine is
3555 * available to do the exp(x) - 1 when x is near 1.
3556 */
3557#$d_expm1 HAS_EXPM1 /**/
3558
3559/* HAS_FMA:
3560 * This symbol, if defined, indicates that the fma routine is
3561 * available to do the multiply-add function.
3562 */
3563#$d_fma HAS_FMA /**/
3564
3565/* HAS_FDIM:
3566 * This symbol, if defined, indicates that the fdim routine is
3567 * available to do the positive difference function.
3568 */
3569#$d_fdim HAS_FDIM /**/
3570
3571/* HAS_FMAX:
3572 * This symbol, if defined, indicates that the fma routine is
3573 * available to do the maximum function.
3574 */
3575#$d_fmax HAS_FMAX /**/
3576
3577/* HAS_FMIN:
3578 * This symbol, if defined, indicates that the fma routine is
3579 * available to do the minimum function.
3580 */
3581#$d_fmin HAS_FMIN /**/
3582
ed140128
AD
3583/* HAS_AINTL:
3584 * This symbol, if defined, indicates that the aintl routine is
3585 * available. If copysignl is also present we can emulate modfl.
3586 */
3587#$d_aintl HAS_AINTL /**/
3588
3589/* HAS_BUILTIN_CHOOSE_EXPR:
3590 * Can we handle GCC builtin for compile-time ternary-like expressions
3591 */
3592/* HAS_BUILTIN_EXPECT:
3593 * Can we handle GCC builtin for telling that certain values are more
3594 * likely
3595 */
3596#$d_builtin_expect HAS_BUILTIN_EXPECT /**/
3597#$d_builtin_choose_expr HAS_BUILTIN_CHOOSE_EXPR /**/
3598
3599/* HAS_C99_VARIADIC_MACROS:
3600 * If defined, the compiler supports C99 variadic macros.
3601 */
3602#$d_c99_variadic_macros HAS_C99_VARIADIC_MACROS /**/
3603
3604/* HAS_CLASS:
3605 * This symbol, if defined, indicates that the class routine is
3606 * available to classify doubles. Available for example in AIX.
3607 * The returned values are defined in <float.h> and are:
3608 *
3609 * FP_PLUS_NORM Positive normalized, nonzero
3610 * FP_MINUS_NORM Negative normalized, nonzero
3611 * FP_PLUS_DENORM Positive denormalized, nonzero
3612 * FP_MINUS_DENORM Negative denormalized, nonzero
3613 * FP_PLUS_ZERO +0.0
3614 * FP_MINUS_ZERO -0.0
3615 * FP_PLUS_INF +INF
3616 * FP_MINUS_INF -INF
3617 * FP_NANS Signaling Not a Number (NaNS)
3618 * FP_NANQ Quiet Not a Number (NaNQ)
3619 */
3620#$d_class HAS_CLASS /**/
3621
3622/* HAS_CLEARENV:
3623 * This symbol, if defined, indicates that the clearenv () routine is
3624 * available for use.
3625 */
3626#$d_clearenv HAS_CLEARENV /**/
3627
3628/* HAS_STRUCT_CMSGHDR:
3629 * This symbol, if defined, indicates that the struct cmsghdr
3630 * is supported.
3631 */
3632#$d_cmsghdr_s HAS_STRUCT_CMSGHDR /**/
3633
3634/* HAS_COPYSIGNL:
3635 * This symbol, if defined, indicates that the copysignl routine is
3636 * available. If aintl is also present we can emulate modfl.
3637 */
3638#$d_copysignl HAS_COPYSIGNL /**/
3639
3640/* USE_CPLUSPLUS:
3641 * This symbol, if defined, indicates that a C++ compiler was
3642 * used to compiled Perl and will be used to compile extensions.
3643 */
3644#$d_cplusplus USE_CPLUSPLUS /**/
3645
3646/* HAS_DBMINIT_PROTO:
3647 * This symbol, if defined, indicates that the system provides
3648 * a prototype for the dbminit() function. Otherwise, it is up
3649 * to the program to supply one. A good guess is
3650 * extern int dbminit(char *);
3651 */
3652#$d_dbminitproto HAS_DBMINIT_PROTO /**/
3653
3654/* HAS_DIR_DD_FD:
3655 * This symbol, if defined, indicates that the the DIR* dirstream
3656 * structure contains a member variable named dd_fd.
3657 */
3658#$d_dir_dd_fd HAS_DIR_DD_FD /**/
3659
3660/* HAS_DIRFD:
3661 * This manifest constant lets the C program know that dirfd
3662 * is available.
3663 */
3664#$d_dirfd HAS_DIRFD /**/
3665
3666/* DLSYM_NEEDS_UNDERSCORE:
3667 * This symbol, if defined, indicates that we need to prepend an
3668 * underscore to the symbol name before calling dlsym(). This only
3669 * makes sense if you *have* dlsym, which we will presume is the
3670 * case if you're using dl_dlopen.xs.
3671 */
3672#$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/
3673
3674/* HAS_FAST_STDIO:
3675 * This symbol, if defined, indicates that the "fast stdio"
3676 * is available to manipulate the stdio buffers directly.
3677 */
3678#$d_faststdio HAS_FAST_STDIO /**/
3679
3680/* HAS_FCHDIR:
3681 * This symbol, if defined, indicates that the fchdir routine is
3682 * available to change directory using a file descriptor.
3683 */
3684#$d_fchdir HAS_FCHDIR /**/
3685
3686/* FCNTL_CAN_LOCK:
3687 * This symbol, if defined, indicates that fcntl() can be used
3688 * for file locking. Normally on Unix systems this is defined.
3689 * It may be undefined on VMS.
3690 */
3691#$d_fcntl_can_lock FCNTL_CAN_LOCK /**/
3692
d0166596
MB
3693/* HAS_FEGETROUND:
3694 * This symbol, if defined, indicates that the fegetround routine is
3695 * available to return the macro corresponding to the current rounding
3696 * mode.
3697 */
3698#$d_fegetround HAS_FEGETROUND /**/
3699
ed140128
AD
3700/* HAS_FINITE:
3701 * This symbol, if defined, indicates that the finite routine is
3702 * available to check whether a double is finite (non-infinity non-NaN).
3703 */
3704#$d_finite HAS_FINITE /**/
3705
3706/* HAS_FINITEL:
3707 * This symbol, if defined, indicates that the finitel routine is
3708 * available to check whether a long double is finite
3709 * (non-infinity non-NaN).
3710 */
3711#$d_finitel HAS_FINITEL /**/
3712
3713/* HAS_FLOCK_PROTO:
3714 * This symbol, if defined, indicates that the system provides
3715 * a prototype for the flock() function. Otherwise, it is up
3716 * to the program to supply one. A good guess is
3717 * extern int flock(int, int);
3718 */
3719#$d_flockproto HAS_FLOCK_PROTO /**/
3720
3721/* HAS_FP_CLASS:
3722 * This symbol, if defined, indicates that the fp_class routine is
3723 * available to classify doubles. Available for example in Digital UNIX.
3724 * The returned values are defined in <math.h> and are:
3725 *
3726 * FP_SNAN Signaling NaN (Not-a-Number)
3727 * FP_QNAN Quiet NaN (Not-a-Number)
3728 * FP_POS_INF +infinity
3729 * FP_NEG_INF -infinity
3730 * FP_POS_NORM Positive normalized
3731 * FP_NEG_NORM Negative normalized
3732 * FP_POS_DENORM Positive denormalized
3733 * FP_NEG_DENORM Negative denormalized
3734 * FP_POS_ZERO +0.0 (positive zero)
3735 * FP_NEG_ZERO -0.0 (negative zero)
3736 */
3737#$d_fp_class HAS_FP_CLASS /**/
3738
b19ee02c
JH
3739/* HAS_FP_CLASSL:
3740 * This symbol, if defined, indicates that the fp_classl routine is
d0166596
MB
3741 * available to classify long doubles. Available for example in
3742 * Digital UNIX. See for possible values HAS_FP_CLASS.
b19ee02c
JH
3743 */
3744#$d_fp_classl HAS_FP_CLASSL /**/
3745
ed140128
AD
3746/* HAS_FPCLASS:
3747 * This symbol, if defined, indicates that the fpclass routine is
3748 * available to classify doubles. Available for example in Solaris/SVR4.
3749 * The returned values are defined in <ieeefp.h> and are:
3750 *
3751 * FP_SNAN signaling NaN
3752 * FP_QNAN quiet NaN
3753 * FP_NINF negative infinity
3754 * FP_PINF positive infinity
3755 * FP_NDENORM negative denormalized non-zero
3756 * FP_PDENORM positive denormalized non-zero
3757 * FP_NZERO negative zero
3758 * FP_PZERO positive zero
3759 * FP_NNORM negative normalized non-zero
3760 * FP_PNORM positive normalized non-zero
3761 */
3762#$d_fpclass HAS_FPCLASS /**/
3763
3764/* HAS_FPCLASSIFY:
3765 * This symbol, if defined, indicates that the fpclassify routine is
3766 * available to classify doubles. Available for example in HP-UX.
3767 * The returned values are defined in <math.h> and are
3768 *
3769 * FP_NORMAL Normalized
3770 * FP_ZERO Zero
3771 * FP_INFINITE Infinity
3772 * FP_SUBNORMAL Denormalized
3773 * FP_NAN NaN
3774 *
3775 */
d0166596
MB
3776/* HAS_FP_CLASSIFY:
3777 * This symbol, if defined, indicates that the fp_classify routine is
3778 * available to classify doubles. The values are defined in <math.h>
3779 *
3780 * FP_NORMAL Normalized
3781 * FP_ZERO Zero
3782 * FP_INFINITE Infinity
3783 * FP_SUBNORMAL Denormalized
3784 * FP_NAN NaN
3785 *
3786 */
3787#$d_fpclassify HAS_FPCLASSIFY /**/
3788#$d_fp_classify HAS_FP_CLASSIFY /**/
ed140128
AD
3789
3790/* HAS_FPCLASSL:
3791 * This symbol, if defined, indicates that the fpclassl routine is
3792 * available to classify long doubles. Available for example in IRIX.
3793 * The returned values are defined in <ieeefp.h> and are:
3794 *
3795 * FP_SNAN signaling NaN
3796 * FP_QNAN quiet NaN
3797 * FP_NINF negative infinity
3798 * FP_PINF positive infinity
3799 * FP_NDENORM negative denormalized non-zero
3800 * FP_PDENORM positive denormalized non-zero
3801 * FP_NZERO negative zero
3802 * FP_PZERO positive zero
3803 * FP_NNORM negative normalized non-zero
3804 * FP_PNORM positive normalized non-zero
3805 */
3806#$d_fpclassl HAS_FPCLASSL /**/
3807
4c1a9b0c
JH
3808/* HAS_FPGETROUND:
3809 * This symbol, if defined, indicates that the fpgetround routine is
3810 * available to get the floating point rounding mode.
3811 */
3812#$d_fpgetround HAS_FPGETROUND /**/
3813
ed140128
AD
3814/* HAS_FPOS64_T:
3815 * This symbol will be defined if the C compiler supports fpos64_t.
3816 */
3817#$d_fpos64_t HAS_FPOS64_T /**/
3818
3819/* HAS_FREXPL:
3820 * This symbol, if defined, indicates that the frexpl routine is
3821 * available to break a long double floating-point number into
3822 * a normalized fraction and an integral power of 2.
3823 */
3824#$d_frexpl HAS_FREXPL /**/
3825
3826/* HAS_STRUCT_FS_DATA:
3827 * This symbol, if defined, indicates that the struct fs_data
3828 * to do statfs() is supported.
3829 */
3830#$d_fs_data_s HAS_STRUCT_FS_DATA /**/
3831
3832/* HAS_FSEEKO:
3833 * This symbol, if defined, indicates that the fseeko routine is
3834 * available to fseek beyond 32 bits (useful for ILP32 hosts).
3835 */
3836#$d_fseeko HAS_FSEEKO /**/
3837
3838/* HAS_FSTATFS:
3839 * This symbol, if defined, indicates that the fstatfs routine is
3840 * available to stat filesystems by file descriptors.
3841 */
3842#$d_fstatfs HAS_FSTATFS /**/
3843
3844/* HAS_FSYNC:
3845 * This symbol, if defined, indicates that the fsync routine is
3846 * available to write a file's modified data and attributes to
3847 * permanent storage.
3848 */
3849#$d_fsync HAS_FSYNC /**/
3850
3851/* HAS_FTELLO:
3852 * This symbol, if defined, indicates that the ftello routine is
3853 * available to ftell beyond 32 bits (useful for ILP32 hosts).
3854 */
3855#$d_ftello HAS_FTELLO /**/
3856
3857/* HAS_FUTIMES:
3858 * This symbol, if defined, indicates that the futimes routine is
3859 * available to change file descriptor time stamps with struct timevals.
3860 */
3861#$d_futimes HAS_FUTIMES /**/
3862
5086dff9
MB
3863/* HAS_GETADDRINFO:
3864 * This symbol, if defined, indicates that the getaddrinfo() function
3865 * is available for use.
3866 */
3867#$d_getaddrinfo HAS_GETADDRINFO /**/
3868
ed140128
AD
3869/* HAS_GETCWD:
3870 * This symbol, if defined, indicates that the getcwd routine is
3871 * available to get the current working directory.
3872 */
3873#$d_getcwd HAS_GETCWD /**/
3874
3875/* HAS_GETESPWNAM:
3876 * This symbol, if defined, indicates that the getespwnam system call is
cd95ead5 3877 * available to retrieve enhanced (shadow) password entries by name.
ed140128
AD
3878 */
3879#$d_getespwnam HAS_GETESPWNAM /**/
3880
3881/* HAS_GETFSSTAT:
3882 * This symbol, if defined, indicates that the getfsstat routine is
3883 * available to stat filesystems in bulk.
3884 */
3885#$d_getfsstat HAS_GETFSSTAT /**/
3886
3887/* HAS_GETITIMER:
3888 * This symbol, if defined, indicates that the getitimer routine is
3889 * available to return interval timers.
3890 */
3891#$d_getitimer HAS_GETITIMER /**/
3892
3893/* HAS_GETMNT:
3894 * This symbol, if defined, indicates that the getmnt routine is
3895 * available to get filesystem mount info by filename.
3896 */
3897#$d_getmnt HAS_GETMNT /**/
3898
3899/* HAS_GETMNTENT:
3900 * This symbol, if defined, indicates that the getmntent routine is
3901 * available to iterate through mounted file systems to get their info.
3902 */
3903#$d_getmntent HAS_GETMNTENT /**/
3904
5086dff9
MB
3905/* HAS_GETNAMEINFO:
3906 * This symbol, if defined, indicates that the getnameinfo() function
3907 * is available for use.
3908 */
3909#$d_getnameinfo HAS_GETNAMEINFO /**/
3910
ed140128
AD
3911/* HAS_GETPRPWNAM:
3912 * This symbol, if defined, indicates that the getprpwnam system call is
3913 * available to retrieve protected (shadow) password entries by name.
3914 */
3915#$d_getprpwnam HAS_GETPRPWNAM /**/
3916
3917/* HAS_GETSPNAM:
3918 * This symbol, if defined, indicates that the getspnam system call is
3919 * available to retrieve SysV shadow password entries by name.
3920 */
3921#$d_getspnam HAS_GETSPNAM /**/
3922
3923/* HAS_HASMNTOPT:
3924 * This symbol, if defined, indicates that the hasmntopt routine is
3925 * available to query the mount opti