This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Get my_stash.t working under minitest
[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
2f6b96eb
JH
165/* HAS_FEGETROUND:
166 * This symbol, if defined, indicates that the fegetround routine is
167 * available to get the floating point rounding mode.
168 */
169#$d_fegetround HAS_FEGETROUND /**/
170
88fdc172
SB
171/* HAS_FGETPOS:
172 * This symbol, if defined, indicates that the fgetpos routine is
173 * available to get the file position indicator, similar to ftell().
a0d0e21e 174 */
88fdc172 175#$d_fgetpos HAS_FGETPOS /**/
a0d0e21e 176
88fdc172
SB
177/* HAS_FLOCK:
178 * This symbol, if defined, indicates that the flock routine is
179 * available to do file locking.
a687059c 180 */
88fdc172 181#$d_flock HAS_FLOCK /**/
a687059c 182
88fdc172
SB
183/* HAS_FORK:
184 * This symbol, if defined, indicates that the fork routine is
185 * available.
a0d0e21e 186 */
88fdc172 187#$d_fork HAS_FORK /**/
a0d0e21e 188
88fdc172
SB
189/* HAS_FSETPOS:
190 * This symbol, if defined, indicates that the fsetpos routine is
191 * available to set the file position indicator, similar to fseek().
a0d0e21e 192 */
88fdc172 193#$d_fsetpos HAS_FSETPOS /**/
a0d0e21e 194
88fdc172
SB
195/* HAS_GETTIMEOFDAY:
196 * This symbol, if defined, indicates that the gettimeofday() system
197 * call is available for a sub-second accuracy clock. Usually, the file
198 * <sys/resource.h> needs to be included (see I_SYS_RESOURCE).
199 * The type "Timeval" should be used to refer to "struct timeval".
5f05dabc 200 */
88fdc172
SB
201#$d_gettimeod HAS_GETTIMEOFDAY /**/
202#ifdef HAS_GETTIMEOFDAY
203#define Timeval struct timeval /* Structure used by gettimeofday() */
204#endif
5f05dabc 205
88fdc172
SB
206/* HAS_GETGROUPS:
207 * This symbol, if defined, indicates that the getgroups() routine is
208 * available to get the list of process groups. If unavailable, multiple
209 * groups are probably not supported.
378cc40b 210 */
88fdc172 211#$d_getgrps HAS_GETGROUPS /**/
378cc40b 212
88fdc172
SB
213/* HAS_GETLOGIN:
214 * This symbol, if defined, indicates that the getlogin routine is
215 * available to get the login name.
dfe9444c 216 */
88fdc172 217#$d_getlogin HAS_GETLOGIN /**/
dfe9444c 218
88fdc172
SB
219/* HAS_GETPGID:
220 * This symbol, if defined, indicates to the C program that
221 * the getpgid(pid) function is available to get the
222 * process group id.
a0d0e21e 223 */
88fdc172 224#$d_getpgid HAS_GETPGID /**/
a0d0e21e 225
88fdc172
SB
226/* HAS_GETPGRP2:
227 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
228 * routine is available to get the current process group.
a687059c 229 */
88fdc172 230#$d_getpgrp2 HAS_GETPGRP2 /**/
ecfc5424 231
88fdc172
SB
232/* HAS_GETPPID:
233 * This symbol, if defined, indicates that the getppid routine is
234 * available to get the parent process ID.
378cc40b 235 */
88fdc172 236#$d_getppid HAS_GETPPID /**/
378cc40b 237
88fdc172
SB
238/* HAS_GETPRIORITY:
239 * This symbol, if defined, indicates that the getpriority routine is
240 * available to get a process's priority.
0d3e774c 241 */
88fdc172 242#$d_getprior HAS_GETPRIORITY /**/
0d3e774c 243
88fdc172
SB
244/* HAS_INET_ATON:
245 * This symbol, if defined, indicates to the C program that the
246 * inet_aton() function is available to parse IP address "dotted-quad"
247 * strings.
a0d0e21e 248 */
88fdc172 249#$d_inetaton HAS_INET_ATON /**/
a0d0e21e 250
4671125a
JH
251/* HAS_J0:
252 * This symbol, if defined, indicates to the C program that the
253 * j0() function is available for Bessel functions of the first
254 * kind of the order zero.
255 */
256#$d_j0 HAS_J0 /**/
257
258/* HAS_J0L:
259 * This symbol, if defined, indicates to the C program that the
260 * j0l() function is available for Bessel functions of the first
261 * kind of the order zero, for long doubles.
262 */
263#$d_j0l HAS_J0L /**/
264
88fdc172
SB
265/* HAS_KILLPG:
266 * This symbol, if defined, indicates that the killpg routine is available
267 * to kill process groups. If unavailable, you probably should use kill
268 * with a negative process number.
a687059c 269 */
88fdc172 270#$d_killpg HAS_KILLPG /**/
a687059c 271
88fdc172
SB
272/* HAS_LINK:
273 * This symbol, if defined, indicates that the link routine is
274 * available to create hard links.
a0d0e21e 275 */
88fdc172 276#$d_link HAS_LINK /**/
a0d0e21e 277
88fdc172
SB
278/* HAS_LOCALECONV:
279 * This symbol, if defined, indicates that the localeconv routine is
280 * available for numeric and monetary formatting conventions.
a0d0e21e 281 */
88fdc172 282#$d_locconv HAS_LOCALECONV /**/
a0d0e21e 283
88fdc172
SB
284/* HAS_LOCKF:
285 * This symbol, if defined, indicates that the lockf routine is
286 * available to do file locking.
a0d0e21e 287 */
88fdc172 288#$d_lockf HAS_LOCKF /**/
a0d0e21e 289
88fdc172
SB
290/* HAS_LSTAT:
291 * This symbol, if defined, indicates that the lstat routine is
292 * available to do file stats on symbolic links.
378cc40b 293 */
88fdc172 294#$d_lstat HAS_LSTAT /**/
2304df62 295
88fdc172
SB
296/* HAS_MBLEN:
297 * This symbol, if defined, indicates that the mblen routine is available
298 * to find the number of bytes in a multibye character.
9f971974 299 */
88fdc172 300#$d_mblen HAS_MBLEN /**/
9f971974 301
88fdc172
SB
302/* HAS_MBSTOWCS:
303 * This symbol, if defined, indicates that the mbstowcs routine is
9cdcdad1 304 * available to convert a multibyte string into a wide character string.
9f971974 305 */
88fdc172 306#$d_mbstowcs HAS_MBSTOWCS /**/
9f971974 307
88fdc172
SB
308/* HAS_MBTOWC:
309 * This symbol, if defined, indicates that the mbtowc routine is available
9cdcdad1 310 * to convert a multibyte to a wide character.
9f971974 311 */
88fdc172 312#$d_mbtowc HAS_MBTOWC /**/
378cc40b 313
88fdc172
SB
314/* HAS_MEMCMP:
315 * This symbol, if defined, indicates that the memcmp routine is available
316 * to compare blocks of memory.
a687059c 317 */
88fdc172 318#$d_memcmp HAS_MEMCMP /**/
fe14fcc3 319
88fdc172
SB
320/* HAS_MEMCPY:
321 * This symbol, if defined, indicates that the memcpy routine is available
322 * to copy blocks of memory.
ecfc5424 323 */
88fdc172 324#$d_memcpy HAS_MEMCPY /**/
ecfc5424 325
88fdc172
SB
326/* HAS_MEMMOVE:
327 * This symbol, if defined, indicates that the memmove routine is available
328 * to copy potentially overlapping blocks of memory. This should be used
329 * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
330 * own version.
a0d0e21e 331 */
88fdc172 332#$d_memmove HAS_MEMMOVE /**/
a0d0e21e 333
88fdc172
SB
334/* HAS_MEMSET:
335 * This symbol, if defined, indicates that the memset routine is available
336 * to set blocks of memory.
fe749a9f 337 */
88fdc172 338#$d_memset HAS_MEMSET /**/
fe749a9f 339
88fdc172
SB
340/* HAS_MKDIR:
341 * This symbol, if defined, indicates that the mkdir routine is available
342 * to create directories. Otherwise you should fork off a new process to
343 * exec /bin/mkdir.
fe749a9f 344 */
88fdc172 345#$d_mkdir HAS_MKDIR /**/
fe749a9f 346
88fdc172
SB
347/* HAS_MKFIFO:
348 * This symbol, if defined, indicates that the mkfifo routine is
349 * available to create FIFOs. Otherwise, mknod should be able to
350 * do it for you. However, if mkfifo is there, mknod might require
351 * super-user privileges which mkfifo will not.
fe14fcc3 352 */
88fdc172 353#$d_mkfifo HAS_MKFIFO /**/
a687059c 354
88fdc172
SB
355/* HAS_MKTIME:
356 * This symbol, if defined, indicates that the mktime routine is
357 * available.
ecfc5424 358 */
88fdc172 359#$d_mktime HAS_MKTIME /**/
ecfc5424 360
88fdc172
SB
361/* HAS_MSYNC:
362 * This symbol, if defined, indicates that the msync system call is
363 * available to synchronize a mapped file.
a687059c 364 */
88fdc172 365#$d_msync HAS_MSYNC /**/
a687059c 366
88fdc172
SB
367/* HAS_MUNMAP:
368 * This symbol, if defined, indicates that the munmap system call is
369 * available to unmap a region, usually mapped by mmap().
fe14fcc3 370 */
88fdc172 371#$d_munmap HAS_MUNMAP /**/
a0d0e21e 372
88fdc172
SB
373/* HAS_NICE:
374 * This symbol, if defined, indicates that the nice routine is
375 * available.
8e07c86e 376 */
88fdc172 377#$d_nice HAS_NICE /**/
8e07c86e 378
88fdc172
SB
379/* HAS_PATHCONF:
380 * This symbol, if defined, indicates that pathconf() is available
381 * to determine file-system related limits and options associated
382 * with a given filename.
a0d0e21e 383 */
88fdc172
SB
384/* HAS_FPATHCONF:
385 * This symbol, if defined, indicates that pathconf() is available
386 * to determine file-system related limits and options associated
387 * with a given open file descriptor.
a0d0e21e 388 */
88fdc172
SB
389#$d_pathconf HAS_PATHCONF /**/
390#$d_fpathconf HAS_FPATHCONF /**/
a0d0e21e 391
88fdc172
SB
392/* HAS_PAUSE:
393 * This symbol, if defined, indicates that the pause routine is
394 * available to suspend a process until a signal is received.
a0d0e21e 395 */
88fdc172 396#$d_pause HAS_PAUSE /**/
a0d0e21e 397
88fdc172
SB
398/* HAS_PIPE:
399 * This symbol, if defined, indicates that the pipe routine is
400 * available to create an inter-process channel.
a0d0e21e 401 */
88fdc172 402#$d_pipe HAS_PIPE /**/
fe14fcc3 403
1d8eaf8c
MB
404/* HAS_POLL:
405 * This symbol, if defined, indicates that the poll routine is
406 * available to poll active file descriptors. Please check I_POLL and
407 * I_SYS_POLL to know which header should be included as well.
408 */
409#$d_poll HAS_POLL /**/
410
88fdc172
SB
411/* HAS_READDIR:
412 * This symbol, if defined, indicates that the readdir routine is
413 * available to read directory entries. You may have to include
414 * <dirent.h>. See I_DIRENT.
378cc40b 415 */
88fdc172 416#$d_readdir HAS_READDIR /**/
378cc40b 417
88fdc172
SB
418/* HAS_SEEKDIR:
419 * This symbol, if defined, indicates that the seekdir routine is
420 * available. You may have to include <dirent.h>. See I_DIRENT.
378cc40b 421 */
88fdc172 422#$d_seekdir HAS_SEEKDIR /**/
2304df62 423
88fdc172
SB
424/* HAS_TELLDIR:
425 * This symbol, if defined, indicates that the telldir routine is
426 * available. You may have to include <dirent.h>. See I_DIRENT.
a0d0e21e 427 */
88fdc172 428#$d_telldir HAS_TELLDIR /**/
a0d0e21e 429
88fdc172
SB
430/* HAS_REWINDDIR:
431 * This symbol, if defined, indicates that the rewinddir routine is
432 * available. You may have to include <dirent.h>. See I_DIRENT.
a0d0e21e 433 */
88fdc172 434#$d_rewinddir HAS_REWINDDIR /**/
a0d0e21e 435
88fdc172
SB
436/* HAS_READLINK:
437 * This symbol, if defined, indicates that the readlink routine is
438 * available to read the value of a symbolic link.
dfe9444c 439 */
88fdc172 440#$d_readlink HAS_READLINK /**/
dfe9444c 441
88fdc172
SB
442/* HAS_RENAME:
443 * This symbol, if defined, indicates that the rename routine is available
444 * to rename files. Otherwise you should do the unlink(), link(), unlink()
445 * trick.
d8f2e4cc 446 */
88fdc172 447#$d_rename HAS_RENAME /**/
d8f2e4cc 448
88fdc172
SB
449/* HAS_RMDIR:
450 * This symbol, if defined, indicates that the rmdir routine is
451 * available to remove directories. Otherwise you should fork off a
452 * new process to exec /bin/rmdir.
a687059c 453 */
88fdc172 454#$d_rmdir HAS_RMDIR /**/
a687059c 455
88fdc172
SB
456/* HAS_SELECT:
457 * This symbol, if defined, indicates that the select routine is
458 * available to select active file descriptors. If the timeout field
459 * is used, <sys/time.h> may need to be included.
a687059c 460 */
88fdc172 461#$d_select HAS_SELECT /**/
a687059c 462
88fdc172
SB
463/* HAS_SETEGID:
464 * This symbol, if defined, indicates that the setegid routine is available
465 * to change the effective gid of the current program.
a687059c 466 */
88fdc172 467#$d_setegid HAS_SETEGID /**/
a687059c 468
88fdc172
SB
469/* HAS_SETEUID:
470 * This symbol, if defined, indicates that the seteuid routine is available
471 * to change the effective uid of the current program.
378cc40b 472 */
88fdc172 473#$d_seteuid HAS_SETEUID /**/
378cc40b 474
1d8eaf8c
MB
475/* HAS_SETGROUPS:
476 * This symbol, if defined, indicates that the setgroups() routine is
477 * available to set the list of process groups. If unavailable, multiple
478 * groups are probably not supported.
479 */
480#$d_setgrps HAS_SETGROUPS /**/
481
88fdc172
SB
482/* HAS_SETLINEBUF:
483 * This symbol, if defined, indicates that the setlinebuf routine is
484 * available to change stderr or stdout from block-buffered or unbuffered
485 * to a line-buffered mode.
378cc40b 486 */
88fdc172 487#$d_setlinebuf HAS_SETLINEBUF /**/
2304df62 488
88fdc172
SB
489/* HAS_SETLOCALE:
490 * This symbol, if defined, indicates that the setlocale routine is
491 * available to handle locale-specific ctype implementations.
2304df62 492 */
88fdc172 493#$d_setlocale HAS_SETLOCALE /**/
fe14fcc3 494
88fdc172
SB
495/* HAS_SETPGID:
496 * This symbol, if defined, indicates that the setpgid(pid, gpid)
497 * routine is available to set process group ID.
c2960299 498 */
88fdc172 499#$d_setpgid HAS_SETPGID /**/
dfe9444c 500
88fdc172
SB
501/* HAS_SETPGRP2:
502 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
503 * routine is available to set the current process group.
16d20bd9 504 */
88fdc172 505#$d_setpgrp2 HAS_SETPGRP2 /**/
dfe9444c 506
88fdc172
SB
507/* HAS_SETPRIORITY:
508 * This symbol, if defined, indicates that the setpriority routine is
509 * available to set a process's priority.
c2960299 510 */
88fdc172 511#$d_setprior HAS_SETPRIORITY /**/
8d063cd8 512
88fdc172
SB
513/* HAS_SETREGID:
514 * This symbol, if defined, indicates that the setregid routine is
515 * available to change the real and effective gid of the current
516 * process.
a89d8a78 517 */
88fdc172
SB
518/* HAS_SETRESGID:
519 * This symbol, if defined, indicates that the setresgid routine is
520 * available to change the real, effective and saved gid of the current
521 * process.
a89d8a78 522 */
88fdc172
SB
523#$d_setregid HAS_SETREGID /**/
524#$d_setresgid HAS_SETRESGID /**/
a89d8a78 525
88fdc172
SB
526/* HAS_SETREUID:
527 * This symbol, if defined, indicates that the setreuid routine is
528 * available to change the real and effective uid of the current
529 * process.
a0d0e21e 530 */
88fdc172
SB
531/* HAS_SETRESUID:
532 * This symbol, if defined, indicates that the setresuid routine is
533 * available to change the real, effective and saved uid of the current
534 * process.
2e1b3b7e 535 */
88fdc172
SB
536#$d_setreuid HAS_SETREUID /**/
537#$d_setresuid HAS_SETRESUID /**/
2e1b3b7e 538
88fdc172
SB
539/* HAS_SETRGID:
540 * This symbol, if defined, indicates that the setrgid routine is available
541 * to change the real gid of the current program.
a687059c 542 */
88fdc172 543#$d_setrgid HAS_SETRGID /**/
e5d73d77 544
88fdc172
SB
545/* HAS_SETRUID:
546 * This symbol, if defined, indicates that the setruid routine is available
547 * to change the real uid of the current program.
ecfc5424 548 */
88fdc172 549#$d_setruid HAS_SETRUID /**/
ecfc5424 550
88fdc172
SB
551/* HAS_SETSID:
552 * This symbol, if defined, indicates that the setsid routine is
553 * available to set the process group ID.
9f971974 554 */
88fdc172 555#$d_setsid HAS_SETSID /**/
9f971974 556
88fdc172
SB
557/* HAS_STRCHR:
558 * This symbol is defined to indicate that the strchr()/strrchr()
559 * functions are available for string searching. If not, try the
560 * index()/rindex() pair.
85e6fe83 561 */
88fdc172
SB
562/* HAS_INDEX:
563 * This symbol is defined to indicate that the index()/rindex()
564 * functions are available for string searching.
a0d0e21e 565 */
88fdc172
SB
566#$d_strchr HAS_STRCHR /**/
567#$d_index HAS_INDEX /**/
85e6fe83 568
88fdc172
SB
569/* HAS_STRCOLL:
570 * This symbol, if defined, indicates that the strcoll routine is
571 * available to compare strings using collating information.
87250799 572 */
88fdc172 573#$d_strcoll HAS_STRCOLL /**/
87250799 574
88fdc172
SB
575/* HAS_STRTOD:
576 * This symbol, if defined, indicates that the strtod routine is
577 * available to provide better numeric string conversion than atof().
a0d0e21e 578 */
88fdc172 579#$d_strtod HAS_STRTOD /**/
a0d0e21e 580
88fdc172
SB
581/* HAS_STRTOL:
582 * This symbol, if defined, indicates that the strtol routine is available
583 * to provide better numeric string conversion than atoi() and friends.
85e6fe83 584 */
88fdc172 585#$d_strtol HAS_STRTOL /**/
d8f2e4cc 586
88fdc172
SB
587/* HAS_STRXFRM:
588 * This symbol, if defined, indicates that the strxfrm() routine is
589 * available to transform strings.
d8f2e4cc 590 */
88fdc172 591#$d_strxfrm HAS_STRXFRM /**/
d8f2e4cc 592
88fdc172
SB
593/* HAS_SYMLINK:
594 * This symbol, if defined, indicates that the symlink routine is available
595 * to create symbolic links.
dfe9444c 596 */
88fdc172 597#$d_symlink HAS_SYMLINK /**/
dfe9444c 598
88fdc172
SB
599/* HAS_SYSCALL:
600 * This symbol, if defined, indicates that the syscall routine is
601 * available to call arbitrary system calls. If undefined, that's tough.
a0d0e21e 602 */
88fdc172 603#$d_syscall HAS_SYSCALL /**/
a687059c 604
88fdc172
SB
605/* HAS_SYSCONF:
606 * This symbol, if defined, indicates that sysconf() is available
607 * to determine system related limits and options.
aaacdc8b 608 */
88fdc172
SB
609#$d_sysconf HAS_SYSCONF /**/
610
611/* HAS_SYSTEM:
612 * This symbol, if defined, indicates that the system routine is
613 * available to issue a shell command.
aaacdc8b 614 */
88fdc172 615#$d_system HAS_SYSTEM /**/
aaacdc8b 616
88fdc172
SB
617/* HAS_TCGETPGRP:
618 * This symbol, if defined, indicates that the tcgetpgrp routine is
619 * available to get foreground process group ID.
aaacdc8b 620 */
88fdc172 621#$d_tcgetpgrp HAS_TCGETPGRP /**/
aaacdc8b 622
88fdc172
SB
623/* HAS_TCSETPGRP:
624 * This symbol, if defined, indicates that the tcsetpgrp routine is
625 * available to set foreground process group ID.
a22e52b9 626 */
88fdc172 627#$d_tcsetpgrp HAS_TCSETPGRP /**/
a22e52b9 628
88fdc172
SB
629/* HAS_TRUNCATE:
630 * This symbol, if defined, indicates that the truncate routine is
631 * available to truncate files.
5ff3f7a4 632 */
88fdc172 633#$d_truncate HAS_TRUNCATE /**/
5ff3f7a4 634
88fdc172
SB
635/* HAS_TZNAME:
636 * This symbol, if defined, indicates that the tzname[] array is
637 * available to access timezone names.
5ff3f7a4 638 */
88fdc172 639#$d_tzname HAS_TZNAME /**/
5ff3f7a4 640
88fdc172
SB
641/* HAS_UMASK:
642 * This symbol, if defined, indicates that the umask routine is
643 * available to set and get the value of the file creation mask.
5ff3f7a4 644 */
88fdc172 645#$d_umask HAS_UMASK /**/
5ff3f7a4 646
88fdc172
SB
647/* HAS_USLEEP:
648 * This symbol, if defined, indicates that the usleep routine is
649 * available to let the process sleep on a sub-second accuracy.
5ff3f7a4 650 */
88fdc172 651#$d_usleep HAS_USLEEP /**/
5ff3f7a4 652
88fdc172
SB
653/* HAS_WAIT4:
654 * This symbol, if defined, indicates that wait4() exists.
8e07c86e 655 */
88fdc172 656#$d_wait4 HAS_WAIT4 /**/
8e07c86e 657
88fdc172
SB
658/* HAS_WAITPID:
659 * This symbol, if defined, indicates that the waitpid routine is
660 * available to wait for child process.
1aef975c 661 */
88fdc172 662#$d_waitpid HAS_WAITPID /**/
85e6fe83 663
88fdc172
SB
664/* HAS_WCSTOMBS:
665 * This symbol, if defined, indicates that the wcstombs routine is
666 * available to convert wide character strings to multibyte strings.
bccf77a5 667 */
88fdc172 668#$d_wcstombs HAS_WCSTOMBS /**/
dfe9444c 669
88fdc172
SB
670/* HAS_WCTOMB:
671 * This symbol, if defined, indicates that the wctomb routine is available
9cdcdad1 672 * to convert a wide character to a multibyte.
bccf77a5 673 */
88fdc172 674#$d_wctomb HAS_WCTOMB /**/
bccf77a5 675
1d8eaf8c
MB
676/* Groups_t:
677 * This symbol holds the type used for the second argument to
678 * getgroups() and setgroups(). Usually, this is the same as
679 * gidtype (gid_t) , but sometimes it isn't.
680 * It can be int, ushort, gid_t, etc...
681 * It may be necessary to include <sys/types.h> to get any
682 * typedef'ed information. This is only required if you have
683 * getgroups() or setgroups()..
684 */
685#if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS)
686#define Groups_t $groupstype /* Type for 2nd arg to [sg]etgroups() */
687#endif
688
88fdc172
SB
689/* I_ARPA_INET:
690 * This symbol, if defined, indicates to the C program that it should
691 * include <arpa/inet.h> to get inet_addr and friends declarations.
ff935051 692 */
88fdc172 693#$i_arpainet I_ARPA_INET /**/
ff935051 694
88fdc172
SB
695/* I_DBM:
696 * This symbol, if defined, indicates that <dbm.h> exists and should
697 * be included.
ff935051 698 */
88fdc172
SB
699/* I_RPCSVC_DBM:
700 * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
701 * should be included.
10bc17b6 702 */
88fdc172
SB
703#$i_dbm I_DBM /**/
704#$i_rpcsvcdbm I_RPCSVC_DBM /**/
10bc17b6 705
88fdc172
SB
706/* I_DLFCN:
707 * This symbol, if defined, indicates that <dlfcn.h> exists and should
708 * be included.
78a7c709 709 */
88fdc172 710#$i_dlfcn I_DLFCN /**/
78a7c709 711
88fdc172
SB
712/* I_FCNTL:
713 * This manifest constant tells the C program to include <fcntl.h>.
c7aff470 714 */
88fdc172 715#$i_fcntl I_FCNTL /**/
44b94491 716
2f6b96eb
JH
717/* I_FENV:
718 * This symbol, if defined, indicates to the C program that it should
719 * include <fenv.h> to get the floating point environment definitions.
720 */
721#$i_fenv I_FENV /**/
722
88fdc172
SB
723/* I_FLOAT:
724 * This symbol, if defined, indicates to the C program that it should
725 * include <float.h> to get definition of symbols like DBL_MAX or
726 * DBL_MIN, i.e. machine dependent floating point values.
c7aff470 727 */
88fdc172 728#$i_float I_FLOAT /**/
c7aff470 729
13cfc98d
MB
730/* I_GDBM:
731 * This symbol, if defined, indicates that <gdbm.h> exists and should
732 * be included.
733 */
734#$i_gdbm I_GDBM /**/
735
88fdc172
SB
736/* I_LIMITS:
737 * This symbol, if defined, indicates to the C program that it should
738 * include <limits.h> to get definition of symbols like WORD_BIT or
739 * LONG_MAX, i.e. machine dependant limitations.
c7aff470 740 */
88fdc172 741#$i_limits I_LIMITS /**/
c7aff470 742
88fdc172
SB
743/* I_LOCALE:
744 * This symbol, if defined, indicates to the C program that it should
745 * include <locale.h>.
a845a0d4 746 */
88fdc172 747#$i_locale I_LOCALE /**/
a845a0d4 748
88fdc172
SB
749/* I_MATH:
750 * This symbol, if defined, indicates to the C program that it should
751 * include <math.h>.
a845a0d4 752 */
88fdc172 753#$i_math I_MATH /**/
a845a0d4 754
88fdc172
SB
755/* I_MEMORY:
756 * This symbol, if defined, indicates to the C program that it should
757 * include <memory.h>.
a845a0d4 758 */
88fdc172
SB
759#$i_memory I_MEMORY /**/
760
88fdc172
SB
761/* I_NETINET_IN:
762 * This symbol, if defined, indicates to the C program that it should
763 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
a845a0d4 764 */
88fdc172
SB
765#$i_niin I_NETINET_IN /**/
766
88fdc172
SB
767/* I_STDDEF:
768 * This symbol, if defined, indicates that <stddef.h> exists and should
769 * be included.
a845a0d4 770 */
88fdc172
SB
771#$i_stddef I_STDDEF /**/
772
83f6d82b
JH
773/* I_STDINT:
774 * This symbol, if defined, indicates that <stdint.h> exists and should
775 * be included.
776 */
777#$i_stdint I_STDINT /**/
778
88fdc172
SB
779/* I_STDLIB:
780 * This symbol, if defined, indicates that <stdlib.h> exists and should
781 * be included.
a845a0d4 782 */
88fdc172
SB
783#$i_stdlib I_STDLIB /**/
784
785/* I_STRING:
786 * This symbol, if defined, indicates to the C program that it should
787 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
a845a0d4 788 */
88fdc172
SB
789#$i_string I_STRING /**/
790
791/* I_SYS_DIR:
792 * This symbol, if defined, indicates to the C program that it should
793 * include <sys/dir.h>.
a845a0d4 794 */
88fdc172
SB
795#$i_sysdir I_SYS_DIR /**/
796
797/* I_SYS_FILE:
798 * This symbol, if defined, indicates to the C program that it should
799 * include <sys/file.h> to get definition of R_OK and friends.
a845a0d4 800 */
88fdc172 801#$i_sysfile I_SYS_FILE /**/
a845a0d4 802
88fdc172
SB
803/* I_SYS_IOCTL:
804 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
805 * be included. Otherwise, include <sgtty.h> or <termio.h>.
a845a0d4 806 */
88fdc172
SB
807/* I_SYS_SOCKIO:
808 * This symbol, if defined, indicates the <sys/sockio.h> should be included
809 * to get socket ioctl options, like SIOCATMARK.
a845a0d4 810 */
88fdc172
SB
811#$i_sysioctl I_SYS_IOCTL /**/
812#$i_syssockio I_SYS_SOCKIO /**/
813
814/* I_SYS_NDIR:
815 * This symbol, if defined, indicates to the C program that it should
816 * include <sys/ndir.h>.
a845a0d4 817 */
88fdc172 818#$i_sysndir I_SYS_NDIR /**/
a845a0d4 819
88fdc172
SB
820/* I_SYS_PARAM:
821 * This symbol, if defined, indicates to the C program that it should
822 * include <sys/param.h>.
a845a0d4 823 */
88fdc172
SB
824#$i_sysparam I_SYS_PARAM /**/
825
216dac04
MB
826/* I_SYS_POLL:
827 * This symbol, if defined, indicates that the program may include
828 * <sys/poll.h>. When I_POLL is also defined, it's probably safest
829 * to only include <poll.h>.
830 */
831#$i_syspoll I_SYS_POLL /**/
832
88fdc172
SB
833/* I_SYS_RESOURCE:
834 * This symbol, if defined, indicates to the C program that it should
835 * include <sys/resource.h>.
a845a0d4 836 */
88fdc172 837#$i_sysresrc I_SYS_RESOURCE /**/
a845a0d4 838
88fdc172
SB
839/* I_SYS_SELECT:
840 * This symbol, if defined, indicates to the C program that it should
841 * include <sys/select.h> in order to get definition of struct timeval.
a845a0d4 842 */
88fdc172 843#$i_sysselct I_SYS_SELECT /**/
a845a0d4 844
88fdc172 845/* I_SYS_STAT:
a845a0d4 846 * This symbol, if defined, indicates to the C program that it should
88fdc172 847 * include <sys/stat.h>.
a845a0d4 848 */
88fdc172
SB
849#$i_sysstat I_SYS_STAT /**/
850
851/* I_SYS_TIMES:
a845a0d4 852 * This symbol, if defined, indicates to the C program that it should
88fdc172 853 * include <sys/times.h>.
a845a0d4 854 */
88fdc172
SB
855#$i_systimes I_SYS_TIMES /**/
856
857/* I_SYS_TYPES:
a845a0d4 858 * This symbol, if defined, indicates to the C program that it should
88fdc172 859 * include <sys/types.h>.
a845a0d4 860 */
88fdc172
SB
861#$i_systypes I_SYS_TYPES /**/
862
863/* I_SYS_UN:
864 * This symbol, if defined, indicates to the C program that it should
865 * include <sys/un.h> to get UNIX domain socket definitions.
a845a0d4 866 */
88fdc172
SB
867#$i_sysun I_SYS_UN /**/
868
869/* I_SYS_WAIT:
870 * This symbol, if defined, indicates to the C program that it should
871 * include <sys/wait.h>.
a845a0d4 872 */
88fdc172 873#$i_syswait I_SYS_WAIT /**/
a845a0d4 874
88fdc172
SB
875/* I_UNISTD:
876 * This symbol, if defined, indicates to the C program that it should
877 * include <unistd.h>.
a845a0d4 878 */
88fdc172 879#$i_unistd I_UNISTD /**/
a845a0d4 880
88fdc172
SB
881/* I_UTIME:
882 * This symbol, if defined, indicates to the C program that it should
883 * include <utime.h>.
a845a0d4 884 */
88fdc172 885#$i_utime I_UTIME /**/
a845a0d4 886
88fdc172
SB
887/* I_VALUES:
888 * This symbol, if defined, indicates to the C program that it should
889 * include <values.h> to get definition of symbols like MINFLOAT or
890 * MAXLONG, i.e. machine dependant limitations. Probably, you
891 * should use <limits.h> instead, if it is available.
a845a0d4 892 */
88fdc172
SB
893#$i_values I_VALUES /**/
894
895/* I_VFORK:
896 * This symbol, if defined, indicates to the C program that it should
897 * include vfork.h.
a845a0d4 898 */
88fdc172
SB
899#$i_vfork I_VFORK /**/
900
d03b3b00
MB
901/* CAN_VAPROTO:
902 * This variable is defined on systems supporting prototype declaration
903 * of functions with a variable number of arguments.
904 */
905/* _V:
906 * This macro is used to declare function parameters in prototypes for
907 * functions with a variable number of parameters. Use double parentheses.
908 * For example:
909 *
910 * int printf _V((char *fmt, ...));
911 *
912 * Remember to use the plain simple _() macro when declaring a function
913 * with no variable number of arguments, since it might be possible to
914 * have a non-effect _V() macro and still get prototypes via _().
915 */
916#$vaproto CAN_VAPROTO /**/
917#ifdef CAN_VAPROTO
918#define _V(args) args
919#else
920#define _V(args) ()
921#endif
922
06501368
MB
923/* OSNAME:
924 * This symbol contains the name of the operating system, as determined
925 * by Configure. You shouldn't rely on it too much; the specific
926 * feature tests from Configure are generally more reliable.
a845a0d4 927 */
06501368
MB
928/* OSVERS:
929 * This symbol contains the version of the operating system, as determined
930 * by Configure. You shouldn't rely on it too much; the specific
931 * feature tests from Configure are generally more reliable.
eaf812ae 932 */
06501368
MB
933#define OSNAME "$osname" /**/
934#define OSVERS "$osvers" /**/
eaf812ae 935
6e89a33a
MB
936/* MULTIARCH:
937 * This symbol, if defined, signifies that the build
938 * process will produce some binary files that are going to be
939 * used in a cross-platform environment. This is the case for
940 * example with the NeXT "fat" binaries that contain executables
941 * for several CPUs.
942 */
943#$multiarch MULTIARCH /**/
944
b8677e3b
MB
945/* MEM_ALIGNBYTES:
946 * This symbol contains the number of bytes required to align a
947 * double, or a long double when applicable. Usual values are 2,
588c1107
AD
948 * 4 and 8. The default is eight, for safety. For cross-compiling
949 * or multiarch support, Configure will set a minimum of 8.
b8677e3b 950 */
b8677e3b 951#define MEM_ALIGNBYTES $alignbytes
08c92000 952
08c92000
MB
953/* ARCHLIB:
954 * This variable, if defined, holds the name of the directory in
955 * which the user wants to put architecture-dependent public
956 * library files for $package. It is most often a local directory
957 * such as /usr/local/lib. Programs using this variable must be
958 * prepared to deal with filename expansion. If ARCHLIB is the
959 * same as PRIVLIB, it is not defined, since presumably the
960 * program already searches PRIVLIB.
961 */
962/* ARCHLIB_EXP:
963 * This symbol contains the ~name expanded version of ARCHLIB, to be used
964 * in programs that are not prepared to deal with ~ expansion at run-time.
965 */
966#$d_archlib ARCHLIB "$archlib" /**/
967#$d_archlib ARCHLIB_EXP "$archlibexp" /**/
968
969/* ARCHNAME:
970 * This symbol holds a string representing the architecture name.
971 * It may be used to construct an architecture-dependant pathname
972 * where library files may be held under a private library, for
973 * instance.
974 */
975#define ARCHNAME "$archname" /**/
976
08c92000
MB
977/* BIN:
978 * This symbol holds the path of the bin directory where the package will
979 * be installed. Program must be prepared to deal with ~name substitution.
980 */
981/* BIN_EXP:
982 * This symbol is the filename expanded version of the BIN symbol, for
983 * programs that do not want to deal with that at run-time.
984 */
f3f1a2d8
MB
985/* PERL_RELOCATABLE_INC:
986 * This symbol, if defined, indicates that we'd like to relocate entries
987 * in @INC at run time based on the location of the perl binary.
988 */
08c92000
MB
989#define BIN "$bin" /**/
990#define BIN_EXP "$binexp" /**/
122b9bf4 991#define PERL_RELOCATABLE_INC "$userelocatableinc" /**/
08c92000 992
06501368
MB
993/* INTSIZE:
994 * This symbol contains the value of sizeof(int) so that the C
995 * preprocessor can make decisions based on it.
996 */
997/* LONGSIZE:
998 * This symbol contains the value of sizeof(long) so that the C
999 * preprocessor can make decisions based on it.
1000 */
1001/* SHORTSIZE:
1002 * This symbol contains the value of sizeof(short) so that the C
1003 * preprocessor can make decisions based on it.
1004 */
1005#define INTSIZE $intsize /**/
1006#define LONGSIZE $longsize /**/
1007#define SHORTSIZE $shortsize /**/
1008
b8677e3b
MB
1009/* BYTEORDER:
1010 * This symbol holds the hexadecimal constant defined in byteorder,
1011 * in a UV, i.e. 0x1234 or 0x4321 or 0x12345678, etc...
1012 * If the compiler supports cross-compiling or multiple-architecture
f05550c0 1013 * binaries, use compiler-defined macros to
b8677e3b 1014 * determine the byte order.
08c92000 1015 */
c9d1bf8e 1016#if defined(MULTIARCH)
b8677e3b
MB
1017# ifdef __LITTLE_ENDIAN__
1018# if LONGSIZE == 4
1019# define BYTEORDER 0x1234
1020# else
1021# if LONGSIZE == 8
1022# define BYTEORDER 0x12345678
1023# endif
1024# endif
1025# else
1026# ifdef __BIG_ENDIAN__
1027# if LONGSIZE == 4
1028# define BYTEORDER 0x4321
1029# else
1030# if LONGSIZE == 8
1031# define BYTEORDER 0x87654321
1032# endif
1033# endif
1034# endif
1035# endif
b8677e3b
MB
1036#else
1037#define BYTEORDER 0x$byteorder /* large digits for MSB */
f05550c0 1038#endif
08c92000 1039
b8677e3b
MB
1040/* CHARBITS:
1041 * This symbol contains the size of a char, so that the C preprocessor
1042 * can make decisions based on it.
08c92000 1043 */
b8677e3b 1044#define CHARBITS $charbits /**/
08c92000 1045
06501368
MB
1046/* CAT2:
1047 * This macro concatenates 2 tokens together.
1048 */
1049/* STRINGIFY:
1050 * This macro surrounds its token with double quotes.
1051 */
1052#if $cpp_stuff == 1
1053#define CAT2(a,b) a/**/b
1054#define STRINGIFY(a) "a"
1055#endif
1056#if $cpp_stuff == 42
1057#define PeRl_CaTiFy(a, b) a ## b
1058#define PeRl_StGiFy(a) #a
1059#define CAT2(a,b) PeRl_CaTiFy(a,b)
1060#define StGiFy(a) PeRl_StGiFy(a)
1061#define STRINGIFY(a) PeRl_StGiFy(a)
1062#endif
1063#if $cpp_stuff != 1 && $cpp_stuff != 42
1064#include "Bletch: How does this C preprocessor concatenate tokens?"
1065#endif
1066
1067/* CPPSTDIN:
1068 * This symbol contains the first part of the string which will invoke
1069 * the C preprocessor on the standard input and produce to standard
1070 * output. Typical value of "cc -E" or "/lib/cpp", but it can also
1071 * call a wrapper. See CPPRUN.
1072 */
1073/* CPPMINUS:
1074 * This symbol contains the second part of the string which will invoke
1075 * the C preprocessor on the standard input and produce to standard
1076 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
1077 * to specify standard input, otherwise the value is "".
1078 */
1079/* CPPRUN:
1080 * This symbol contains the string which will invoke a C preprocessor on
1081 * the standard input and produce to standard output. It needs to end
1082 * with CPPLAST, after all other preprocessor flags have been specified.
1083 * The main difference with CPPSTDIN is that this program will never be a
1084 * pointer to a shell wrapper, i.e. it will be empty if no preprocessor is
1085 * available directly to the user. Note that it may well be different from
1086 * the preprocessor used to compile the C program.
1087 */
1088/* CPPLAST:
1089 * This symbol is intended to be used along with CPPRUN in the same manner
1090 * symbol CPPMINUS is used with CPPSTDIN. It contains either "-" or "".
1091 */
1092#define CPPSTDIN "$cppstdin"
1093#define CPPMINUS "$cppminus"
1094#define CPPRUN "$cpprun"
1095#define CPPLAST "$cpplast"
1096
1097/* HAS_ACCESS:
1098 * This manifest constant lets the C program know that the access()
1099 * system call is available to check for accessibility using real UID/GID.
1100 * (always present on UNIX.)
1101 */
1102#$d_access HAS_ACCESS /**/
1103
ed140128
AD
1104/* HAS_ACCESSX:
1105 * This symbol, if defined, indicates that the accessx routine is
1106 * available to do extended access checks.
eaf812ae 1107 */
ed140128 1108#$d_accessx HAS_ACCESSX /**/
eaf812ae 1109
08c92000
MB
1110/* HAS_ASCTIME_R:
1111 * This symbol, if defined, indicates that the asctime_r routine
1112 * is available to asctime re-entrantly.
1113 */
1114/* ASCTIME_R_PROTO:
1115 * This symbol encodes the prototype of asctime_r.
1116 * It is zero if d_asctime_r is undef, and one of the
1117 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_asctime_r
1118 * is defined.
1119 */
1120#$d_asctime_r HAS_ASCTIME_R /**/
1121#define ASCTIME_R_PROTO $asctime_r_proto /**/
1122
06501368
MB
1123/* HASATTRIBUTE_FORMAT:
1124 * Can we handle GCC attribute for checking printf-style formats
1125 */
1126/* PRINTF_FORMAT_NULL_OK:
1127 * Allows __printf__ format to be null when checking printf-style
1128 */
1129/* HASATTRIBUTE_MALLOC:
1130 * Can we handle GCC attribute for malloc-style functions.
1131 */
1132/* HASATTRIBUTE_NONNULL:
1133 * Can we handle GCC attribute for nonnull function parms.
1134 */
1135/* HASATTRIBUTE_NORETURN:
1136 * Can we handle GCC attribute for functions that do not return
1137 */
1138/* HASATTRIBUTE_PURE:
1139 * Can we handle GCC attribute for pure functions
1140 */
1141/* HASATTRIBUTE_UNUSED:
1142 * Can we handle GCC attribute for unused variables and arguments
1143 */
1144/* HASATTRIBUTE_DEPRECATED:
1145 * Can we handle GCC attribute for marking deprecated APIs
1146 */
1147/* HASATTRIBUTE_WARN_UNUSED_RESULT:
1148 * Can we handle GCC attribute for warning on unused results
1149 */
1150#$d_attribute_deprecated HASATTRIBUTE_DEPRECATED /**/
1151#$d_attribute_format HASATTRIBUTE_FORMAT /**/
1152#$d_printf_format_null PRINTF_FORMAT_NULL_OK /**/
1153#$d_attribute_noreturn HASATTRIBUTE_NORETURN /**/
1154#$d_attribute_malloc HASATTRIBUTE_MALLOC /**/
1155#$d_attribute_nonnull HASATTRIBUTE_NONNULL /**/
1156#$d_attribute_pure HASATTRIBUTE_PURE /**/
1157#$d_attribute_unused HASATTRIBUTE_UNUSED /**/
1158#$d_attribute_warn_unused_result HASATTRIBUTE_WARN_UNUSED_RESULT /**/
1159
0e0c5f82
MB
1160/* HAS_BACKTRACE:
1161 * This symbol, if defined, indicates that the backtrace() routine is
1162 * available to get a stack trace. The <execinfo.h> header must be
1163 * included to use this routine.
1164 */
1165#$d_backtrace HAS_BACKTRACE /**/
1166
b8677e3b
MB
1167/* CASTI32:
1168 * This symbol is defined if the C compiler can cast negative
1169 * or large floating point numbers to 32-bit ints.
eaf812ae 1170 */
b8677e3b
MB
1171#$d_casti32 CASTI32 /**/
1172
1173/* CASTNEGFLOAT:
1174 * This symbol is defined if the C compiler can cast negative
1175 * numbers to unsigned longs, ints and shorts.
fcdf39cf 1176 */
b8677e3b
MB
1177/* CASTFLAGS:
1178 * This symbol contains flags that say what difficulties the compiler
1179 * has casting odd floating values to unsigned long:
1180 * 0 = ok
1181 * 1 = couldn't cast < 0
1182 * 2 = couldn't cast >= 0x80000000
1183 * 4 = couldn't cast in argument expression list
eaf812ae 1184 */
b8677e3b
MB
1185#$d_castneg CASTNEGFLOAT /**/
1186#define CASTFLAGS $castflags /**/
eaf812ae 1187
b8677e3b
MB
1188/* VOID_CLOSEDIR:
1189 * This symbol, if defined, indicates that the closedir() routine
1190 * does not return a value.
f244a502 1191 */
b8677e3b 1192#$d_void_closedir VOID_CLOSEDIR /**/
f244a502 1193
06501368
MB
1194/* HASCONST:
1195 * This symbol, if defined, indicates that this C compiler knows about
1196 * the const type. There is no need to actually test for that symbol
1197 * within your programs. The mere use of the "const" keyword will
1198 * trigger the necessary tests.
1199 */
1200#$d_const HASCONST /**/
1201#ifndef HASCONST
1202#define const
1203#endif
1204
08c92000
MB
1205/* HAS_CRYPT_R:
1206 * This symbol, if defined, indicates that the crypt_r routine
1207 * is available to crypt re-entrantly.
a845a0d4 1208 */
08c92000
MB
1209/* CRYPT_R_PROTO:
1210 * This symbol encodes the prototype of crypt_r.
1211 * It is zero if d_crypt_r is undef, and one of the
1212 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_crypt_r
1213 * is defined.
a845a0d4 1214 */
08c92000
MB
1215#$d_crypt_r HAS_CRYPT_R /**/
1216#define CRYPT_R_PROTO $crypt_r_proto /**/
a845a0d4 1217
06501368
MB
1218/* HAS_CSH:
1219 * This symbol, if defined, indicates that the C-shell exists.
1220 */
1221/* CSH:
1222 * This symbol, if defined, contains the full pathname of csh.
1223 */
1224#$d_csh HAS_CSH /**/
1225#ifdef HAS_CSH
1226#define CSH "$full_csh" /**/
1227#endif
1228
eaf812ae
MB
1229/* HAS_CTERMID_R:
1230 * This symbol, if defined, indicates that the ctermid_r routine
1231 * is available to ctermid re-entrantly.
1232 */
1233/* CTERMID_R_PROTO:
1234 * This symbol encodes the prototype of ctermid_r.
1235 * It is zero if d_ctermid_r is undef, and one of the
1236 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_ctermid_r
1237 * is defined.
1238 */
1239#$d_ctermid_r HAS_CTERMID_R /**/
1240#define CTERMID_R_PROTO $ctermid_r_proto /**/
1241
08c92000
MB
1242/* HAS_CTIME_R:
1243 * This symbol, if defined, indicates that the ctime_r routine
1244 * is available to ctime re-entrantly.
a845a0d4 1245 */
08c92000
MB
1246/* CTIME_R_PROTO:
1247 * This symbol encodes the prototype of ctime_r.
1248 * It is zero if d_ctime_r is undef, and one of the
1249 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_ctime_r
1250 * is defined.
a845a0d4 1251 */
08c92000
MB
1252#$d_ctime_r HAS_CTIME_R /**/
1253#define CTIME_R_PROTO $ctime_r_proto /**/
a845a0d4 1254
0e0c5f82
MB
1255/* HAS_DLADDR:
1256 * This symbol, if defined, indicates that the dladdr() routine is
20557826
MB
1257 * available to query dynamic linker information for an address.
1258 * The <dlfcn.h> header must be included to use this routine.
0e0c5f82
MB
1259 */
1260#$d_dladdr HAS_DLADDR /**/
1261
06501368
MB
1262/* SETUID_SCRIPTS_ARE_SECURE_NOW:
1263 * This symbol, if defined, indicates that the bug that prevents
1264 * setuid scripts from being secure is not present in this kernel.
1265 */
1266/* DOSUID:
1267 * This symbol, if defined, indicates that the C program should
1268 * check the script that it is executing for setuid/setgid bits, and
1269 * attempt to emulate setuid/setgid on systems that have disabled
1270 * setuid #! scripts because the kernel can't do it securely.
1271 * It is up to the package designer to make sure that this emulation
1272 * is done securely. Among other things, it should do an fstat on
1273 * the script it just opened to make sure it really is a setuid/setgid
1274 * script, it should make sure the arguments passed correspond exactly
1275 * to the argument on the #! line, and it should not trust any
1276 * subprocesses to which it must pass the filename rather than the
1277 * file descriptor of the script to be executed.
1278 */
1279#$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/
1280#$d_dosuid DOSUID /**/
1281
08c92000
MB
1282/* HAS_DRAND48_R:
1283 * This symbol, if defined, indicates that the drand48_r routine
1284 * is available to drand48 re-entrantly.
a845a0d4 1285 */
08c92000
MB
1286/* DRAND48_R_PROTO:
1287 * This symbol encodes the prototype of drand48_r.
1288 * It is zero if d_drand48_r is undef, and one of the
1289 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_drand48_r
1290 * is defined.
1291 */
1292#$d_drand48_r HAS_DRAND48_R /**/
1293#define DRAND48_R_PROTO $drand48_r_proto /**/
a845a0d4 1294
06501368
MB
1295/* HAS_DRAND48_PROTO:
1296 * This symbol, if defined, indicates that the system provides
1297 * a prototype for the drand48() function. Otherwise, it is up
1298 * to the program to supply one. A good guess is
1299 * extern double drand48(void);
1300 */
1301#$d_drand48proto HAS_DRAND48_PROTO /**/
1302
ed140128
AD
1303/* HAS_EACCESS:
1304 * This symbol, if defined, indicates that the eaccess routine is
1305 * available to do extended access checks.
1306 */
1307#$d_eaccess HAS_EACCESS /**/
1308
06501368
MB
1309/* HAS_ENDGRENT:
1310 * This symbol, if defined, indicates that the getgrent routine is
1311 * available for finalizing sequential access of the group database.
1312 */
1313#$d_endgrent HAS_ENDGRENT /**/
1314
08c92000
MB
1315/* HAS_ENDGRENT_R:
1316 * This symbol, if defined, indicates that the endgrent_r routine
1317 * is available to endgrent re-entrantly.
88fdc172 1318 */
08c92000
MB
1319/* ENDGRENT_R_PROTO:
1320 * This symbol encodes the prototype of endgrent_r.
1321 * It is zero if d_endgrent_r is undef, and one of the
1322 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endgrent_r
1323 * is defined.
88fdc172 1324 */
08c92000
MB
1325#$d_endgrent_r HAS_ENDGRENT_R /**/
1326#define ENDGRENT_R_PROTO $endgrent_r_proto /**/
1327
06501368
MB
1328/* HAS_ENDHOSTENT:
1329 * This symbol, if defined, indicates that the endhostent() routine is
1330 * available to close whatever was being used for host queries.
1331 */
1332#$d_endhent HAS_ENDHOSTENT /**/
1333
eaf812ae
MB
1334/* HAS_ENDHOSTENT_R:
1335 * This symbol, if defined, indicates that the endhostent_r routine
1336 * is available to endhostent re-entrantly.
1337 */
1338/* ENDHOSTENT_R_PROTO:
1339 * This symbol encodes the prototype of endhostent_r.
1340 * It is zero if d_endhostent_r is undef, and one of the
1341 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endhostent_r
1342 * is defined.
1343 */
1344#$d_endhostent_r HAS_ENDHOSTENT_R /**/
1345#define ENDHOSTENT_R_PROTO $endhostent_r_proto /**/
1346
06501368
MB
1347/* HAS_ENDNETENT:
1348 * This symbol, if defined, indicates that the endnetent() routine is
1349 * available to close whatever was being used for network queries.
1350 */
1351#$d_endnent HAS_ENDNETENT /**/
1352
eaf812ae
MB
1353/* HAS_ENDNETENT_R:
1354 * This symbol, if defined, indicates that the endnetent_r routine
1355 * is available to endnetent re-entrantly.
1356 */
1357/* ENDNETENT_R_PROTO:
1358 * This symbol encodes the prototype of endnetent_r.
1359 * It is zero if d_endnetent_r is undef, and one of the
1360 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endnetent_r
1361 * is defined.
1362 */
1363#$d_endnetent_r HAS_ENDNETENT_R /**/
1364#define ENDNETENT_R_PROTO $endnetent_r_proto /**/
1365
06501368
MB
1366/* HAS_ENDPROTOENT:
1367 * This symbol, if defined, indicates that the endprotoent() routine is
1368 * available to close whatever was being used for protocol queries.
1369 */
1370#$d_endpent HAS_ENDPROTOENT /**/
1371
eaf812ae
MB
1372/* HAS_ENDPROTOENT_R:
1373 * This symbol, if defined, indicates that the endprotoent_r routine
1374 * is available to endprotoent re-entrantly.
1375 */
1376/* ENDPROTOENT_R_PROTO:
1377 * This symbol encodes the prototype of endprotoent_r.
1378 * It is zero if d_endprotoent_r is undef, and one of the
1379 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endprotoent_r
1380 * is defined.
1381 */
1382#$d_endprotoent_r HAS_ENDPROTOENT_R /**/
1383#define ENDPROTOENT_R_PROTO $endprotoent_r_proto /**/
1384
06501368
MB
1385/* HAS_ENDPWENT:
1386 * This symbol, if defined, indicates that the getgrent routine is
1387 * available for finalizing sequential access of the passwd database.
1388 */
1389#$d_endpwent HAS_ENDPWENT /**/
1390
08c92000
MB
1391/* HAS_ENDPWENT_R:
1392 * This symbol, if defined, indicates that the endpwent_r routine
1393 * is available to endpwent re-entrantly.
88fdc172 1394 */
08c92000
MB
1395/* ENDPWENT_R_PROTO:
1396 * This symbol encodes the prototype of endpwent_r.
1397 * It is zero if d_endpwent_r is undef, and one of the
1398 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endpwent_r
1399 * is defined.
88fdc172 1400 */
08c92000
MB
1401#$d_endpwent_r HAS_ENDPWENT_R /**/
1402#define ENDPWENT_R_PROTO $endpwent_r_proto /**/
1403
06501368
MB
1404/* HAS_ENDSERVENT:
1405 * This symbol, if defined, indicates that the endservent() routine is
1406 * available to close whatever was being used for service queries.
1407 */
1408#$d_endsent HAS_ENDSERVENT /**/
1409
1410/* HAS_ENDSERVENT_R:
1411 * This symbol, if defined, indicates that the endservent_r routine
1412 * is available to endservent re-entrantly.
1413 */
1414/* ENDSERVENT_R_PROTO:
eaf812ae
MB
1415 * This symbol encodes the prototype of endservent_r.
1416 * It is zero if d_endservent_r is undef, and one of the
1417 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endservent_r
1418 * is defined.
1419 */
1420#$d_endservent_r HAS_ENDSERVENT_R /**/
1421#define ENDSERVENT_R_PROTO $endservent_r_proto /**/
1422
b8677e3b
MB
1423/* HAS_FD_SET:
1424 * This symbol, when defined, indicates presence of the fd_set typedef
1425 * in <sys/types.h>
a845a0d4 1426 */
b8677e3b 1427#$d_fd_set HAS_FD_SET /**/
a845a0d4 1428
06501368
MB
1429/* FLEXFILENAMES:
1430 * This symbol, if defined, indicates that the system supports filenames
1431 * longer than 14 characters.
1432 */
1433#$d_flexfnam FLEXFILENAMES /**/
1434
b8677e3b
MB
1435/* Gconvert:
1436 * This preprocessor macro is defined to convert a floating point
1437 * number to a string without a trailing decimal point. This
1438 * emulates the behavior of sprintf("%g"), but is sometimes much more
1439 * efficient. If gconvert() is not available, but gcvt() drops the
1440 * trailing decimal point, then gcvt() is used. If all else fails,
1441 * a macro using sprintf("%g") is used. Arguments for the Gconvert
1442 * macro are: value, number of digits, whether trailing zeros should
1443 * be retained, and the output buffer.
1444 * The usual values are:
1445 * d_Gconvert='gconvert((x),(n),(t),(b))'
1446 * d_Gconvert='gcvt((x),(n),(b))'
1447 * d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1448 * The last two assume trailing zeros should not be kept.
a845a0d4 1449 */
b8677e3b 1450#define Gconvert(x,n,t,b) $d_Gconvert
a845a0d4 1451
06501368
MB
1452/* HAS_GETGRENT:
1453 * This symbol, if defined, indicates that the getgrent routine is
1454 * available for sequential access of the group database.
1455 */
1456#$d_getgrent HAS_GETGRENT /**/
1457
08c92000
MB
1458/* HAS_GETGRENT_R:
1459 * This symbol, if defined, indicates that the getgrent_r routine
1460 * is available to getgrent re-entrantly.
a845a0d4 1461 */
08c92000
MB
1462/* GETGRENT_R_PROTO:
1463 * This symbol encodes the prototype of getgrent_r.
1464 * It is zero if d_getgrent_r is undef, and one of the
1465 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getgrent_r
1466 * is defined.
1467 */
1468#$d_getgrent_r HAS_GETGRENT_R /**/
1469#define GETGRENT_R_PROTO $getgrent_r_proto /**/
a845a0d4 1470
08c92000
MB
1471/* HAS_GETGRGID_R:
1472 * This symbol, if defined, indicates that the getgrgid_r routine
1473 * is available to getgrgid re-entrantly.
a845a0d4 1474 */
08c92000
MB
1475/* GETGRGID_R_PROTO:
1476 * This symbol encodes the prototype of getgrgid_r.
1477 * It is zero if d_getgrgid_r is undef, and one of the
1478 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getgrgid_r
1479 * is defined.
a845a0d4 1480 */
08c92000
MB
1481#$d_getgrgid_r HAS_GETGRGID_R /**/
1482#define GETGRGID_R_PROTO $getgrgid_r_proto /**/
a845a0d4 1483
08c92000
MB
1484/* HAS_GETGRNAM_R:
1485 * This symbol, if defined, indicates that the getgrnam_r routine
1486 * is available to getgrnam re-entrantly.
a845a0d4 1487 */
08c92000
MB
1488/* GETGRNAM_R_PROTO:
1489 * This symbol encodes the prototype of getgrnam_r.
1490 * It is zero if d_getgrnam_r is undef, and one of the
1491 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getgrnam_r
1492 * is defined.
a845a0d4 1493 */
08c92000
MB
1494#$d_getgrnam_r HAS_GETGRNAM_R /**/
1495#define GETGRNAM_R_PROTO $getgrnam_r_proto /**/
a845a0d4 1496
06501368
MB
1497/* HAS_GETHOSTBYADDR:
1498 * This symbol, if defined, indicates that the gethostbyaddr() routine is
1499 * available to look up hosts by their IP addresses.
1500 */
1501#$d_gethbyaddr HAS_GETHOSTBYADDR /**/
1502
1503/* HAS_GETHOSTBYNAME:
1504 * This symbol, if defined, indicates that the gethostbyname() routine is
1505 * available to look up host names in some data base or other.
1506 */
1507#$d_gethbyname HAS_GETHOSTBYNAME /**/
1508
1509/* HAS_GETHOSTENT:
1510 * This symbol, if defined, indicates that the gethostent() routine is
1511 * available to look up host names in some data base or another.
1512 */
1513#$d_gethent HAS_GETHOSTENT /**/
1514
1515/* HAS_GETHOSTNAME:
1516 * This symbol, if defined, indicates that the C program may use the
1517 * gethostname() routine to derive the host name. See also HAS_UNAME
1518 * and PHOSTNAME.
1519 */
1520/* HAS_UNAME:
1521 * This symbol, if defined, indicates that the C program may use the
1522 * uname() routine to derive the host name. See also HAS_GETHOSTNAME
1523 * and PHOSTNAME.
1524 */
1525/* PHOSTNAME:
1526 * This symbol, if defined, indicates the command to feed to the
1527 * popen() routine to derive the host name. See also HAS_GETHOSTNAME
1528 * and HAS_UNAME. Note that the command uses a fully qualified path,
1529 * so that it is safe even if used by a process with super-user
1530 * privileges.
1531 */
1532/* HAS_PHOSTNAME:
1533 * This symbol, if defined, indicates that the C program may use the
1534 * contents of PHOSTNAME as a command to feed to the popen() routine
1535 * to derive the host name.
1536 */
1537#$d_gethname HAS_GETHOSTNAME /**/
1538#$d_uname HAS_UNAME /**/
1539#$d_phostname HAS_PHOSTNAME /**/
1540#ifdef HAS_PHOSTNAME
1541#define PHOSTNAME "$aphostname" /* How to get the host name */
1542#endif
1543
eaf812ae
MB
1544/* HAS_GETHOSTBYADDR_R:
1545 * This symbol, if defined, indicates that the gethostbyaddr_r routine
1546 * is available to gethostbyaddr re-entrantly.
a845a0d4 1547 */
eaf812ae
MB
1548/* GETHOSTBYADDR_R_PROTO:
1549 * This symbol encodes the prototype of gethostbyaddr_r.
1550 * It is zero if d_gethostbyaddr_r is undef, and one of the
1551 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_gethostbyaddr_r
1552 * is defined.
a845a0d4 1553 */
eaf812ae
MB
1554#$d_gethostbyaddr_r HAS_GETHOSTBYADDR_R /**/
1555#define GETHOSTBYADDR_R_PROTO $gethostbyaddr_r_proto /**/
08c92000 1556
eaf812ae
MB
1557/* HAS_GETHOSTBYNAME_R:
1558 * This symbol, if defined, indicates that the gethostbyname_r routine
1559 * is available to gethostbyname re-entrantly.
a845a0d4 1560 */
eaf812ae
MB
1561/* GETHOSTBYNAME_R_PROTO:
1562 * This symbol encodes the prototype of gethostbyname_r.
1563 * It is zero if d_gethostbyname_r is undef, and one of the
1564 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_gethostbyname_r
08c92000 1565 * is defined.
a845a0d4 1566 */
eaf812ae
MB
1567#$d_gethostbyname_r HAS_GETHOSTBYNAME_R /**/
1568#define GETHOSTBYNAME_R_PROTO $gethostbyname_r_proto /**/
1569
1570/* HAS_GETHOSTENT_R:
1571 * This symbol, if defined, indicates that the gethostent_r routine
1572 * is available to gethostent re-entrantly.
1573 */
1574/* GETHOSTENT_R_PROTO:
1575 * This symbol encodes the prototype of gethostent_r.
1576 * It is zero if d_gethostent_r is undef, and one of the
1577 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_gethostent_r
1578 * is defined.
1579 */
1580#$d_gethostent_r HAS_GETHOSTENT_R /**/
1581#define GETHOSTENT_R_PROTO $gethostent_r_proto /**/
1582
06501368
MB
1583/* HAS_GETHOST_PROTOS:
1584 * This symbol, if defined, indicates that <netdb.h> includes
1585 * prototypes for gethostent(), gethostbyname(), and
1586 * gethostbyaddr(). Otherwise, it is up to the program to guess
1587 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
1588 */
1589#$d_gethostprotos HAS_GETHOST_PROTOS /**/
1590
eaf812ae
MB
1591/* HAS_GETLOGIN_R:
1592 * This symbol, if defined, indicates that the getlogin_r routine
1593 * is available to getlogin re-entrantly.
1594 */
1595/* GETLOGIN_R_PROTO:
1596 * This symbol encodes the prototype of getlogin_r.
1597 * It is zero if d_getlogin_r is undef, and one of the
1598 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getlogin_r
1599 * is defined.
1600 */
1601#$d_getlogin_r HAS_GETLOGIN_R /**/
1602#define GETLOGIN_R_PROTO $getlogin_r_proto /**/
1603
06501368
MB
1604/* HAS_GETNETBYADDR:
1605 * This symbol, if defined, indicates that the getnetbyaddr() routine is
1606 * available to look up networks by their IP addresses.
1607 */
1608#$d_getnbyaddr HAS_GETNETBYADDR /**/
1609
1610/* HAS_GETNETBYNAME:
1611 * This symbol, if defined, indicates that the getnetbyname() routine is
1612 * available to look up networks by their names.
1613 */
1614#$d_getnbyname HAS_GETNETBYNAME /**/
1615
1616/* HAS_GETNETENT:
1617 * This symbol, if defined, indicates that the getnetent() routine is
1618 * available to look up network names in some data base or another.
1619 */
1620#$d_getnent HAS_GETNETENT /**/
1621
eaf812ae
MB
1622/* HAS_GETNETBYADDR_R:
1623 * This symbol, if defined, indicates that the getnetbyaddr_r routine
1624 * is available to getnetbyaddr re-entrantly.
1625 */
1626/* GETNETBYADDR_R_PROTO:
1627 * This symbol encodes the prototype of getnetbyaddr_r.
1628 * It is zero if d_getnetbyaddr_r is undef, and one of the
1629 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getnetbyaddr_r
1630 * is defined.
1631 */
1632#$d_getnetbyaddr_r HAS_GETNETBYADDR_R /**/
1633#define GETNETBYADDR_R_PROTO $getnetbyaddr_r_proto /**/
1634
1635/* HAS_GETNETBYNAME_R:
1636 * This symbol, if defined, indicates that the getnetbyname_r routine
1637 * is available to getnetbyname re-entrantly.
1638 */
1639/* GETNETBYNAME_R_PROTO:
1640 * This symbol encodes the prototype of getnetbyname_r.
1641 * It is zero if d_getnetbyname_r is undef, and one of the
1642 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getnetbyname_r
1643 * is defined.
1644 */
1645#$d_getnetbyname_r HAS_GETNETBYNAME_R /**/
1646#define GETNETBYNAME_R_PROTO $getnetbyname_r_proto /**/
1647
1648/* HAS_GETNETENT_R:
1649 * This symbol, if defined, indicates that the getnetent_r routine
1650 * is available to getnetent re-entrantly.
1651 */
1652/* GETNETENT_R_PROTO:
1653 * This symbol encodes the prototype of getnetent_r.
1654 * It is zero if d_getnetent_r is undef, and one of the
1655 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getnetent_r
1656 * is defined.
1657 */
1658#$d_getnetent_r HAS_GETNETENT_R /**/
1659#define GETNETENT_R_PROTO $getnetent_r_proto /**/
1660
06501368
MB
1661/* HAS_GETNET_PROTOS:
1662 * This symbol, if defined, indicates that <netdb.h> includes
1663 * prototypes for getnetent(), getnetbyname(), and
1664 * getnetbyaddr(). Otherwise, it is up to the program to guess
1665 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
1666 */
1667#$d_getnetprotos HAS_GETNET_PROTOS /**/
1668
b8677e3b
MB
1669/* HAS_GETPAGESIZE:
1670 * This symbol, if defined, indicates that the getpagesize system call
1671 * is available to get system page size, which is the granularity of
1672 * many memory management calls.
a845a0d4 1673 */
b8677e3b 1674#$d_getpagsz HAS_GETPAGESIZE /**/
a845a0d4 1675
06501368
MB
1676/* HAS_GETPROTOENT:
1677 * This symbol, if defined, indicates that the getprotoent() routine is
1678 * available to look up protocols in some data base or another.
1679 */
1680#$d_getpent HAS_GETPROTOENT /**/
1681
1682/* HAS_GETPGRP:
1683 * This symbol, if defined, indicates that the getpgrp routine is
1684 * available to get the current process group.
1685 */
1686/* USE_BSD_GETPGRP:
1687 * This symbol, if defined, indicates that getpgrp needs one
1688 * arguments whereas USG one needs none.
1689 */
1690#$d_getpgrp HAS_GETPGRP /**/
1691#$d_bsdgetpgrp USE_BSD_GETPGRP /**/
1692
1693/* HAS_GETPROTOBYNAME:
1694 * This symbol, if defined, indicates that the getprotobyname()
1695 * routine is available to look up protocols by their name.
1696 */
1697/* HAS_GETPROTOBYNUMBER:
1698 * This symbol, if defined, indicates that the getprotobynumber()
1699 * routine is available to look up protocols by their number.
1700 */
1701#$d_getpbyname HAS_GETPROTOBYNAME /**/
1702#$d_getpbynumber HAS_GETPROTOBYNUMBER /**/
1703
eaf812ae
MB
1704/* HAS_GETPROTOBYNAME_R:
1705 * This symbol, if defined, indicates that the getprotobyname_r routine
1706 * is available to getprotobyname re-entrantly.
1707 */
1708/* GETPROTOBYNAME_R_PROTO:
1709 * This symbol encodes the prototype of getprotobyname_r.
1710 * It is zero if d_getprotobyname_r is undef, and one of the
1711 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getprotobyname_r
1712 * is defined.
1713 */
1714#$d_getprotobyname_r HAS_GETPROTOBYNAME_R /**/
1715#define GETPROTOBYNAME_R_PROTO $getprotobyname_r_proto /**/
1716
1717/* HAS_GETPROTOBYNUMBER_R:
1718 * This symbol, if defined, indicates that the getprotobynumber_r routine
1719 * is available to getprotobynumber re-entrantly.
1720 */
1721/* GETPROTOBYNUMBER_R_PROTO:
1722 * This symbol encodes the prototype of getprotobynumber_r.
1723 * It is zero if d_getprotobynumber_r is undef, and one of the
1724 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getprotobynumber_r
1725 * is defined.
1726 */
1727#$d_getprotobynumber_r HAS_GETPROTOBYNUMBER_R /**/
1728#define GETPROTOBYNUMBER_R_PROTO $getprotobynumber_r_proto /**/
1729
1730/* HAS_GETPROTOENT_R:
1731 * This symbol, if defined, indicates that the getprotoent_r routine
1732 * is available to getprotoent re-entrantly.
1733 */
1734/* GETPROTOENT_R_PROTO:
1735 * This symbol encodes the prototype of getprotoent_r.
1736 * It is zero if d_getprotoent_r is undef, and one of the
1737 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getprotoent_r
1738 * is defined.
1739 */
1740#$d_getprotoent_r HAS_GETPROTOENT_R /**/
1741#define GETPROTOENT_R_PROTO $getprotoent_r_proto /**/
1742
06501368
MB
1743/* HAS_GETPROTO_PROTOS:
1744 * This symbol, if defined, indicates that <netdb.h> includes
1745 * prototypes for getprotoent(), getprotobyname(), and
1746 * getprotobyaddr(). Otherwise, it is up to the program to guess
1747 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
1748 */
1749#$d_getprotoprotos HAS_GETPROTO_PROTOS /**/
1750
1751/* HAS_GETPWENT:
1752 * This symbol, if defined, indicates that the getpwent routine is
1753 * available for sequential access of the passwd database.
1754 * If this is not available, the older getpw() function may be available.
1755 */
1756#$d_getpwent HAS_GETPWENT /**/
1757
08c92000
MB
1758/* HAS_GETPWENT_R:
1759 * This symbol, if defined, indicates that the getpwent_r routine
1760 * is available to getpwent re-entrantly.
a845a0d4 1761 */
08c92000
MB
1762/* GETPWENT_R_PROTO:
1763 * This symbol encodes the prototype of getpwent_r.
1764 * It is zero if d_getpwent_r is undef, and one of the
1765 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getpwent_r
1766 * is defined.
a845a0d4 1767 */
08c92000
MB
1768#$d_getpwent_r HAS_GETPWENT_R /**/
1769#define GETPWENT_R_PROTO $getpwent_r_proto /**/
a845a0d4 1770
08c92000
MB
1771/* HAS_GETPWNAM_R:
1772 * This symbol, if defined, indicates that the getpwnam_r routine
1773 * is available to getpwnam re-entrantly.
a845a0d4 1774 */
08c92000
MB
1775/* GETPWNAM_R_PROTO:
1776 * This symbol encodes the prototype of getpwnam_r.
1777 * It is zero if d_getpwnam_r is undef, and one of the
1778 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getpwnam_r
1779 * is defined.
a845a0d4 1780 */
08c92000
MB
1781#$d_getpwnam_r HAS_GETPWNAM_R /**/
1782#define GETPWNAM_R_PROTO $getpwnam_r_proto /**/
a845a0d4 1783
08c92000
MB
1784/* HAS_GETPWUID_R:
1785 * This symbol, if defined, indicates that the getpwuid_r routine
1786 * is available to getpwuid re-entrantly.
10bc17b6 1787 */
08c92000
MB
1788/* GETPWUID_R_PROTO:
1789 * This symbol encodes the prototype of getpwuid_r.
1790 * It is zero if d_getpwuid_r is undef, and one of the
1791 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getpwuid_r
1792 * is defined.
a845a0d4 1793 */
08c92000
MB
1794#$d_getpwuid_r HAS_GETPWUID_R /**/
1795#define GETPWUID_R_PROTO $getpwuid_r_proto /**/
a845a0d4 1796
06501368
MB
1797/* HAS_GETSERVENT:
1798 * This symbol, if defined, indicates that the getservent() routine is
1799 * available to look up network services in some data base or another.
1800 */
1801#$d_getsent HAS_GETSERVENT /**/
1802
eaf812ae
MB
1803/* HAS_GETSERVBYNAME_R:
1804 * This symbol, if defined, indicates that the getservbyname_r routine
1805 * is available to getservbyname re-entrantly.
1806 */
1807/* GETSERVBYNAME_R_PROTO:
1808 * This symbol encodes the prototype of getservbyname_r.
1809 * It is zero if d_getservbyname_r is undef, and one of the
1810 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getservbyname_r
1811 * is defined.
1812 */
1813#$d_getservbyname_r HAS_GETSERVBYNAME_R /**/
1814#define GETSERVBYNAME_R_PROTO $getservbyname_r_proto /**/
1815
1816/* HAS_GETSERVBYPORT_R:
1817 * This symbol, if defined, indicates that the getservbyport_r routine
1818 * is available to getservbyport re-entrantly.
1819 */
1820/* GETSERVBYPORT_R_PROTO:
1821 * This symbol encodes the prototype of getservbyport_r.
1822 * It is zero if d_getservbyport_r is undef, and one of the
1823 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getservbyport_r
1824 * is defined.
1825 */
1826#$d_getservbyport_r HAS_GETSERVBYPORT_R /**/
1827#define GETSERVBYPORT_R_PROTO $getservbyport_r_proto /**/
1828
1829/* HAS_GETSERVENT_R:
1830 * This symbol, if defined, indicates that the getservent_r routine
1831 * is available to getservent re-entrantly.
1832 */
1833/* GETSERVENT_R_PROTO:
1834 * This symbol encodes the prototype of getservent_r.
1835 * It is zero if d_getservent_r is undef, and one of the
1836 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getservent_r
1837 * is defined.
1838 */
1839#$d_getservent_r HAS_GETSERVENT_R /**/
1840#define GETSERVENT_R_PROTO $getservent_r_proto /**/
1841
06501368
MB
1842/* HAS_GETSERV_PROTOS:
1843 * This symbol, if defined, indicates that <netdb.h> includes
1844 * prototypes for getservent(), getservbyname(), and
1845 * getservbyaddr(). Otherwise, it is up to the program to guess
1846 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
1847 */
1848#$d_getservprotos HAS_GETSERV_PROTOS /**/
1849
08c92000
MB
1850/* HAS_GETSPNAM_R:
1851 * This symbol, if defined, indicates that the getspnam_r routine
1852 * is available to getspnam re-entrantly.
a845a0d4 1853 */
08c92000
MB
1854/* GETSPNAM_R_PROTO:
1855 * This symbol encodes the prototype of getspnam_r.
1856 * It is zero if d_getspnam_r is undef, and one of the
1857 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getspnam_r
1858 * is defined.
a845a0d4 1859 */
08c92000
MB
1860#$d_getspnam_r HAS_GETSPNAM_R /**/
1861#define GETSPNAM_R_PROTO $getspnam_r_proto /**/
a845a0d4 1862
06501368
MB
1863/* HAS_GETSERVBYNAME:
1864 * This symbol, if defined, indicates that the getservbyname()
1865 * routine is available to look up services by their name.
1866 */
1867/* HAS_GETSERVBYPORT:
1868 * This symbol, if defined, indicates that the getservbyport()
1869 * routine is available to look up services by their port.
1870 */
1871#$d_getsbyname HAS_GETSERVBYNAME /**/
1872#$d_getsbyport HAS_GETSERVBYPORT /**/
1873
08c92000
MB
1874/* HAS_GMTIME_R:
1875 * This symbol, if defined, indicates that the gmtime_r routine
1876 * is available to gmtime re-entrantly.
1877 */
1878/* GMTIME_R_PROTO:
1879 * This symbol encodes the prototype of gmtime_r.
1880 * It is zero if d_gmtime_r is undef, and one of the
1881 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_gmtime_r
1882 * is defined.
1883 */
1884#$d_gmtime_r HAS_GMTIME_R /**/
1885#define GMTIME_R_PROTO $gmtime_r_proto /**/
1886
b8677e3b
MB
1887/* HAS_GNULIBC:
1888 * This symbol, if defined, indicates to the C program that
1889 * the GNU C library is being used. A better check is to use
1890 * the __GLIBC__ and __GLIBC_MINOR__ symbols supplied with glibc.
a845a0d4 1891 */
b8677e3b
MB
1892#$d_gnulibc HAS_GNULIBC /**/
1893#if defined(HAS_GNULIBC) && !defined(_GNU_SOURCE)
1894# define _GNU_SOURCE
1895#endif
1896
06501368
MB
1897/* HAS_HTONL:
1898 * This symbol, if defined, indicates that the htonl() routine (and
1899 * friends htons() ntohl() ntohs()) are available to do network
1900 * order byte swapping.
1901 */
1902/* HAS_HTONS:
1903 * This symbol, if defined, indicates that the htons() routine (and
1904 * friends htonl() ntohl() ntohs()) are available to do network
1905 * order byte swapping.
1906 */
1907/* HAS_NTOHL:
1908 * This symbol, if defined, indicates that the ntohl() routine (and
1909 * friends htonl() htons() ntohs()) are available to do network
1910 * order byte swapping.
1911 */
1912/* HAS_NTOHS:
1913 * This symbol, if defined, indicates that the ntohs() routine (and
1914 * friends htonl() htons() ntohl()) are available to do network
1915 * order byte swapping.
1916 */
1917#$d_htonl HAS_HTONL /**/
1918#$d_htonl HAS_HTONS /**/
1919#$d_htonl HAS_NTOHL /**/
1920#$d_htonl HAS_NTOHS /**/
1921
b8677e3b
MB
1922/* HAS_ISASCII:
1923 * This manifest constant lets the C program know that isascii
1924 * is available.
a845a0d4 1925 */
b8677e3b
MB
1926#$d_isascii HAS_ISASCII /**/
1927
1928/* HAS_LCHOWN:
1929 * This symbol, if defined, indicates that the lchown routine is
1930 * available to operate on a symbolic link (instead of following the
1931 * link).
a845a0d4 1932 */
b8677e3b 1933#$d_lchown HAS_LCHOWN /**/
a845a0d4 1934
08c92000
MB
1935/* HAS_LOCALTIME_R:
1936 * This symbol, if defined, indicates that the localtime_r routine
1937 * is available to localtime re-entrantly.
1938 */
f025e94b
MB
1939/* LOCALTIME_R_NEEDS_TZSET:
1940 * Many libc's localtime_r implementations do not call tzset,
1941 * making them differ from localtime(), and making timezone
47d847ba 1942 * changes using \$ENV{TZ} without explicitly calling tzset
f025e94b
MB
1943 * impossible. This symbol makes us call tzset before localtime_r
1944 */
8572b25d
BH
1945#$d_localtime_r_needs_tzset LOCALTIME_R_NEEDS_TZSET /**/
1946#ifdef LOCALTIME_R_NEEDS_TZSET
1947#define L_R_TZSET tzset(),
1948#else
1949#define L_R_TZSET
1950#endif
1951
08c92000
MB
1952/* LOCALTIME_R_PROTO:
1953 * This symbol encodes the prototype of localtime_r.
1954 * It is zero if d_localtime_r is undef, and one of the
1955 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_localtime_r
1956 * is defined.
1957 */
1958#$d_localtime_r HAS_LOCALTIME_R /**/
1959#define LOCALTIME_R_PROTO $localtime_r_proto /**/
1960
06501368
MB
1961/* HAS_LONG_DOUBLE:
1962 * This symbol will be defined if the C compiler supports long
1963 * doubles.
08c92000 1964 */
06501368
MB
1965/* LONG_DOUBLESIZE:
1966 * This symbol contains the size of a long double, so that the
1967 * C preprocessor can make decisions based on it. It is only
1968 * defined if the system supports long doubles.
a845a0d4 1969 */
db8b8c75
MB
1970/* HAS_LDEXPL:
1971 * This symbol, if defined, indicates that the ldexpl routine is
1972 * available to shift a long double floating-point number
1973 * by an integral power of 2.
1974 */
dc91db6c
JH
1975/* LONG_DOUBLEKIND:
1976 * LONG_DOUBLEKIND will be one of
1977 * LONG_DOUBLE_IS_DOUBLE
1978 * LONG_DOUBLE_IS_IEEE_754_128_BIT_LITTLE_ENDIAN
1979 * LONG_DOUBLE_IS_IEEE_754_128_BIT_BIG_ENDIAN
1980 * LONG_DOUBLE_IS_X86_80_BIT_LITTLE_ENDIAN
1981 * LONG_DOUBLE_IS_X86_80_BIT_BIG_ENDIAN
1982 * LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_LITTLE_ENDIAN
1983 * LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_BIG_ENDIAN
1984 * LONG_DOUBLE_IS_UNKNOWN_FORMAT
1985 * It is only defined if the system supports long doubles.
1986 */
db8b8c75 1987#$d_ldexpl HAS_LDEXPL /**/
06501368
MB
1988#$d_longdbl HAS_LONG_DOUBLE /**/
1989#ifdef HAS_LONG_DOUBLE
1990#define LONG_DOUBLESIZE $longdblsize /**/
dc91db6c
JH
1991#define LONG_DOUBLEKIND $longdblkind /**/
1992#define LONG_DOUBLE_IS_DOUBLE 0
1993#define LONG_DOUBLE_IS_IEEE_754_128_BIT_LITTLE_ENDIAN 1
1994#define LONG_DOUBLE_IS_IEEE_754_128_BIT_BIG_ENDIAN 2
1995#define LONG_DOUBLE_IS_X86_80_BIT_LITTLE_ENDIAN 3
1996#define LONG_DOUBLE_IS_X86_80_BIT_BIG_ENDIAN 4
1997#define LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_LITTLE_ENDIAN 5
1998#define LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_BIG_ENDIAN 6
1999#define LONG_DOUBLE_IS_UNKNOWN_FORMAT -1
06501368 2000#endif
a845a0d4 2001
06501368
MB
2002/* HAS_LONG_LONG:
2003 * This symbol will be defined if the C compiler supports long long.
eaf812ae 2004 */
06501368
MB
2005/* LONGLONGSIZE:
2006 * This symbol contains the size of a long long, so that the
2007 * C preprocessor can make decisions based on it. It is only
2008 * defined if the system supports long long.
2009 */
2010#$d_longlong HAS_LONG_LONG /**/
2011#ifdef HAS_LONG_LONG
2012#define LONGLONGSIZE $longlongsize /**/
2013#endif
eaf812ae 2014
06501368
MB
2015/* HAS_LSEEK_PROTO:
2016 * This symbol, if defined, indicates that the system provides
2017 * a prototype for the lseek() function. Otherwise, it is up
2018 * to the program to supply one. A good guess is
2019 * extern off_t lseek(int, off_t, int);
a845a0d4 2020 */
06501368
MB
2021#$d_lseekproto HAS_LSEEK_PROTO /**/
2022
2023/* HAS_MEMCHR:
2024 * This symbol, if defined, indicates that the memchr routine is available
2025 * to locate characters within a C string.
a845a0d4 2026 */
06501368
MB
2027#$d_memchr HAS_MEMCHR /**/
2028
2029/* HAS_MKSTEMP:
2030 * This symbol, if defined, indicates that the mkstemp routine is
2031 * available to exclusively create and open a uniquely named
2032 * temporary file.
2033 */
2034#$d_mkstemp HAS_MKSTEMP /**/
2035
2036/* HAS_MMAP:
2037 * This symbol, if defined, indicates that the mmap system call is
2038 * available to map a file into memory.
2039 */
2040/* Mmap_t:
2041 * This symbol holds the return type of the mmap() system call
2042 * (and simultaneously the type of the first argument).
2043 * Usually set to 'void *' or 'caddr_t'.
2044 */
2045#$d_mmap HAS_MMAP /**/
2046#define Mmap_t $mmaptype /**/
2047
2048/* HAS_MSG:
2049 * This symbol, if defined, indicates that the entire msg*(2) library is
2050 * supported (IPC mechanism based on message queues).
2051 */
2052#$d_msg HAS_MSG /**/
2053
2054/* HAS_OPEN3:
2055 * This manifest constant lets the C program know that the three
2056 * argument form of open(2) is available.
2057 */
2058#$d_open3 HAS_OPEN3 /**/
2059
2060/* OLD_PTHREAD_CREATE_JOINABLE:
2061 * This symbol, if defined, indicates how to create pthread
2062 * in joinable (aka undetached) state. NOTE: not defined
2063 * if pthread.h already has defined PTHREAD_CREATE_JOINABLE
2064 * (the new version of the constant).
2065 * If defined, known values are PTHREAD_CREATE_UNDETACHED
2066 * and __UNDETACHED.
2067 */
2068#$d_old_pthread_create_joinable OLD_PTHREAD_CREATE_JOINABLE $old_pthread_create_joinable /**/
2069
2070/* HAS_PTHREAD_ATFORK:
2071 * This symbol, if defined, indicates that the pthread_atfork routine
2072 * is available to setup fork handlers.
2073 */
2074#$d_pthread_atfork HAS_PTHREAD_ATFORK /**/
2075
2076/* HAS_PTHREAD_YIELD:
2077 * This symbol, if defined, indicates that the pthread_yield
2078 * routine is available to yield the execution of the current
2079 * thread. sched_yield is preferable to pthread_yield.
2080 */
2081/* SCHED_YIELD:
2082 * This symbol defines the way to yield the execution of
2083 * the current thread. Known ways are sched_yield,
2084 * pthread_yield, and pthread_yield with NULL.
2085 */
2086/* HAS_SCHED_YIELD:
2087 * This symbol, if defined, indicates that the sched_yield
08c92000
MB
2088 * routine is available to yield the execution of the current
2089 * thread. sched_yield is preferable to pthread_yield.
2090 */
2091#$d_pthread_yield HAS_PTHREAD_YIELD /**/
2092#define SCHED_YIELD $sched_yield /**/
2093#$d_sched_yield HAS_SCHED_YIELD /**/
a845a0d4 2094
08c92000
MB
2095/* HAS_RANDOM_R:
2096 * This symbol, if defined, indicates that the random_r routine
2097 * is available to random re-entrantly.
a845a0d4 2098 */
08c92000
MB
2099/* RANDOM_R_PROTO:
2100 * This symbol encodes the prototype of random_r.
2101 * It is zero if d_random_r is undef, and one of the
2102 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_random_r
2103 * is defined.
a845a0d4 2104 */
08c92000
MB
2105#$d_random_r HAS_RANDOM_R /**/
2106#define RANDOM_R_PROTO $random_r_proto /**/
a845a0d4 2107
eaf812ae
MB
2108/* HAS_READDIR64_R:
2109 * This symbol, if defined, indicates that the readdir64_r routine
2110 * is available to readdir64 re-entrantly.
2111 */
2112/* READDIR64_R_PROTO:
2113 * This symbol encodes the prototype of readdir64_r.
2114 * It is zero if d_readdir64_r is undef, and one of the
2115 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_readdir64_r
2116 * is defined.
2117 */
2118#$d_readdir64_r HAS_READDIR64_R /**/
2119#define READDIR64_R_PROTO $readdir64_r_proto /**/
2120
08c92000
MB
2121/* HAS_READDIR_R:
2122 * This symbol, if defined, indicates that the readdir_r routine
2123 * is available to readdir re-entrantly.
a845a0d4 2124 */
08c92000
MB
2125/* READDIR_R_PROTO:
2126 * This symbol encodes the prototype of readdir_r.
2127 * It is zero if d_readdir_r is undef, and one of the
2128 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_readdir_r
2129 * is defined.
2130 */
2131#$d_readdir_r HAS_READDIR_R /**/
2132#define READDIR_R_PROTO $readdir_r_proto /**/
a845a0d4 2133
b8677e3b
MB
2134/* HAS_SAFE_BCOPY:
2135 * This symbol, if defined, indicates that the bcopy routine is available
2136 * to copy potentially overlapping memory blocks. Normally, you should
2137 * probably use memmove() or memcpy(). If neither is defined, roll your
2138 * own version.
08c92000 2139 */
b8677e3b 2140#$d_safebcpy HAS_SAFE_BCOPY /**/
08c92000 2141
b8677e3b
MB
2142/* HAS_SAFE_MEMCPY:
2143 * This symbol, if defined, indicates that the memcpy routine is available
2144 * to copy potentially overlapping memory blocks. If you need to
2145 * copy overlapping memory blocks, you should check HAS_MEMMOVE and
2146 * use memmove() instead, if available.
08c92000 2147 */
b8677e3b
MB
2148#$d_safemcpy HAS_SAFE_MEMCPY /**/
2149
2150/* HAS_SANE_MEMCMP:
2151 * This symbol, if defined, indicates that the memcmp routine is available
2152 * and can be used to compare relative magnitudes of chars with their high
2153 * bits set. If it is not defined, roll your own version.
2154 */
2155#$d_sanemcmp HAS_SANE_MEMCMP /**/
08c92000 2156
06501368
MB
2157/* HAS_SEM:
2158 * This symbol, if defined, indicates that the entire sem*(2) library is
2159 * supported.
2160 */
2161#$d_sem HAS_SEM /**/
2162
2163/* HAS_SETGRENT:
2164 * This symbol, if defined, indicates that the setgrent routine is
2165 * available for initializing sequential access of the group database.
2166 */
2167#$d_setgrent HAS_SETGRENT /**/
2168
08c92000
MB
2169/* HAS_SETGRENT_R:
2170 * This symbol, if defined, indicates that the setgrent_r routine
2171 * is available to setgrent re-entrantly.
2172 */
2173/* SETGRENT_R_PROTO:
2174 * This symbol encodes the prototype of setgrent_r.
2175 * It is zero if d_setgrent_r is undef, and one of the
2176 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setgrent_r
2177 * is defined.
2178 */
2179#$d_setgrent_r HAS_SETGRENT_R /**/
2180#define SETGRENT_R_PROTO $setgrent_r_proto /**/
2181
06501368
MB
2182/* HAS_SETHOSTENT:
2183 * This symbol, if defined, indicates that the sethostent() routine is
2184 * available.
2185 */
2186#$d_sethent HAS_SETHOSTENT /**/
2187
eaf812ae
MB
2188/* HAS_SETHOSTENT_R:
2189 * This symbol, if defined, indicates that the sethostent_r routine
2190 * is available to sethostent re-entrantly.
2191 */
2192/* SETHOSTENT_R_PROTO:
2193 * This symbol encodes the prototype of sethostent_r.
2194 * It is zero if d_sethostent_r is undef, and one of the
2195 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_sethostent_r
2196 * is defined.
2197 */
2198#$d_sethostent_r HAS_SETHOSTENT_R /**/
2199#define SETHOSTENT_R_PROTO $sethostent_r_proto /**/
2200
eaf812ae
MB
2201/* HAS_SETLOCALE_R:
2202 * This symbol, if defined, indicates that the setlocale_r routine
2203 * is available to setlocale re-entrantly.
2204 */
2205/* SETLOCALE_R_PROTO:
2206 * This symbol encodes the prototype of setlocale_r.
2207 * It is zero if d_setlocale_r is undef, and one of the
2208 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setlocale_r
2209 * is defined.
2210 */
2211#$d_setlocale_r HAS_SETLOCALE_R /**/
2212#define SETLOCALE_R_PROTO $setlocale_r_proto /**/
2213
06501368
MB
2214/* HAS_SETNETENT:
2215 * This symbol, if defined, indicates that the setnetent() routine is
2216 * available.
2217 */
2218#$d_setnent HAS_SETNETENT /**/
2219
eaf812ae
MB
2220/* HAS_SETNETENT_R:
2221 * This symbol, if defined, indicates that the setnetent_r routine
2222 * is available to setnetent re-entrantly.
2223 */
2224/* SETNETENT_R_PROTO:
2225 * This symbol encodes the prototype of setnetent_r.
2226 * It is zero if d_setnetent_r is undef, and one of the
2227 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setnetent_r
2228 * is defined.
2229 */
2230#$d_setnetent_r HAS_SETNETENT_R /**/
2231#define SETNETENT_R_PROTO $setnetent_r_proto /**/
2232
06501368
MB
2233/* HAS_SETPROTOENT:
2234 * This symbol, if defined, indicates that the setprotoent() routine is
2235 * available.
2236 */
2237#$d_setpent HAS_SETPROTOENT /**/
2238
2239/* HAS_SETPGRP:
2240 * This symbol, if defined, indicates that the setpgrp routine is
2241 * available to set the current process group.
2242 */
2243/* USE_BSD_SETPGRP:
2244 * This symbol, if defined, indicates that setpgrp needs two
2245 * arguments whereas USG one needs none. See also HAS_SETPGID
2246 * for a POSIX interface.
2247 */
2248#$d_setpgrp HAS_SETPGRP /**/
2249#$d_bsdsetpgrp USE_BSD_SETPGRP /**/
2250
eaf812ae
MB
2251/* HAS_SETPROTOENT_R:
2252 * This symbol, if defined, indicates that the setprotoent_r routine
2253 * is available to setprotoent re-entrantly.
2254 */
2255/* SETPROTOENT_R_PROTO:
2256 * This symbol encodes the prototype of setprotoent_r.
2257 * It is zero if d_setprotoent_r is undef, and one of the
2258 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setprotoent_r
2259 * is defined.
2260 */
2261#$d_setprotoent_r HAS_SETPROTOENT_R /**/
2262#define SETPROTOENT_R_PROTO $setprotoent_r_proto /**/
2263
06501368
MB
2264/* HAS_SETPWENT:
2265 * This symbol, if defined, indicates that the setpwent routine is
2266 * available for initializing sequential access of the passwd database.
2267 */
2268#$d_setpwent HAS_SETPWENT /**/
2269
08c92000
MB
2270/* HAS_SETPWENT_R:
2271 * This symbol, if defined, indicates that the setpwent_r routine
2272 * is available to setpwent re-entrantly.
2273 */
2274/* SETPWENT_R_PROTO:
2275 * This symbol encodes the prototype of setpwent_r.
2276 * It is zero if d_setpwent_r is undef, and one of the
2277 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setpwent_r
2278 * is defined.
2279 */
2280#$d_setpwent_r HAS_SETPWENT_R /**/
2281#define SETPWENT_R_PROTO $setpwent_r_proto /**/
2282
06501368
MB
2283/* HAS_SETSERVENT:
2284 * This symbol, if defined, indicates that the setservent() routine is
2285 * available.
2286 */
2287#$d_setsent HAS_SETSERVENT /**/
2288
eaf812ae
MB
2289/* HAS_SETSERVENT_R:
2290 * This symbol, if defined, indicates that the setservent_r routine
2291 * is available to setservent re-entrantly.
2292 */
2293/* SETSERVENT_R_PROTO:
2294 * This symbol encodes the prototype of setservent_r.
2295 * It is zero if d_setservent_r is undef, and one of the
2296 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setservent_r
2297 * is defined.
2298 */
2299#$d_setservent_r HAS_SETSERVENT_R /**/
2300#define SETSERVENT_R_PROTO $setservent_r_proto /**/
2301
06501368
MB
2302/* HAS_SETVBUF:
2303 * This symbol, if defined, indicates that the setvbuf routine is
2304 * available to change buffering on an open stdio stream.
2305 * to a line-buffered mode.
2306 */
2307#$d_setvbuf HAS_SETVBUF /**/
2308
2309/* HAS_SHM:
2310 * This symbol, if defined, indicates that the entire shm*(2) library is
2311 * supported.
2312 */
2313#$d_shm HAS_SHM /**/
2314
2315/* Shmat_t:
2316 * This symbol holds the return type of the shmat() system call.
2317 * Usually set to 'void *' or 'char *'.
2318 */
2319/* HAS_SHMAT_PROTOTYPE:
2320 * This symbol, if defined, indicates that the sys/shm.h includes
2321 * a prototype for shmat(). Otherwise, it is up to the program to
2322 * guess one. Shmat_t shmat(int, Shmat_t, int) is a good guess,
2323 * but not always right so it should be emitted by the program only
2324 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
2325 */
2326#define Shmat_t $shmattype /**/
2327#$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/
2328
b8677e3b
MB
2329/* HAS_SIGACTION:
2330 * This symbol, if defined, indicates that Vr4's sigaction() routine
2331 * is available.
eaf812ae 2332 */
b8677e3b 2333#$d_sigaction HAS_SIGACTION /**/
eaf812ae 2334
b8677e3b
MB
2335/* HAS_SIGSETJMP:
2336 * This variable indicates to the C program that the sigsetjmp()
2337 * routine is available to save the calling process's registers
2338 * and stack environment for later use by siglongjmp(), and
2339 * to optionally save the process's signal mask. See
2340 * Sigjmp_buf, Sigsetjmp, and Siglongjmp.
10bc17b6 2341 */
b8677e3b
MB
2342/* Sigjmp_buf:
2343 * This is the buffer type to be used with Sigsetjmp and Siglongjmp.
c7aff470 2344 */
b8677e3b
MB
2345/* Sigsetjmp:
2346 * This macro is used in the same way as sigsetjmp(), but will invoke
2347 * traditional setjmp() if sigsetjmp isn't available.
2348 * See HAS_SIGSETJMP.
b363b713 2349 */
b8677e3b
MB
2350/* Siglongjmp:
2351 * This macro is used in the same way as siglongjmp(), but will invoke
2352 * traditional longjmp() if siglongjmp isn't available.
2353 * See HAS_SIGSETJMP.
a7fea17f 2354 */
b8677e3b
MB
2355#$d_sigsetjmp HAS_SIGSETJMP /**/
2356#ifdef HAS_SIGSETJMP
2357#define Sigjmp_buf sigjmp_buf
2358#define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask))
2359#define Siglongjmp(buf,retval) siglongjmp((buf),(retval))
2360#else
2361#define Sigjmp_buf jmp_buf
2362#define Sigsetjmp(buf,save_mask) setjmp((buf))
2363#define Siglongjmp(buf,retval) longjmp((buf),(retval))
2364#endif
44b94491 2365
06501368
MB
2366/* HAS_SOCKET:
2367 * This symbol, if defined, indicates that the BSD socket interface is
2368 * supported.
2369 */
2370/* HAS_SOCKETPAIR:
2371 * This symbol, if defined, indicates that the BSD socketpair() call is
2372 * supported.
2373 */
2374/* HAS_MSG_CTRUNC:
2375 * This symbol, if defined, indicates that the MSG_CTRUNC is supported.
2376 * Checking just with #ifdef might not be enough because this symbol
2377 * has been known to be an enum.
2378 */
2379/* HAS_MSG_DONTROUTE:
2380 * This symbol, if defined, indicates that the MSG_DONTROUTE is supported.
2381 * Checking just with #ifdef might not be enough because this symbol
2382 * has been known to be an enum.
2383 */
2384/* HAS_MSG_OOB:
2385 * This symbol, if defined, indicates that the MSG_OOB is supported.
2386 * Checking just with #ifdef might not be enough because this symbol
2387 * has been known to be an enum.
2388 */
2389/* HAS_MSG_PEEK:
2390 * This symbol, if defined, indicates that the MSG_PEEK is supported.
2391 * Checking just with #ifdef might not be enough because this symbol
2392 * has been known to be an enum.
2393 */
2394/* HAS_MSG_PROXY:
2395 * This symbol, if defined, indicates that the MSG_PROXY is supported.
2396 * Checking just with #ifdef might not be enough because this symbol
2397 * has been known to be an enum.
2398 */
2399/* HAS_SCM_RIGHTS:
2400 * This symbol, if defined, indicates that the SCM_RIGHTS is supported.
2401 * Checking just with #ifdef might not be enough because this symbol
2402 * has been known to be an enum.
2403 */
2404/* HAS_SOCKADDR_SA_LEN:
2405 * This symbol, if defined, indicates that the struct sockaddr
2406 * structure has a member called sa_len, indicating the length of
2407 * the structure.
2408 */
18126d98
MB
2409/* HAS_SOCKADDR_IN6:
2410 * This symbol, if defined, indicates the availability of
2411 * struct sockaddr_in6;
2412 */
06501368
MB
2413/* HAS_SIN6_SCOPE_ID:
2414 * This symbol, if defined, indicates that the struct sockaddr_in6
2415 * structure has a member called sin6_scope_id.
2416 */
122b9bf4
MB
2417/* HAS_IP_MREQ:
2418 * This symbol, if defined, indicates the availability of
2419 * struct ip_mreq;
2420 */
3e06601f
MB
2421/* HAS_IP_MREQ_SOURCE:
2422 * This symbol, if defined, indicates the availability of
2423 * struct ip_mreq_source;
2424 */
18126d98
MB
2425/* HAS_IPV6_MREQ:
2426 * This symbol, if defined, indicates the availability of
2427 * struct ipv6_mreq;
2428 */
3e06601f
MB
2429/* HAS_IPV6_MREQ_SOURCE:
2430 * This symbol, if defined, indicates the availability of
2431 * struct ipv6_mreq_source;
2432 */
06501368
MB
2433#$d_socket HAS_SOCKET /**/
2434#$d_sockpair HAS_SOCKETPAIR /**/
2435#$d_sockaddr_sa_len HAS_SOCKADDR_SA_LEN /**/
2436#$d_msg_ctrunc HAS_MSG_CTRUNC /**/
2437#$d_msg_dontroute HAS_MSG_DONTROUTE /**/
2438#$d_msg_oob HAS_MSG_OOB /**/
2439#$d_msg_peek HAS_MSG_PEEK /**/
2440#$d_msg_proxy HAS_MSG_PROXY /**/
2441#$d_scm_rights HAS_SCM_RIGHTS /**/
18126d98 2442#$d_sockaddr_in6 HAS_SOCKADDR_IN6 /**/
06501368 2443#$d_sin6_scope_id HAS_SIN6_SCOPE_ID /**/
122b9bf4 2444#$d_ip_mreq HAS_IP_MREQ /**/
3e06601f 2445#$d_ip_mreq_source HAS_IP_MREQ_SOURCE /**/
18126d98 2446#$d_ipv6_mreq HAS_IPV6_MREQ /**/
3e06601f 2447#$d_ipv6_mreq_source HAS_IPV6_MREQ_SOURCE /**/
06501368 2448
08c92000
MB
2449/* HAS_SRAND48_R:
2450 * This symbol, if defined, indicates that the srand48_r routine
2451 * is available to srand48 re-entrantly.
2452 */
2453/* SRAND48_R_PROTO:
2454 * This symbol encodes the prototype of srand48_r.
2455 * It is zero if d_srand48_r is undef, and one of the
2456 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_srand48_r
2457 * is defined.
2458 */
2459#$d_srand48_r HAS_SRAND48_R /**/
2460#define SRAND48_R_PROTO $srand48_r_proto /**/
2461
2462/* HAS_SRANDOM_R:
2463 * This symbol, if defined, indicates that the srandom_r routine
2464 * is available to srandom re-entrantly.
2465 */
2466/* SRANDOM_R_PROTO:
2467 * This symbol encodes the prototype of srandom_r.
2468 * It is zero if d_srandom_r is undef, and one of the
2469 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_srandom_r
2470 * is defined.
2471 */
2472#$d_srandom_r HAS_SRANDOM_R /**/
2473#define SRANDOM_R_PROTO $srandom_r_proto /**/
2474
06501368
MB
2475/* USE_STAT_BLOCKS:
2476 * This symbol is defined if this system has a stat structure declaring
2477 * st_blksize and st_blocks.
2478 */
2479#ifndef USE_STAT_BLOCKS
2480#$d_statblks USE_STAT_BLOCKS /**/
2481#endif
2482
2483/* HAS_STATIC_INLINE:
2484 * This symbol, if defined, indicates that the C compiler supports
2485 * C99-style static inline. That is, the function can't be called
2486 * from another translation unit.
2487 */
2488/* PERL_STATIC_INLINE:
2489 * This symbol gives the best-guess incantation to use for static
2490 * inline functions. If HAS_STATIC_INLINE is defined, this will
2491 * give C99-style inline. If HAS_STATIC_INLINE is not defined,
2492 * this will give a plain 'static'. It will always be defined
2493 * to something that gives static linkage.
2494 * Possibilities include
2495 * static inline (c99)
2496 * static __inline__ (gcc -ansi)
2497 * static __inline (MSVC)
2498 * static _inline (older MSVC)
2499 * static (c89 compilers)
2500 */
2501#$d_static_inline HAS_STATIC_INLINE /**/
2502#define PERL_STATIC_INLINE $perl_static_inline /**/
2503
b8677e3b
MB
2504/* USE_STDIO_PTR:
2505 * This symbol is defined if the _ptr and _cnt fields (or similar)
2506 * of the stdio FILE structure can be used to access the stdio buffer
2507 * for a file handle. If this is defined, then the FILE_ptr(fp)
2508 * and FILE_cnt(fp) macros will also be defined and should be used
2509 * to access these fields.
a33c94aa 2510 */
b8677e3b
MB
2511/* FILE_ptr:
2512 * This macro is used to access the _ptr field (or equivalent) of the
2513 * FILE structure pointed to by its argument. This macro will always be
2514 * defined if USE_STDIO_PTR is defined.
43dddb59 2515 */
b8677e3b
MB
2516/* STDIO_PTR_LVALUE:
2517 * This symbol is defined if the FILE_ptr macro can be used as an
2518 * lvalue.
08c92000 2519 */
b8677e3b
MB
2520/* FILE_cnt:
2521 * This macro is used to access the _cnt field (or equivalent) of the
2522 * FILE structure pointed to by its argument. This macro will always be
2523 * defined if USE_STDIO_PTR is defined.
08c92000 2524 */
b8677e3b
MB
2525/* STDIO_CNT_LVALUE:
2526 * This symbol is defined if the FILE_cnt macro can be used as an
2527 * lvalue.
08c92000 2528 */
b8677e3b
MB
2529/* STDIO_PTR_LVAL_SETS_CNT:
2530 * This symbol is defined if using the FILE_ptr macro as an lvalue
2531 * to increase the pointer by n has the side effect of decreasing the
2532 * value of File_cnt(fp) by n.
2533 */
2534/* STDIO_PTR_LVAL_NOCHANGE_CNT:
2535 * This symbol is defined if using the FILE_ptr macro as an lvalue
2536 * to increase the pointer by n leaves File_cnt(fp) unchanged.
2537 */
2538#$d_stdstdio USE_STDIO_PTR /**/
2539#ifdef USE_STDIO_PTR
2540#define FILE_ptr(fp) $stdio_ptr
2541#$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/
2542#define FILE_cnt(fp) $stdio_cnt
2543#$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/
2544#$d_stdio_ptr_lval_sets_cnt STDIO_PTR_LVAL_SETS_CNT /**/
2545#$d_stdio_ptr_lval_nochange_cnt STDIO_PTR_LVAL_NOCHANGE_CNT /**/
2546#endif
2547
2548/* USE_STDIO_BASE:
2549 * This symbol is defined if the _base field (or similar) of the
2550 * stdio FILE structure can be used to access the stdio buffer for
2551 * a file handle. If this is defined, then the FILE_base(fp) macro
2552 * will also be defined and should be used to access this field.
2553 * Also, the FILE_bufsiz(fp) macro will be defined and should be used
2554 * to determine the number of bytes in the buffer. USE_STDIO_BASE
2555 * will never be defined unless USE_STDIO_PTR is.
2556 */
2557/* FILE_base:
2558 * This macro is used to access the _base field (or equivalent) of the
2559 * FILE structure pointed to by its argument. This macro will always be
2560 * defined if USE_STDIO_BASE is defined.
2561 */
2562/* FILE_bufsiz:
2563 * This macro is used to determine the number of bytes in the I/O
2564 * buffer pointed to by _base field (or equivalent) of the FILE
2565 * structure pointed to its argument. This macro will always be defined
2566 * if USE_STDIO_BASE is defined.
2567 */
2568#$d_stdiobase USE_STDIO_BASE /**/
2569#ifdef USE_STDIO_BASE
2570#define FILE_base(fp) $stdio_base
2571#define FILE_bufsiz(fp) $stdio_bufsiz
2572#endif
08c92000 2573
06501368
MB
2574/* USE_STRUCT_COPY:
2575 * This symbol, if defined, indicates that this C compiler knows how
2576 * to copy structures. If undefined, you'll need to use a block copy
2577 * routine of some sort instead.
2578 */
2579#$d_strctcpy USE_STRUCT_COPY /**/
2580
2581/* HAS_STRERROR:
2582 * This symbol, if defined, indicates that the strerror routine is
2583 * available to translate error numbers to strings. See the writeup
2584 * of Strerror() in this file before you try to define your own.
2585 */
2586/* HAS_SYS_ERRLIST:
2587 * This symbol, if defined, indicates that the sys_errlist array is
2588 * available to translate error numbers to strings. The extern int
2589 * sys_nerr gives the size of that table.
2590 */
2591/* Strerror:
2592 * This preprocessor symbol is defined as a macro if strerror() is
2593 * not available to translate error numbers to strings but sys_errlist[]
2594 * array is there.
2595 */
2596#$d_strerror HAS_STRERROR /**/
2597#$d_syserrlst HAS_SYS_ERRLIST /**/
2598#define Strerror(e) $d_strerrm
2599
08c92000
MB
2600/* HAS_STRERROR_R:
2601 * This symbol, if defined, indicates that the strerror_r routine
2602 * is available to strerror re-entrantly.
2603 */
2604/* STRERROR_R_PROTO:
2605 * This symbol encodes the prototype of strerror_r.
2606 * It is zero if d_strerror_r is undef, and one of the
2607 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_strerror_r
2608 * is defined.
2609 */
2610#$d_strerror_r HAS_STRERROR_R /**/
2611#define STRERROR_R_PROTO $strerror_r_proto /**/
2612
06501368
MB
2613/* HAS_STRTOUL:
2614 * This symbol, if defined, indicates that the strtoul routine is
2615 * available to provide conversion of strings to unsigned long.
2616 */
2617#$d_strtoul HAS_STRTOUL /**/
2618
2619/* HAS_TIME:
2620 * This symbol, if defined, indicates that the time() routine exists.
2621 */
2622/* Time_t:
2623 * This symbol holds the type returned by time(). It can be long,
2624 * or time_t on BSD sites (in which case <sys/types.h> should be
2625 * included).
2626 */
2627#$d_time HAS_TIME /**/
2628#define Time_t $timetype /* Time type */
2629
2630/* HAS_TIMES:
2631 * This symbol, if defined, indicates that the times() routine exists.
2632 * Note that this became obsolete on some systems (SUNOS), which now
2633 * use getrusage(). It may be necessary to include <sys/times.h>.
2634 */
2635#$d_times HAS_TIMES /**/
2636
2637/* HAS_TMPNAM_R:
08c92000
MB
2638 * This symbol, if defined, indicates that the tmpnam_r routine
2639 * is available to tmpnam re-entrantly.
2640 */
2641/* TMPNAM_R_PROTO:
2642 * This symbol encodes the prototype of tmpnam_r.
2643 * It is zero if d_tmpnam_r is undef, and one of the
2644 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_tmpnam_r
2645 * is defined.
2646 */
2647#$d_tmpnam_r HAS_TMPNAM_R /**/
2648#define TMPNAM_R_PROTO $tmpnam_r_proto /**/
2649
eaf812ae
MB
2650/* HAS_TTYNAME_R:
2651 * This symbol, if defined, indicates that the ttyname_r routine
2652 * is available to ttyname re-entrantly.
2653 */
2654/* TTYNAME_R_PROTO:
2655 * This symbol encodes the prototype of ttyname_r.
2656 * It is zero if d_ttyname_r is undef, and one of the
2657 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_ttyname_r
2658 * is defined.
2659 */
2660#$d_ttyname_r HAS_TTYNAME_R /**/
2661#define TTYNAME_R_PROTO $ttyname_r_proto /**/
2662
06501368
MB
2663/* HAS_UNION_SEMUN:
2664 * This symbol, if defined, indicates that the union semun is
2665 * defined by including <sys/sem.h>. If not, the user code
2666 * probably needs to define it as:
2667 * union semun {
2668 * int val;
2669 * struct semid_ds *buf;
2670 * unsigned short *array;
2671 * }
2672 */
2673/* USE_SEMCTL_SEMUN:
2674 * This symbol, if defined, indicates that union semun is
2675 * used for semctl IPC_STAT.
2676 */
2677/* USE_SEMCTL_SEMID_DS:
2678 * This symbol, if defined, indicates that struct semid_ds * is
2679 * used for semctl IPC_STAT.
2680 */
2681#$d_union_semun HAS_UNION_SEMUN /**/
2682#$d_semctl_semun USE_SEMCTL_SEMUN /**/
2683#$d_semctl_semid_ds USE_SEMCTL_SEMID_DS /**/
2684
2685/* HAS_VFORK:
2686 * This symbol, if defined, indicates that vfork() exists.
2687 */
2688#$d_vfork HAS_VFORK /**/
2689
2690/* HAS_PSEUDOFORK:
2691 * This symbol, if defined, indicates that an emulation of the
2692 * fork routine is available.
2693 */
2694#$d_pseudofork HAS_PSEUDOFORK /**/
2695
2696/* Signal_t:
2697 * This symbol's value is either "void" or "int", corresponding to the
2698 * appropriate return type of a signal handler. Thus, you can declare
2699 * a signal handler using "Signal_t (*handler)()", and define the
2700 * handler using "Signal_t handler(sig)".
2701 */
2702#define Signal_t $signal_t /* Signal handler's return type */
2703
2704/* HASVOLATILE:
2705 * This symbol, if defined, indicates that this C compiler knows about
2706 * the volatile declaration.
2707 */
2708#$d_volatile HASVOLATILE /**/
2709#ifndef HASVOLATILE
2710#define volatile
2711#endif
2712
b8677e3b
MB
2713/* HAS_VPRINTF:
2714 * This symbol, if defined, indicates that the vprintf routine is available
2715 * to printf with a pointer to an argument list. If unavailable, you
2716 * may need to write your own, probably in terms of _doprnt().
c5f05a91 2717 */
b8677e3b
MB
2718/* USE_CHAR_VSPRINTF:
2719 * This symbol is defined if this system has vsprintf() returning type
2720 * (char*). The trend seems to be to declare it as "int vsprintf()". It
2721 * is up to the package author to declare vsprintf correctly based on the
2722 * symbol.
233e16ce 2723 */
b8677e3b
MB
2724#$d_vprintf HAS_VPRINTF /**/
2725#$d_charvspr USE_CHAR_VSPRINTF /**/
233e16ce 2726
b8677e3b
MB
2727/* DOUBLESIZE:
2728 * This symbol contains the size of a double, so that the C preprocessor
2729 * can make decisions based on it.
a3540c92 2730 */
b8677e3b 2731#define DOUBLESIZE $doublesize /**/
a3540c92 2732
06501368 2733/* EBCDIC:
1332606d 2734 * This symbol, if defined, indicates that this system uses
06501368
MB
2735 * EBCDIC encoding.
2736 */
2737#$ebcdic EBCDIC /**/
2738
2739/* Fpos_t:
2740 * This symbol holds the type used to declare file positions in libc.
2741 * It can be fpos_t, long, uint, etc... It may be necessary to include
2742 * <sys/types.h> to get any typedef'ed information.
2743 */
2744#define Fpos_t $fpostype /* File position type */
2745
2746/* Gid_t_f:
2747 * This symbol defines the format string used for printing a Gid_t.
2748 */
2749#define Gid_t_f $gidformat /**/
2750
2751/* Gid_t_sign:
cfc2543a 2752 * This symbol holds the signedness of a Gid_t.
06501368
MB
2753 * 1 for unsigned, -1 for signed.
2754 */
2755#define Gid_t_sign $gidsign /* GID sign */
2756
2757/* Gid_t_size:
2758 * This symbol holds the size of a Gid_t in bytes.
2759 */
2760#define Gid_t_size $gidsize /* GID size */
2761
2762/* Gid_t:
2763 * This symbol holds the return type of getgid() and the type of
2764 * argument to setrgid() and related functions. Typically,
2765 * it is the type of group ids in the kernel. It can be int, ushort,
2766 * gid_t, etc... It may be necessary to include <sys/types.h> to get
2767 * any typedef'ed information.
2768 */
2769#define Gid_t $gidtype /* Type for getgid(), etc... */
2770
2771/* I_DIRENT:
2772 * This symbol, if defined, indicates to the C program that it should
2773 * include <dirent.h>. Using this symbol also triggers the definition
2774 * of the Direntry_t define which ends up being 'struct dirent' or
2775 * 'struct direct' depending on the availability of <dirent.h>.
2776 */
2777/* DIRNAMLEN:
2778 * This symbol, if defined, indicates to the C program that the length
2779 * of directory entry names is provided by a d_namlen field. Otherwise
2780 * you need to do strlen() on the d_name field.
2781 */
2782/* Direntry_t:
2783 * This symbol is set to 'struct direct' or 'struct dirent' depending on
2784 * whether dirent is available or not. You should use this pseudo type to
2785 * portably declare your directory entries.
2786 */
2787#$i_dirent I_DIRENT /**/
2788#$d_dirnamlen DIRNAMLEN /**/
2789#define Direntry_t $direntrytype
2790
0e0c5f82
MB
2791/* I_EXECINFO:
2792 * This symbol, if defined, indicates to the C program that it should
2793 * include <execinfo.h> for backtrace() support.
2794 */
2795#$i_execinfo I_EXECINFO /**/
2796
06501368
MB
2797/* I_GRP:
2798 * This symbol, if defined, indicates to the C program that it should
2799 * include <grp.h>.
2800 */
2801/* GRPASSWD:
2802 * This symbol, if defined, indicates to the C program that struct group
2803 * in <grp.h> contains gr_passwd.
2804 */
2805#$i_grp I_GRP /**/
2806#$d_grpasswd GRPASSWD /**/
2807
b8677e3b
MB
2808/* I_MACH_CTHREADS:
2809 * This symbol, if defined, indicates to the C program that it should
2810 * include <mach/cthreads.h>.
43dddb59 2811 */
b8677e3b 2812#$i_machcthr I_MACH_CTHREADS /**/
43dddb59 2813
06501368
MB
2814/* I_NDBM:
2815 * This symbol, if defined, indicates that <ndbm.h> exists and should
2816 * be included.
2817 */
2818/* I_GDBMNDBM:
2819 * This symbol, if defined, indicates that <gdbm/ndbm.h> exists and should
2820 * be included. This was the location of the ndbm.h compatibility file
2821 * in RedHat 7.1.
2822 */
2823/* I_GDBM_NDBM:
2824 * This symbol, if defined, indicates that <gdbm-ndbm.h> exists and should
2825 * be included. This is the location of the ndbm.h compatibility file
2826 * in Debian 4.0.
2827 */
2828/* NDBM_H_USES_PROTOTYPES:
2829 * This symbol, if defined, indicates that <ndbm.h> uses real ANSI C
2830 * prototypes instead of K&R style function declarations without any
2831 * parameter information. While ANSI C prototypes are supported in C++,
2832 * K&R style function declarations will yield errors.
2833 */
2834/* GDBMNDBM_H_USES_PROTOTYPES:
2835 * This symbol, if defined, indicates that <gdbm/ndbm.h> uses real ANSI C
2836 * prototypes instead of K&R style function declarations without any
2837 * parameter information. While ANSI C prototypes are supported in C++,
2838 * K&R style function declarations will yield errors.
2839 */
2840/* GDBM_NDBM_H_USES_PROTOTYPES:
2841 * This symbol, if defined, indicates that <gdbm-ndbm.h> uses real ANSI C
2842 * prototypes instead of K&R style function declarations without any
2843 * parameter information. While ANSI C prototypes are supported in C++,
2844 * K&R style function declarations will yield errors.
2845 */
2846#$i_ndbm I_NDBM /**/
2847#$i_gdbmndbm I_GDBMNDBM /**/
2848#$i_gdbm_ndbm I_GDBM_NDBM /**/
2849#$d_ndbm_h_uses_prototypes NDBM_H_USES_PROTOTYPES /**/
2850#$d_gdbmndbm_h_uses_prototypes GDBMNDBM_H_USES_PROTOTYPES /**/
2851#$d_gdbm_ndbm_h_uses_prototypes GDBM_NDBM_H_USES_PROTOTYPES /**/
2852
2853/* I_NETDB:
2854 * This symbol, if defined, indicates that <netdb.h> exists and
2855 * should be included.
2856 */
2857#$i_netdb I_NETDB /**/
2858
2859/* I_NET_ERRNO:
2860 * This symbol, if defined, indicates that <net/errno.h> exists and
2861 * should be included.
2862 */
2863#$i_neterrno I_NET_ERRNO /**/
2864
b8677e3b
MB
2865/* I_PTHREAD:
2866 * This symbol, if defined, indicates to the C program that it should
2867 * include <pthread.h>.
08c92000 2868 */
b8677e3b 2869#$i_pthread I_PTHREAD /**/
08c92000 2870
06501368
MB
2871/* I_PWD:
2872 * This symbol, if defined, indicates to the C program that it should
2873 * include <pwd.h>.
2874 */
2875/* PWQUOTA:
2876 * This symbol, if defined, indicates to the C program that struct passwd
2877 * contains pw_quota.
2878 */
2879/* PWAGE:
2880 * This symbol, if defined, indicates to the C program that struct passwd
2881 * contains pw_age.
2882 */
2883/* PWCHANGE:
2884 * This symbol, if defined, indicates to the C program that struct passwd
2885 * contains pw_change.
2886 */
2887/* PWCLASS:
2888 * This symbol, if defined, indicates to the C program that struct passwd
2889 * contains pw_class.
2890 */
2891/* PWEXPIRE:
2892 * This symbol, if defined, indicates to the C program that struct passwd
2893 * contains pw_expire.
2894 */
2895/* PWCOMMENT:
2896 * This symbol, if defined, indicates to the C program that struct passwd
2897 * contains pw_comment.
2898 */
2899/* PWGECOS:
2900 * This symbol, if defined, indicates to the C program that struct passwd
2901 * contains pw_gecos.
2902 */
2903/* PWPASSWD:
2904 * This symbol, if defined, indicates to the C program that struct passwd
2905 * contains pw_passwd.
2906 */
2907#$i_pwd I_PWD /**/
2908#$d_pwquota PWQUOTA /**/
2909#$d_pwage PWAGE /**/
2910#$d_pwchange PWCHANGE /**/
2911#$d_pwclass PWCLASS /**/
2912#$d_pwexpire PWEXPIRE /**/
2913#$d_pwcomment PWCOMMENT /**/
2914#$d_pwgecos PWGECOS /**/
2915#$d_pwpasswd PWPASSWD /**/
2916
b8677e3b
MB
2917/* I_SYS_ACCESS:
2918 * This symbol, if defined, indicates to the C program that it should
2919 * include <sys/access.h>.
08c92000 2920 */
b8677e3b 2921#$i_sysaccess I_SYS_ACCESS /**/
08c92000 2922
b8677e3b
MB
2923/* I_SYS_SECURITY:
2924 * This symbol, if defined, indicates to the C program that it should
2925 * include <sys/security.h>.
08c92000 2926 */
b8677e3b 2927#$i_syssecrt I_SYS_SECURITY /**/
08c92000 2928
06501368
MB
2929/* I_SYSUIO:
2930 * This symbol, if defined, indicates that <sys/uio.h> exists and
2931 * should be included.
2932 */
2933#$i_sysuio I_SYSUIO /**/
2934
0e0c5f82
MB
2935/* I_TERMIO:
2936 * This symbol, if defined, indicates that the program should include
2937 * <termio.h> rather than <sgtty.h>. There are also differences in
2938 * the ioctl() calls that depend on the value of this symbol.
2939 */
2940/* I_TERMIOS:
2941 * This symbol, if defined, indicates that the program should include
2942 * the POSIX termios.h rather than sgtty.h or termio.h.
2943 * There are also differences in the ioctl() calls that depend on the
2944 * value of this symbol.
2945 */
2946/* I_SGTTY:
2947 * This symbol, if defined, indicates that the program should include
2948 * <sgtty.h> rather than <termio.h>. There are also differences in
2949 * the ioctl() calls that depend on the value of this symbol.
2950 */
2951#$i_termio I_TERMIO /**/
2952#$i_termios I_TERMIOS /**/
2953#$i_sgtty I_SGTTY /**/
2954
b8677e3b
MB
2955/* I_TIME:
2956 * This symbol, if defined, indicates to the C program that it should
2957 * include <time.h>.
08c92000 2958 */
b8677e3b
MB
2959/* I_SYS_TIME:
2960 * This symbol, if defined, indicates to the C program that it should
2961 * include <sys/time.h>.
08c92000 2962 */
b8677e3b 2963/* I_SYS_TIME_KERNEL:
43dddb59 2964 * This symbol, if defined, indicates to the C program that it should
b8677e3b 2965 * include <sys/time.h> with KERNEL defined.
43dddb59 2966 */
b8677e3b
MB
2967/* HAS_TM_TM_ZONE:
2968 * This symbol, if defined, indicates to the C program that
2969 * the struct tm has a tm_zone field.
43dddb59 2970 */
b8677e3b
MB
2971/* HAS_TM_TM_GMTOFF:
2972 * This symbol, if defined, indicates to the C program that
2973 * the struct tm has a tm_gmtoff field.
43dddb59 2974 */
b8677e3b
MB
2975#$i_time I_TIME /**/
2976#$i_systime I_SYS_TIME /**/
2977#$i_systimek I_SYS_TIME_KERNEL /**/
2978#$d_tm_tm_zone HAS_TM_TM_ZONE /**/
2979#$d_tm_tm_gmtoff HAS_TM_TM_GMTOFF /**/
43dddb59 2980
06501368
MB
2981/* I_STDARG:
2982 * This symbol, if defined, indicates that <stdarg.h> exists and should
2983 * be included.
2984 */
2985/* I_VARARGS:
2986 * This symbol, if defined, indicates to the C program that it should
2987 * include <varargs.h>.
2988 */
2989#$i_stdarg I_STDARG /**/
2990#$i_varargs I_VARARGS /**/
2991
2992/* PERL_INC_VERSION_LIST:
2993 * This variable specifies the list of subdirectories in over
2994 * which perl.c:incpush() and lib/lib.pm will automatically
2995 * search when adding directories to @INC, in a format suitable
2996 * for a C initialization string. See the inc_version_list entry
2997 * in Porting/Glossary for more details.
08c92000 2998 */
b8677e3b 2999#$d_inc_version_list PERL_INC_VERSION_LIST $inc_version_list_init /**/
08c92000 3000
b8677e3b
MB
3001/* INSTALL_USR_BIN_PERL:
3002 * This symbol, if defined, indicates that Perl is to be installed
3003 * also as /usr/bin/perl.
08c92000 3004 */
b8677e3b 3005#$installusrbinperl INSTALL_USR_BIN_PERL /**/
08c92000 3006
06501368
MB
3007/* Off_t:
3008 * This symbol holds the type used to declare offsets in the kernel.
3009 * It can be int, long, off_t, etc... It may be necessary to include
3010 * <sys/types.h> to get any typedef'ed information.
3011 */
3012/* LSEEKSIZE:
3013 * This symbol holds the number of bytes used by the Off_t.
3014 */
3015/* Off_t_size:
3016 * This symbol holds the number of bytes used by the Off_t.
3017 */
3018#define Off_t $lseektype /* <offset> type */
3019#define LSEEKSIZE $lseeksize /* <offset> size */
3020#define Off_t_size $lseeksize /* <offset> size */
3021
3022/* Free_t:
3023 * This variable contains the return type of free(). It is usually
3024 * void, but occasionally int.
3025 */
3026/* Malloc_t:
3027 * This symbol is the type of pointer returned by malloc and realloc.
3028 */
3029#define Malloc_t $malloctype /**/
3030#define Free_t $freetype /**/
3031
3032/* PERL_MALLOC_WRAP:
3033 * This symbol, if defined, indicates that we'd like malloc wrap checks.
3034 */
3035#$usemallocwrap PERL_MALLOC_WRAP /**/
3036
3037/* MYMALLOC:
3038 * This symbol, if defined, indicates that we're using our own malloc.
3039 */
3040#$d_mymalloc MYMALLOC /**/
3041
3042/* Mode_t:
3043 * This symbol holds the type used to declare file modes
3044 * for systems calls. It is usually mode_t, but may be
3045 * int or unsigned short. It may be necessary to include <sys/types.h>
3046 * to get any typedef'ed information.
3047 */
3048#define Mode_t $modetype /* file mode parameter for system calls */
3049
b8677e3b
MB
3050/* VAL_O_NONBLOCK:
3051 * This symbol is to be used during open() or fcntl(F_SETFL) to turn on
3052 * non-blocking I/O for the file descriptor. Note that there is no way
3053 * back, i.e. you cannot turn it blocking again this way. If you wish to
3054 * alternatively switch between blocking and non-blocking, use the
3055 * ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
eaf812ae 3056 */
b8677e3b
MB
3057/* VAL_EAGAIN:
3058 * This symbol holds the errno error code set by read() when no data was
3059 * present on the non-blocking file descriptor.
1d8eaf8c 3060 */
b8677e3b
MB
3061/* RD_NODATA:
3062 * This symbol holds the return code from read() when no data is present
3063 * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
3064 * not defined, then you can't distinguish between no data and EOF by
3065 * issuing a read(). You'll have to find another way to tell for sure!
e74475c7 3066 */
b8677e3b
MB
3067/* EOF_NONBLOCK:
3068 * This symbol, if defined, indicates to the C program that a read() on
3069 * a non-blocking file descriptor will return 0 on EOF, and not the value
3070 * held in RD_NODATA (-1 usually, in that case!).
e74475c7 3071 */
b8677e3b
MB
3072#define VAL_O_NONBLOCK $o_nonblock
3073#define VAL_EAGAIN $eagain
3074#define RD_NODATA $rd_nodata
3075#$d_eofnblk EOF_NONBLOCK
eaf812ae 3076
06501368
MB
3077/* Netdb_host_t:
3078 * This symbol holds the type used for the 1st argument
3079 * to gethostbyaddr().
3080 */
3081/* Netdb_hlen_t:
3082 * This symbol holds the type used for the 2nd argument
3083 * to gethostbyaddr().
3084 */
3085/* Netdb_name_t:
3086 * This symbol holds the type used for the argument to
3087 * gethostbyname().
3088 */
3089/* Netdb_net_t:
3090 * This symbol holds the type used for the 1st argument to
3091 * getnetbyaddr().
3092 */
3093#define Netdb_host_t $netdb_host_type /**/
3094#define Netdb_hlen_t $netdb_hlen_type /**/
3095#define Netdb_name_t $netdb_name_type /**/
3096#define Netdb_net_t $netdb_net_type /**/
3097
b8677e3b
MB
3098/* PERL_OTHERLIBDIRS:
3099 * This variable contains a colon-separated set of paths for the perl
3100 * binary to search for additional library files or modules.
3101 * These directories will be tacked to the end of @INC.
3102 * Perl will automatically search below each path for version-
3103 * and architecture-specific directories. See PERL_INC_VERSION_LIST
3104 * for more details.
08c92000 3105 */
b8677e3b 3106#$d_perl_otherlibdirs PERL_OTHERLIBDIRS "$otherlibdirs" /**/
08c92000 3107
06501368
MB
3108/* Pid_t:
3109 * This symbol holds the type used to declare process ids in the kernel.
3110 * It can be int, uint, pid_t, etc... It may be necessary to include
3111 * <sys/types.h> to get any typedef'ed information.
3112 */
3113#define Pid_t $pidtype /* PID type */
3114
b8677e3b
MB
3115/* PRIVLIB:
3116 * This symbol contains the name of the private library for this package.
3117 * The library is private in the sense that it needn't be in anyone's
3118 * execution path, but it should be accessible by the world. The program
3119 * should be prepared to do ~ expansion.
c0bacbef 3120 */
b8677e3b
MB
3121/* PRIVLIB_EXP:
3122 * This symbol contains the ~name expanded version of PRIVLIB, to be used
3123 * in programs that are not prepared to deal with ~ expansion at run-time.
3124 */
3125#define PRIVLIB "$privlib" /**/
3126#define PRIVLIB_EXP "$privlibexp" /**/
c0bacbef 3127
06501368
MB
3128/* CAN_PROTOTYPE:
3129 * If defined, this macro indicates that the C compiler can handle
3130 * function prototypes.
3131 */
3132/* _:
3133 * This macro is used to declare function parameters for folks who want
3134 * to make declarations with prototypes using a different style than
3135 * the above macros. Use double parentheses. For example:
3136 *
3137 * int main _((int argc, char *argv[]));
3138 */
3139#$prototype CAN_PROTOTYPE /**/
3140#ifdef CAN_PROTOTYPE
3141#define _(args) args
3142#else
3143#define _(args) ()
3144#endif
3145
b8677e3b
MB
3146/* PTRSIZE:
3147 * This symbol contains the size of a pointer, so that the C preprocessor
3148 * can make decisions based on it. It will be sizeof(void *) if
3149 * the compiler supports (void *); otherwise it will be
3150 * sizeof(char *).
08c92000 3151 */
b8677e3b 3152#define PTRSIZE $ptrsize /**/
08c92000 3153
06501368
MB
3154/* HAS_QUAD:
3155 * This symbol, if defined, tells that there's a 64-bit integer type,
3156 * Quad_t, and its unsigned counterpart, Uquad_t. QUADKIND will be one
3157 * of QUAD_IS_INT, QUAD_IS_LONG, QUAD_IS_LONG_LONG, QUAD_IS_INT64_T,
3158 * or QUAD_IS___INT64.
3159 */
3160#$d_quad HAS_QUAD /**/
3161#ifdef HAS_QUAD
3162# define Quad_t $quadtype /**/
3163# define Uquad_t $uquadtype /**/
3164# define QUADKIND $quadkind /**/
3165# define QUAD_IS_INT 1
3166# define QUAD_IS_LONG 2
3167# define QUAD_IS_LONG_LONG 3
3168# define QUAD_IS_INT64_T 4
3169# define QUAD_IS___INT64 5
3170#endif
3171
b8677e3b
MB
3172/* Drand01:
3173 * This macro is to be used to generate uniformly distributed
3174 * random numbers over the range [0., 1.[. You may have to supply
3175 * an 'extern double drand48();' in your program since SunOS 4.1.3
3176 * doesn't provide you with anything relevant in its headers.
3177 * See HAS_DRAND48_PROTO.
a33c94aa 3178 */
b8677e3b
MB
3179/* Rand_seed_t:
3180 * This symbol defines the type of the argument of the
3181 * random seed function.
49dabb45 3182 */
b8677e3b
MB
3183/* seedDrand01:
3184 * This symbol defines the macro to be used in seeding the
3185 * random number generator (see Drand01).
3813c136 3186 */
b8677e3b
MB
3187/* RANDBITS:
3188 * This symbol indicates how many bits are produced by the
3189 * function used to generate normalized random numbers.
3190 * Values include 15, 16, 31, and 48.
1acc7ade 3191 */
a05353bf
MB
3192#define Drand01() $drand01 /**/
3193#define Rand_seed_t $randseedtype /**/
3194#define seedDrand01(x) $seedfunc((Rand_seed_t)x) /**/
3195#define RANDBITS $randbits /**/
b8677e3b 3196
06501368
MB
3197/* Select_fd_set_t:
3198 * This symbol holds the type used for the 2nd, 3rd, and 4th
3199 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
3200 * is defined, and 'int *' otherwise. This is only useful if you
3201 * have select(), of course.
3202 */
3203#define Select_fd_set_t $selecttype /**/
3204
3205/* SH_PATH:
3206 * This symbol contains the full pathname to the shell used on this
3207 * on this system to execute Bourne shell scripts. Usually, this will be
3208 * /bin/sh, though it's possible that some systems will have /bin/ksh,
3209 * /bin/pdksh, /bin/ash, /bin/bash, or even something such as
3210 * D:/bin/sh.exe.
3211 */
0b0a0724 3212#define SH_PATH "$targetsh" /**/
06501368
MB
3213
3214/* SIG_NAME:
3215 * This symbol contains a list of signal names in order of
3216 * signal number. This is intended
3217 * to be used as a static array initialization, like this:
3218 * char *sig_name[] = { SIG_NAME };
3219 * The signals in the list are separated with commas, and each signal
3220 * is surrounded by double quotes. There is no leading SIG in the signal
3221 * name, i.e. SIGQUIT is known as "QUIT".
3222 * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
3223 * etc., where nn is the actual signal number (e.g. NUM37).
3224 * The signal number for sig_name[i] is stored in sig_num[i].
3225 * The last element is 0 to terminate the list with a NULL. This
3226 * corresponds to the 0 at the end of the sig_name_init list.
3227 * Note that this variable is initialized from the sig_name_init,
3228 * not from sig_name (which is unused).
3229 */
3230/* SIG_NUM:
3231 * This symbol contains a list of signal numbers, in the same order as the
3232 * SIG_NAME list. It is suitable for static array initialization, as in:
3233 * int sig_num[] = { SIG_NUM };
3234 * The signals in the list are separated with commas, and the indices
3235 * within that list and the SIG_NAME list match, so it's easy to compute
3236 * the signal name from a number or vice versa at the price of a small
3237 * dynamic linear lookup.
3238 * Duplicates are allowed, but are moved to the end of the list.
3239 * The signal number corresponding to sig_name[i] is sig_number[i].
3240 * if (i < NSIG) then sig_number[i] == i.
3241 * The last element is 0, corresponding to the 0 at the end of
3242 * the sig_name_init list.
3243 * Note that this variable is initialized from the sig_num_init,
3244 * not from sig_num (which is unused).
3245 */
3246/* SIG_SIZE:
3247 * This variable contains the number of elements of the SIG_NAME
3248 * and SIG_NUM arrays, excluding the final NULL entry.
3249 */
3250#define SIG_NAME $sig_name_init /**/
3251#define SIG_NUM $sig_num_init /**/
3252#define SIG_SIZE $sig_size /**/
3253
b8677e3b
MB
3254/* SITEARCH:
3255 * This symbol contains the name of the private library for this package.
3256 * The library is private in the sense that it needn't be in anyone's
3257 * execution path, but it should be accessible by the world. The program
3258 * should be prepared to do ~ expansion.
3259 * The standard distribution will put nothing in this directory.
3260 * After perl has been installed, users may install their own local
3261 * architecture-dependent modules in this directory with
3262 * MakeMaker Makefile.PL
3263 * or equivalent. See INSTALL for details.
a33c94aa 3264 */
b8677e3b
MB
3265/* SITEARCH_EXP:
3266 * This symbol contains the ~name expanded version of SITEARCH, to be used
3267 * in programs that are not prepared to deal with ~ expansion at run-time.
10bc17b6 3268 */
b8677e3b
MB
3269#$d_sitearch SITEARCH "$sitearch" /**/
3270#$d_sitearch SITEARCH_EXP "$sitearchexp" /**/
3271
3272/* SITELIB:
3273 * This symbol contains the name of the private library for this package.
3274 * The library is private in the sense that it needn't be in anyone's
3275 * execution path, but it should be accessible by the world. The program
3276 * should be prepared to do ~ expansion.
3277 * The standard distribution will put nothing in this directory.
3278 * After perl has been installed, users may install their own local
3279 * architecture-independent modules in this directory with
3280 * MakeMaker Makefile.PL
3281 * or equivalent. See INSTALL for details.
10bc17b6 3282 */
b8677e3b
MB
3283/* SITELIB_EXP:
3284 * This symbol contains the ~name expanded version of SITELIB, to be used
3285 * in programs that are not prepared to deal with ~ expansion at run-time.
10bc17b6 3286 */
b8677e3b
MB
3287/* SITELIB_STEM:
3288 * This define is SITELIB_EXP with any trailing version-specific component
3289 * removed. The elements in inc_version_list (inc_version_list.U) can
3290 * be tacked onto this variable to generate a list of directories to search.
10bc17b6 3291 */
b8677e3b
MB
3292#define SITELIB "$sitelib" /**/
3293#define SITELIB_EXP "$sitelibexp" /**/
3294#define SITELIB_STEM "$sitelib_stem" /**/
10bc17b6 3295
06501368
MB
3296/* Size_t_size:
3297 * This symbol holds the size of a Size_t in bytes.
3298 */
3299#define Size_t_size $sizesize /**/
3300
3301/* Size_t:
3302 * This symbol holds the type used to declare length parameters
3303 * for string functions. It is usually size_t, but may be
3304 * unsigned long, int, etc. It may be necessary to include
3305 * <sys/types.h> to get any typedef'ed information.
3306 */
3307#define Size_t $sizetype /* length parameter for string functions */
3308
3309/* Sock_size_t:
3310 * This symbol holds the type used for the size argument of
3311 * various socket calls (just the base type, not the pointer-to).
3312 */
3313#define Sock_size_t $socksizetype /**/
3314
b8677e3b
MB
3315/* SSize_t:
3316 * This symbol holds the type used by functions that return
3317 * a count of bytes or an error condition. It must be a signed type.
3318 * It is usually ssize_t, but may be long or int, etc.
3319 * It may be necessary to include <sys/types.h> or <unistd.h>
3320 * to get any typedef'ed information.
3321 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
10bc17b6 3322 */
b8677e3b 3323#define SSize_t $ssizetype /* signed count of bytes */
08c92000 3324
06501368
MB
3325/* STDCHAR:
3326 * This symbol is defined to be the type of char used in stdio.h.
3327 * It has the values "unsigned char" or "char".
eaf812ae 3328 */
06501368
MB
3329#define STDCHAR $stdchar /**/
3330
3331/* Uid_t_f:
3332 * This symbol defines the format string used for printing a Uid_t.
eaf812ae 3333 */
06501368 3334#define Uid_t_f $uidformat /**/
eaf812ae 3335
06501368 3336/* Uid_t_sign:
cfc2543a 3337 * This symbol holds the signedness of a Uid_t.
06501368 3338 * 1 for unsigned, -1 for signed.
36adc09b 3339 */
06501368
MB
3340#define Uid_t_sign $uidsign /* UID sign */
3341
3342/* Uid_t_size:
3343 * This symbol holds the size of a Uid_t in bytes.
a33c94aa 3344 */
06501368 3345#define Uid_t_size $uidsize /* UID size */
a33c94aa 3346
06501368
MB
3347/* Uid_t:
3348 * This symbol holds the type used to declare user ids in the kernel.
3349 * It can be int, ushort, uid_t, etc... It may be necessary to include
3350 * <sys/types.h> to get any typedef'ed information.
15b61c98 3351 */
06501368 3352#define Uid_t $uidtype /* UID type */
b8677e3b 3353
06501368
MB
3354/* USE_ITHREADS:
3355 * This symbol, if defined, indicates that Perl should be built to
3356 * use the interpreter-based threading implementation.
b8677e3b 3357 */
06501368
MB
3358/* USE_5005THREADS:
3359 * This symbol, if defined, indicates that Perl should be built to
3360 * use the 5.005-based threading implementation.
3361 * Only valid up to 5.8.x.
ed140128 3362 */
06501368
MB
3363/* OLD_PTHREADS_API:
3364 * This symbol, if defined, indicates that Perl should
3365 * be built to use the old draft POSIX threads API.
ed140128 3366 */
06501368
MB
3367/* USE_REENTRANT_API:
3368 * This symbol, if defined, indicates that Perl should
3369 * try to use the various _r versions of library functions.
3370 * This is extremely experimental.
3371 */
3372#$use5005threads USE_5005THREADS /**/
3373#$useithreads USE_ITHREADS /**/
3374#if defined(USE_5005THREADS) && !defined(USE_ITHREADS)
3375#define USE_THREADS /* until src is revised*/
3376#endif
3377#$d_oldpthreads OLD_PTHREADS_API /**/
3378#$usereentrant USE_REENTRANT_API /**/
ed140128 3379
06501368
MB
3380/* PERL_VENDORARCH:
3381 * If defined, this symbol contains the name of a private library.
3382 * The library is private in the sense that it needn't be in anyone's
3383 * execution path, but it should be accessible by the world.
3384 * It may have a ~ on the front.
3385 * The standard distribution will put nothing in this directory.
3386 * Vendors who distribute perl may wish to place their own
3387 * architecture-dependent modules and extensions in this directory with
3388 * MakeMaker Makefile.PL INSTALLDIRS=vendor
3389 * or equivalent. See INSTALL for details.
ed140128 3390 */
06501368
MB
3391/* PERL_VENDORARCH_EXP:
3392 * This symbol contains the ~name expanded version of PERL_VENDORARCH, to be used
3393 * in programs that are not prepared to deal with ~ expansion at run-time.
3394 */
3395#$d_vendorarch PERL_VENDORARCH "$vendorarch" /**/
3396#$d_vendorarch PERL_VENDORARCH_EXP "$vendorarchexp" /**/
3397
3398/* PERL_VENDORLIB_EXP:
3399 * This symbol contains the ~name expanded version of VENDORLIB, to be used
3400 * in programs that are not prepared to deal with ~ expansion at run-time.
3401 */
3402/* PERL_VENDORLIB_STEM:
3403 * This define is PERL_VENDORLIB_EXP with any trailing version-specific component
3404 * removed. The elements in inc_version_list (inc_version_list.U) can
3405 * be tacked onto this variable to generate a list of directories to search.
3406 */
3407#$d_vendorlib PERL_VENDORLIB_EXP "$vendorlibexp" /**/
3408#$d_vendorlib PERL_VENDORLIB_STEM "$vendorlib_stem" /**/
ed140128 3409
f53a6e0e
MB
3410/* USE_CROSS_COMPILE:
3411 * This symbol, if defined, indicates that Perl is being cross-compiled.
3412 */
3413/* PERL_TARGETARCH:
3414 * This symbol, if defined, indicates the target architecture
3415 * Perl has been cross-compiled to. Undefined if not a cross-compile.
3416 */
3417#ifndef USE_CROSS_COMPILE
3418#$usecrosscompile USE_CROSS_COMPILE /**/
3419#define PERL_TARGETARCH "$targetarch" /**/
3420#endif
3421
1be1b388
MB
3422/* PERL_USE_DEVEL:
3423 * This symbol, if defined, indicates that Perl was configured with
3424 * -Dusedevel, to enable development features. This should not be
3425 * done for production builds.
3426 */
3427#$usedevel PERL_USE_DEVEL /**/
3428
ed140128
AD
3429/* HAS_ATOLF:
3430 * This symbol, if defined, indicates that the atolf routine is
3431 * available to convert strings into long doubles.
3432 */
3433#$d_atolf HAS_ATOLF /**/
3434
3435/* HAS_ATOLL:
3436 * This symbol, if defined, indicates that the atoll routine is
3437 * available to convert strings into long longs.
3438 */
3439#$d_atoll HAS_ATOLL /**/
3440
3441/* HAS__FWALK:
3442 * This symbol, if defined, indicates that the _fwalk system call is
3443 * available to apply a function to all the file handles.
3444 */
3445#$d__fwalk HAS__FWALK /**/
3446
40613a90
JH
3447/* HAS_ACOSH:
3448 * This symbol, if defined, indicates that the acosh routine is
3449 * available.
3450 */
3451#$d_acosh HAS_ACOSH /**/
3452
ed140128
AD
3453/* HAS_AINTL:
3454 * This symbol, if defined, indicates that the aintl routine is
3455 * available. If copysignl is also present we can emulate modfl.
3456 */
3457#$d_aintl HAS_AINTL /**/
3458
3459/* HAS_BUILTIN_CHOOSE_EXPR:
3460 * Can we handle GCC builtin for compile-time ternary-like expressions
3461 */
3462/* HAS_BUILTIN_EXPECT:
3463 * Can we handle GCC builtin for telling that certain values are more
3464 * likely
3465 */
3466#$d_builtin_expect HAS_BUILTIN_EXPECT /**/
3467#$d_builtin_choose_expr HAS_BUILTIN_CHOOSE_EXPR /**/
3468
3469/* HAS_C99_VARIADIC_MACROS:
3470 * If defined, the compiler supports C99 variadic macros.
3471 */
3472#$d_c99_variadic_macros HAS_C99_VARIADIC_MACROS /**/
3473
3474/* HAS_CLASS:
3475 * This symbol, if defined, indicates that the class routine is
3476 * available to classify doubles. Available for example in AIX.
3477 * The returned values are defined in <float.h> and are:
3478 *
3479 * FP_PLUS_NORM Positive normalized, nonzero
3480 * FP_MINUS_NORM Negative normalized, nonzero
3481 * FP_PLUS_DENORM Positive denormalized, nonzero
3482 * FP_MINUS_DENORM Negative denormalized, nonzero
3483 * FP_PLUS_ZERO +0.0
3484 * FP_MINUS_ZERO -0.0
3485 * FP_PLUS_INF +INF
3486 * FP_MINUS_INF -INF
3487 * FP_NANS Signaling Not a Number (NaNS)
3488 * FP_NANQ Quiet Not a Number (NaNQ)
3489 */
3490#$d_class HAS_CLASS /**/
3491
3492/* HAS_CLEARENV:
3493 * This symbol, if defined, indicates that the clearenv () routine is
3494 * available for use.
3495 */
3496#$d_clearenv HAS_CLEARENV /**/
3497
3498/* HAS_STRUCT_CMSGHDR:
3499 * This symbol, if defined, indicates that the struct cmsghdr
3500 * is supported.
3501 */
3502#$d_cmsghdr_s HAS_STRUCT_CMSGHDR /**/
3503
3504/* HAS_COPYSIGNL:
3505 * This symbol, if defined, indicates that the copysignl routine is
3506 * available. If aintl is also present we can emulate modfl.
3507 */
3508#$d_copysignl HAS_COPYSIGNL /**/
3509
3510/* USE_CPLUSPLUS:
3511 * This symbol, if defined, indicates that a C++ compiler was
3512 * used to compiled Perl and will be used to compile extensions.
3513 */
3514#$d_cplusplus USE_CPLUSPLUS /**/
3515
3516/* HAS_DBMINIT_PROTO:
3517 * This symbol, if defined, indicates that the system provides
3518 * a prototype for the dbminit() function. Otherwise, it is up
3519 * to the program to supply one. A good guess is
3520 * extern int dbminit(char *);
3521 */
3522#$d_dbminitproto HAS_DBMINIT_PROTO /**/
3523
3524/* HAS_DIR_DD_FD:
3525 * This symbol, if defined, indicates that the the DIR* dirstream
3526 * structure contains a member variable named dd_fd.
3527 */
3528#$d_dir_dd_fd HAS_DIR_DD_FD /**/
3529
3530/* HAS_DIRFD:
3531 * This manifest constant lets the C program know that dirfd
3532 * is available.
3533 */
3534#$d_dirfd HAS_DIRFD /**/
3535
3536/* DLSYM_NEEDS_UNDERSCORE:
3537 * This symbol, if defined, indicates that we need to prepend an
3538 * underscore to the symbol name before calling dlsym(). This only
3539 * makes sense if you *have* dlsym, which we will presume is the
3540 * case if you're using dl_dlopen.xs.
3541 */
3542#$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/
3543
3544/* HAS_FAST_STDIO:
3545 * This symbol, if defined, indicates that the "fast stdio"
3546 * is available to manipulate the stdio buffers directly.
3547 */
3548#$d_faststdio HAS_FAST_STDIO /**/
3549
3550/* HAS_FCHDIR:
3551 * This symbol, if defined, indicates that the fchdir routine is
3552 * available to change directory using a file descriptor.
3553 */
3554#$d_fchdir HAS_FCHDIR /**/
3555
3556/* FCNTL_CAN_LOCK:
3557 * This symbol, if defined, indicates that fcntl() can be used
3558 * for file locking. Normally on Unix systems this is defined.
3559 * It may be undefined on VMS.
3560 */
3561#$d_fcntl_can_lock FCNTL_CAN_LOCK /**/
3562
3563/* HAS_FINITE:
3564 * This symbol, if defined, indicates that the finite routine is
3565 * available to check whether a double is finite (non-infinity non-NaN).
3566 */
3567#$d_finite HAS_FINITE /**/
3568
3569/* HAS_FINITEL:
3570 * This symbol, if defined, indicates that the finitel routine is
3571 * available to check whether a long double is finite
3572 * (non-infinity non-NaN).
3573 */
3574#$d_finitel HAS_FINITEL /**/
3575
3576/* HAS_FLOCK_PROTO:
3577 * This symbol, if defined, indicates that the system provides
3578 * a prototype for the flock() function. Otherwise, it is up
3579 * to the program to supply one. A good guess is
3580 * extern int flock(int, int);
3581 */
3582#$d_flockproto HAS_FLOCK_PROTO /**/
3583
3584/* HAS_FP_CLASS:
3585 * This symbol, if defined, indicates that the fp_class routine is
3586 * available to classify doubles. Available for example in Digital UNIX.
3587 * The returned values are defined in <math.h> and are:
3588 *
3589 * FP_SNAN Signaling NaN (Not-a-Number)
3590 * FP_QNAN Quiet NaN (Not-a-Number)
3591 * FP_POS_INF +infinity
3592 * FP_NEG_INF -infinity
3593 * FP_POS_NORM Positive normalized
3594 * FP_NEG_NORM Negative normalized
3595 * FP_POS_DENORM Positive denormalized
3596 * FP_NEG_DENORM Negative denormalized
3597 * FP_POS_ZERO +0.0 (positive zero)
3598 * FP_NEG_ZERO -0.0 (negative zero)
3599 */
3600#$d_fp_class HAS_FP_CLASS /**/
3601
b19ee02c
JH
3602/* HAS_FP_CLASSL:
3603 * This symbol, if defined, indicates that the fp_classl routine is
3604 * available to classify doubles. Available for example in Digital UNIX.
3605 * See HAS_FP_CLASS.
3606 *
3607 */
3608#$d_fp_classl HAS_FP_CLASSL /**/
3609
add06237
JH
3610/* HAS_FP_CLASSIFY:
3611 * This symbol, if defined, indicates that the fp_classify routine is
3612 * available to classify doubles.
3613 * The returned values are defined in <math.h> and are:
3614 *
3615 * FP_NAN
3616 * FP_INFINITE
3617 * FP_NORMAL
3618 * FP_SUBNORMAL
3619 * FP_ZERO
3620 */
3621#$d_fp_classify HAS_FP_CLASSIFY /**/
3622
ed140128
AD
3623/* HAS_FPCLASS:
3624 * This symbol, if defined, indicates that the fpclass routine is
3625 * available to classify doubles. Available for example in Solaris/SVR4.
3626 * The returned values are defined in <ieeefp.h> and are:
3627 *
3628 * FP_SNAN signaling NaN
3629 * FP_QNAN quiet NaN
3630 * FP_NINF negative infinity
3631 * FP_PINF positive infinity
3632 * FP_NDENORM negative denormalized non-zero
3633 * FP_PDENORM positive denormalized non-zero
3634 * FP_NZERO negative zero
3635 * FP_PZERO positive zero
3636 * FP_NNORM negative normalized non-zero
3637 * FP_PNORM positive normalized non-zero
3638 */
3639#$d_fpclass HAS_FPCLASS /**/
3640
3641/* HAS_FPCLASSIFY:
3642 * This symbol, if defined, indicates that the fpclassify routine is
3643 * available to classify doubles. Available for example in HP-UX.
3644 * The returned values are defined in <math.h> and are
3645 *
3646 * FP_NORMAL Normalized
3647 * FP_ZERO Zero
3648 * FP_INFINITE Infinity
3649 * FP_SUBNORMAL Denormalized
3650 * FP_NAN NaN
3651 *
3652 */
3653#$d_fpclassify HAS_FPCLASSIFY /**/
3654
3655/* HAS_FPCLASSL:
3656 * This symbol, if defined, indicates that the fpclassl routine is
3657 * available to classify long doubles. Available for example in IRIX.
3658 * The returned values are defined in <ieeefp.h> and are:
3659 *
3660 * FP_SNAN signaling NaN
3661 * FP_QNAN quiet NaN
3662 * FP_NINF negative infinity
3663 * FP_PINF positive infinity
3664 * FP_NDENORM negative denormalized non-zero
3665 * FP_PDENORM positive denormalized non-zero
3666 * FP_NZERO negative zero
3667 * FP_PZERO positive zero
3668 * FP_NNORM negative normalized non-zero
3669 * FP_PNORM positive normalized non-zero
3670 */
3671#$d_fpclassl HAS_FPCLASSL /**/
3672
4c1a9b0c
JH
3673/* HAS_FPGETROUND:
3674 * This symbol, if defined, indicates that the fpgetround routine is
3675 * available to get the floating point rounding mode.
3676 */
3677#$d_fpgetround HAS_FPGETROUND /**/
3678
ed140128
AD
3679/* HAS_FPOS64_T:
3680 * This symbol will be defined if the C compiler supports fpos64_t.
3681 */
3682#$d_fpos64_t HAS_FPOS64_T /**/
3683
3684/* HAS_FREXPL:
3685 * This symbol, if defined, indicates that the frexpl routine is
3686 * available to break a long double floating-point number into
3687 * a normalized fraction and an integral power of 2.
3688 */
3689#$d_frexpl HAS_FREXPL /**/
3690
3691/* HAS_STRUCT_FS_DATA:
3692 * This symbol, if defined, indicates that the struct fs_data
3693 * to do statfs() is supported.
3694 */
3695#$d_fs_data_s HAS_STRUCT_FS_DATA /**/
3696
3697/* HAS_FSEEKO:
3698 * This symbol, if defined, indicates that the fseeko routine is
3699 * available to fseek beyond 32 bits (useful for ILP32 hosts).
3700 */
3701#$d_fseeko HAS_FSEEKO /**/
3702
3703/* HAS_FSTATFS:
3704 * This symbol, if defined, indicates that the fstatfs routine is
3705 * available to stat filesystems by file descriptors.
3706 */
3707#$d_fstatfs HAS_FSTATFS /**/
3708
3709/* HAS_FSYNC:
3710 * This symbol, if defined, indicates that the fsync routine is
3711 * available to write a file's modified data and attributes to
3712 * permanent storage.
3713 */
3714#$d_fsync HAS_FSYNC /**/
3715
3716/* HAS_FTELLO:
3717 * This symbol, if defined, indicates that the ftello routine is
3718 * available to ftell beyond 32 bits (useful for ILP32 hosts).
3719 */
3720#$d_ftello HAS_FTELLO /**/
3721
3722/* HAS_FUTIMES:
3723 * This symbol, if defined, indicates that the futimes routine is
3724 * available to change file descriptor time stamps with struct timevals.
3725 */
3726#$d_futimes HAS_FUTIMES /**/
3727
5086dff9
MB
3728/* HAS_GETADDRINFO:
3729 * This symbol, if defined, indicates that the getaddrinfo() function
3730 * is available for use.
3731 */
3732#$d_getaddrinfo HAS_GETADDRINFO /**/
3733
ed140128
AD
3734/* HAS_GETCWD:
3735 * This symbol, if defined, indicates that the getcwd routine is
3736 * available to get the current working directory.
3737 */
3738#$d_getcwd HAS_GETCWD /**/
3739
3740/* HAS_GETESPWNAM:
3741 * This symbol, if defined, indicates that the getespwnam system call is
cd95ead5 3742 * available to retrieve enhanced (shadow) password entries by name.
ed140128
AD
3743 */
3744#$d_getespwnam HAS_GETESPWNAM /**/
3745
3746/* HAS_GETFSSTAT:
3747 * This symbol, if defined, indicates that the getfsstat routine is
3748 * available to stat filesystems in bulk.
3749 */
3750#$d_getfsstat HAS_GETFSSTAT /**/
3751
3752/* HAS_GETITIMER:
3753 * This symbol, if defined, indicates that the getitimer routine is
3754 * available to return interval timers.
3755 */
3756#$d_getitimer HAS_GETITIMER /**/
3757
3758/* HAS_GETMNT:
3759 * This symbol, if defined, indicates that the getmnt routine is
3760 * available to get filesystem mount info by filename.
3761 */
3762#$d_getmnt HAS_GETMNT /**/
3763
3764/* HAS_GETMNTENT:
3765 * This symbol, if defined, indicates that the getmntent routine is
3766 * available to iterate through mounted file systems to get their info.
3767 */
3768#$d_getmntent HAS_GETMNTENT /**/
3769
5086dff9
MB
3770/* HAS_GETNAMEINFO:
3771 * This symbol, if defined, indicates that the getnameinfo() function
3772 * is available for use.
3773 */
3774#$d_getnameinfo HAS_GETNAMEINFO /**/
3775
ed140128
AD
3776/* HAS_GETPRPWNAM:
3777 * This symbol, if defined, indicates that the getprpwnam system call is
3778 * available to retrieve protected (shadow) password entries by name.
3779 */
3780#$d_getprpwnam HAS_GETPRPWNAM /**/
3781
3782/* HAS_GETSPNAM:
3783 * This symbol, if defined, indicates that the getspnam system call is
3784 * available to retrieve SysV shadow password entries by name.
3785 */
3786#$d_getspnam HAS_GETSPNAM /**/
3787
3788/* HAS_HASMNTOPT:
3789 * This symbol, if defined, indicates that the hasmntopt routine is
3790 * available to query the mount options of file systems.
3791 */
3792#$d_hasmntopt HAS_HASMNTOPT /**/
3793
3794/* HAS_ILOGBL:
3795 * This symbol, if defined, indicates that the ilogbl routine is
3796 * available. If scalbnl is also present we can emulate frexpl.
3797 */
3798#$d_ilogbl HAS_ILOGBL /**/
3799
5086dff9
MB
3800/* HAS_INETNTOP:
3801 * This symbol, if defined, indicates that the inet_ntop() function
3802 * is available to parse IPv4 and IPv6 strings.
3803 */
3804#$d_inetntop HAS_INETNTOP /**/
3805
3806/* HAS_INETPTON:
3807 * This symbol, if defined, indicates that the inet_pton() function
3808 * is available to parse IPv4 and IPv6 strings.
3809 */
3810#$d_inetpton HAS_INETPTON /**/
3811
ed140128
AD
3812/* HAS_INT64_T:
3813 * This symbol will defined if the C compiler supports int64_t.
3814 * Usually the <inttypes.h> needs to be included, but sometimes
3815 * <sys/types.h> is enough.
3816 */
3817#$d_int64_t HAS_INT64_T /**/
3818
269a7913 3819/* HAS_ISBLANK:
1332606d 3820 * This manifest constant lets the C program know that isblank
269a7913
MB
3821 * is available.
3822 */
3823#$d_isblank HAS_ISBLANK /**/
3824
ed140128
AD
3825/* HAS_ISFINITE:
3826 * This symbol, if defined, indicates that the isfinite routine is
3827 * available to check whether a double is finite (non-infinity non-NaN).
3828 */
3829#$d_isfinite HAS_ISFINITE /**/
3830
fa484e60
JH
3831/* HAS_ISFINITEL:
3832 * This symbol, if defined, indicates that the isfinite routine is
3833 * available to check whether a long double is finitel
3834 * (non-infinity non-NaN).
3835 */
3836#$d_isfinitel HAS_ISFINITEL /**/
3837
ed140128
AD
3838/* HAS_ISINF:
3839 * This symbol, if defined, indicates that the isinf routine is
3840 * available to check whether a double is an infinity.
3841 */
3842#$d_isinf HAS_ISINF /**/
3843
fa484e60
JH
3844/* HAS_ISINF:
3845 * This symbol, if defined, indicates that the isinf routine is
3846 * available to check whether a long double is an infinity.
3847 */
3848#$d_isinfl HAS_ISINFL /**/
3849
ed140128
AD
3850/* HAS_ISNAN:
3851 * This symbol, if defined, indicates that the isnan routine is
3852 * available to check whether a double is a NaN.
3853 */
3854#$d_isnan HAS_ISNAN /**/
3855
3856/* HAS_ISNANL:
3857 * This symbol, if defined, indicates that the isnanl routine is
3858 * available to check whether a long double is a NaN.
3859 */
3860#$d_isnanl HAS_ISNANL /**/
3861
3862/* HAS_LDBL_DIG:
3863 * This symbol, if defined, indicates that this system's <float.h>
3864 * or <limits.h> defines the symbol LDBL_DIG, which is the number
3865 * of significant digits in a long double precision number. Unlike
3866 * for DBL_DIG, there's no good guess for LDBL_DIG if it is undefined.
3867 */
06501368 3868#$d_ldbl_dig HAS_LDBL_DIG /* */
ed140128
AD
3869
3870/* LIBM_LIB_VERSION:
3871 * This symbol, if defined, indicates that libm exports _LIB_VERSION
3872 * and that math.h defines the enum to manipulate it.
3873 */
3874#$d_libm_lib_version LIBM_LIB_VERSION /**/
3875
3876/* HAS_MADVISE:
3877 * This symbol, if defined, indicates that the madvise system call is
3878 * available to map a file into memory.
3879 */
3880#$d_madvise HAS_MADVISE /**/
3881
3882/* HAS_MALLOC_SIZE:
3883 * This symbol, if defined, indicates that the malloc_size
3884 * routine is available for use.
3885 */
3886#$d_malloc_size HAS_MALLOC_SIZE /**/
3887
3888/* HAS_MALLOC_GOOD_SIZE:
3889 * This symbol, if defined, indicates that the malloc_good_size
3890 * routine is available for use.
3891 */
3892#$d_malloc_good_size HAS_MALLOC_GOOD_SIZE /**/
3893
3894/* HAS_MKDTEMP:
3895 * This symbol, if defined, indicates that the mkdtemp routine is
3896 * available to exclusively create a uniquely named temporary directory.
3897 */
3898#$d_mkdtemp HAS_MKDTEMP /**/
3899
3900/* HAS_MKSTEMPS:
3901 * This symbol, if defined, indicates that the mkstemps routine is
cd95ead5 3902 * available to exclusively create and open a uniquely named
ed140128
AD
3903 * (with a suffix) temporary file.
3904 */
3905#$d_mkstemps HAS_MKSTEMPS /**/
3906
3907/* HAS_MODFL:
3908 * This symbol, if defined, indicates that the modfl routine is
3909 * available to split a long double x into a fractional part f and
3910 * an integer part i such that |f| < 1.0 and (f + i) = x.
3911 */
3912/* HAS_MODFL_PROTO:
3913 * This symbol, if defined, indicates that the system provides
3914 * a prototype for the modfl() function. Otherwise, it is up
3915 * to the program to supply one.
3916 */
3917/* HAS_MODFL_POW32_BUG:
3918 * This symbol, if defined, indicates that the modfl routine is
3919 * broken for long doubles >= pow(2, 32).
3920 * For example from 4294967303.150000 one would get 4294967302.000000
3921 * and 1.150000. The bug has been seen in certain versions of glibc,
3922 * release 2.2.2 is known to be okay.
3923 */
3924#$d_modfl HAS_MODFL /**/
3925#$d_modflproto HAS_MODFL_PROTO /**/
3926#$d_modfl_pow32_bug HAS_MODFL_POW32_BUG /**/
3927
3928/* HAS_MPROTECT:
3929 * This symbol, if defined, indicates that the mprotect system call is
3930 * available to modify the access protection of a memory mapped file.
3931 */
3932#$d_mprotect HAS_MPROTECT /**/
3933
3934/* HAS_STRUCT_MSGHDR:
3935 * This symbol, if defined, indicates that the struct msghdr
3936 * is supported.
3937 */
3938#$d_msghdr_s HAS_STRUCT_MSGHDR /**/
3939
3940/* HAS_NL_LANGINFO:
3941 * This symbol, if defined, indicates that the nl_langinfo routine is
3942 * available to return local data. You will also need <langinfo.h>
3943 * and therefore I_LANGINFO.
3944 */
3945#$d_nl_langinfo HAS_NL_LANGINFO /**/
3946
3947/* HAS_OFF64_T:
3948 * This symbol will be defined if the C compiler supports off64_t.
3949 */
3950#$d_off64_t HAS_OFF64_T /**/
3951
c796e3db
MB
3952/* HAS_PRCTL:
3953 * This symbol, if defined, indicates that the prctl routine is
3954 * available to set process title.
3955 */
3956/* HAS_PRCTL_SET_NAME:
3957 * This symbol, if defined, indicates that the prctl routine is
3958 * available to set process title and supports PR_SET_NAME.
3959 */
3960#$d_prctl HAS_PRCTL /**/
3961#$d_prctl_set_name HAS_PRCTL_SET_NAME /**/
3962
ed140128
AD
3963/* HAS_PROCSELFEXE:
3964 * This symbol is defined if PROCSELFEXE_PATH is a symlink
3965 * to the absolute pathname of the executing program.
3966 */
3967/* PROCSELFEXE_PATH:
3968 * If HAS_PROCSELFEXE is defined this symbol is the filename
3969 * of the symbolic link pointing to the absolute pathname of
3970 * the executing program.
3971 */
3972#$d_procselfexe HAS_PROCSELFEXE /**/
3973#if defined(HAS_PROCSELFEXE) && !defined(PROCSELFEXE_PATH)
3974#define PROCSELFEXE_PATH $procselfexe /**/
3975#endif
3976
3977/* HAS_PTHREAD_ATTR_SETSCOPE:
3978 * This symbol, if defined, indicates that the pthread_attr_setscope
3979 * system call is available to set the contention scope attribute of
3980 * a thread attribute object.
3981 */
3982#$d_pthread_attr_setscope HAS_PTHREAD_ATTR_SETSCOPE /**/
3983
0e0c5f82
MB
3984/* HAS_PTRDIFF_T:
3985 * This symbol will be defined if the C compiler supports ptrdiff_t.
3986 */
3987#$d_ptrdiff_t HAS_PTRDIFF_T /**/
3988
ed140128
AD
3989/* HAS_READV:
3990 * This symbol, if defined, indicates that the readv routine is
3991 * available to do gather reads. You will also need <sys/uio.h>
3992 * and there I_SYSUIO.
3993 */
3994#$d_readv HAS_READV /**/
3995
3996/* HAS_RECVMSG:
3997 * This symbol, if defined, indicates that the recvmsg routine is
3998 * available to send structured socket messages.
3999 */
4000#$d_recvmsg HAS_RECVMSG /**/
4001
4002/* HAS_SBRK_PROTO:
4003 * This symbol, if defined, indicates that the system provides
4004 * a prototype for the sbrk() function. Otherwise, it is up
4005 * to the program to supply one. Good guesses are
4006 * extern void* sbrk(int);
4007 * extern void* sbrk(size_t);
4008 */
4009#$d_sbrkproto HAS_SBRK_PROTO /**/
4010
4011/* HAS_SCALBNL:
4012 * This symbol, if defined, indicates that the scalbnl routine is
4013 * available. If ilogbl is also present we can emulate frexpl.
4014 */
4015#$d_scalbnl HAS_SCALBNL /**/
4016
4017/* HAS_SENDMSG:
4018 * This symbol, if defined, indicates that the sendmsg routine is
4019 * available to send structured socket messages.
4020 */
4021#$d_sendmsg HAS_SENDMSG /**/
4022
4023/* HAS_SETITIMER:
4024 * This symbol, if defined, indicates that the setitimer routine is
4025 * available to set interval timers.
4026 */
4027#$d_setitimer HAS_SETITIMER /**/
4028
4029/* HAS_SETPROCTITLE:
4030 * This symbol, if defined, indicates that the setproctitle routine is
4031 * available to set process title.
4032 */
4033#$d_setproctitle HAS_SETPROCTITLE /**/
4034
ed140128
AD
4035/* HAS_SIGNBIT:
4036 * This symbol, if defined, indicates that the signbit routine is
4037 * available to check if the given number has the sign bit set.
4038 * This should include correct testing of -0.0. This will only be set
4039 * if the signbit() routine is safe to use with the NV type used internally
4040 * in perl. Users should call Perl_signbit(), which will be #defined to
4041 * the system's signbit() function or macro if this symbol is defined.
4042 */
4043#$d_signbit HAS_SIGNBIT /**/
4044
4045/* HAS_SIGPROCMASK:
4046 * This symbol, if defined, indicates that the sigprocmask
4047 * system call is available to examine or change the signal mask
4048 * of the calling process.
4049 */
4050#$d_sigprocmask HAS_SIGPROCMASK /**/
4051
4052/* USE_SITECUSTOMIZE:
4053 * This symbol, if defined, indicates that sitecustomize should
4054 * be used.
4055 */
4056#ifndef USE_SITECUSTOMIZE
4057#$usesitecustomize USE_SITECUSTOMIZE /**/
4058#endif
4059
4060/* HAS_SNPRINTF:
4061 * This symbol, if defined, indicates that the snprintf () library
4062 * function is available for use.
4063 */
4064/* HAS_VSNPRINTF:
4065 * This symbol, if defined, indicates that the vsnprintf () library
4066 * function is available for use.
4067 */
4068#$d_snprintf HAS_SNPRINTF /**/
4069#$d_vsnprintf HAS_VSNPRINTF /**/
4070
4071/* HAS_SOCKATMARK:
4072 * This symbol, if defined, indicates that the sockatmark routine is
4073 * available to test whether a socket is at the out-of-band mark.
4074 */
4075#$d_sockatmark HAS_SOCKATMARK /**/
4076
4077/* HAS_SOCKATMARK_PROTO:
4078 * This symbol, if defined, indicates that the system provides
4079 * a prototype for the sockatmark() function. Otherwise, it is up
4080 * to the program to supply one. A good guess is
4081 * extern int sockatmark(int);
4082 */
4083#$d_sockatmarkproto HAS_SOCKATMARK_PROTO /**/
4084
4085/* HAS_SOCKS5_INIT:
4086 * This symbol, if defined, indicates that the socks5_init routine is
4087 * available to initialize SOCKS 5.
4088 */
4089#$d_socks5_init HAS_SOCKS5_INIT /**/
4090
4091/* SPRINTF_RETURNS_STRLEN:
4092 * This variable defines whether sprintf returns the length of the string
4093 * (as per the ANSI spec). Some C libraries retain compatibility with
4094 * pre-ANSI C and return a pointer to the passed in buffer; for these
4095 * this variable will be undef.
4096 */
4097#$d_sprintf_returns_strlen SPRINTF_RETURNS_STRLEN /**/
4098
4099/* HAS_SQRTL:
4100 * This symbol, if defined, indicates that the sqrtl routine is
4101 * available to do long double square roots.
4102 */
4103#$d_sqrtl HAS_SQRTL /**/
4104
4105/* HAS_SETRESGID_PROTO:
4106 * This symbol, if defined, indicates that the system provides
4107 * a prototype for the setresgid() function. Otherwise, it is up
4108 * to the program to supply one. Good guesses are
4109 * extern int setresgid(uid_t ruid, uid_t euid, uid_t suid);
4110 */
4111#$d_sresgproto HAS_SETRESGID_PROTO /**/
4112
4113/* HAS_SETRESUID_PROTO:
4114 * This symbol, if defined, indicates that the system provides
4115 * a prototype for the setresuid() function. Otherwise, it is up
4116 * to the program to supply one. Good guesses are
4117 * extern int setresuid(uid_t ruid, uid_t euid, uid_t suid);
4118 */
4119#$d_sresuproto HAS_SETRESUID_PROTO /**/
4120
4121/* HAS_STRUCT_STATFS_F_FLAGS:
4122 * This symbol, if defined, indicates that the struct statfs
4123 * does have the f_flags member containing the mount flags of
4124 * the filesystem containing the file.
4125 * This kind of struct statfs is coming from <sys/mount.h> (BSD 4.3),
4126 * not from <sys/statfs.h> (SYSV). Older BSDs (like Ultrix) do not
4127 * have statfs() and struct statfs, they have ustat() and getmnt()
4128 * with struct ustat and struct fs_data.
4129 */
4130#$d_statfs_f_flags HAS_STRUCT_STATFS_F_FLAGS /**/
4131
4132/* HAS_STRUCT_STATFS:
4133 * This symbol, if defined, indicates that the struct statfs
4134 * to do statfs() is supported.
4135 */
4136#$d_statfs_s HAS_STRUCT_STATFS /**/
4137
4138/* HAS_FSTATVFS:
4139 * This symbol, if defined, indicates that the fstatvfs routine is
4140 * available to stat filesystems by file descriptors.
4141 */
4142#$d_fstatvfs HAS_FSTATVFS /**/
4143
4144/* HAS_STRFTIME:
4145 * This symbol, if defined, indicates that the strftime routine is
4146 * available to do time formatting.
4147 */
4148#$d_strftime HAS_STRFTIME /**/
4149
4150/* HAS_STRLCAT:
4151 * This symbol, if defined, indicates that the strlcat () routine is
4152 * available to do string concatenation.
4153 */
4154#$d_strlcat HAS_STRLCAT /**/
4155
4156/* HAS_STRLCPY:
4157 * This symbol, if defined, indicates that the strlcpy () routine is
4158 * available to do string copying.
4159 */
4160#$d_strlcpy HAS_STRLCPY /**/
4161
4162/* HAS_STRTOLD:
4163 * This symbol, if defined, indicates that the strtold routine is
4164 * available to convert strings to long doubles.
4165 */
4166#$d_strtold HAS_STRTOLD /**/
4167
4168/* HAS_STRTOLL:
4169 * This symbol, if defined, indicates that the strtoll routine is
4170 * available to convert strings to long longs.
4171 */
4172#$d_strtoll HAS_STRTOLL /**/
4173
4174/* HAS_STRTOQ:
4175 * This symbol, if defined, indicates that the strtoq routine is
4176 * available to convert strings to long longs (quads).
4177 */
4178#$d_strtoq HAS_STRTOQ /**/
4179
4180/* HAS_STRTOULL:
4181 * This symbol, if defined, indicates that the strtoull routine is
4182 * available to convert strings to unsigned long longs.
4183 */
4184#$d_strtoull HAS_STRTOULL /**/
4185
4186/* HAS_STRTOUQ:
4187 * This symbol, if defined, indicates that the strtouq routine is
4188 * available to convert strings to unsigned long longs (quads).
4189 */
4190#$d_strtouq HAS_STRTOUQ /**/
4191
4192/* HAS_SYSCALL_PROTO:
4193 * This symbol, if defined, indicates that the system provides
4194 * a prototype for the syscall() function. Otherwise, it is up
4195 * to the program to supply one. Good guesses are
4196 * extern int syscall(int, ...);
4197 * extern int syscall(long, ...);
4198 */
4199#$d_syscallproto HAS_SYSCALL_PROTO /**/
4200
4201/* HAS_TELLDIR_PROTO:
4202 * This symbol, if defined, indicates that the system provides
4203 * a prototype for the telldir() function. Otherwise, it is up
4204 * to the program to supply one. A good guess is
4205 * extern long telldir(DIR*);
4206 */
4207#$d_telldirproto HAS_TELLDIR_PROTO /**/
4208
96938616
MB
4209/* HAS_CTIME64:
4210 * This symbol, if defined, indicates that the ctime64 () routine is
4211 * available to do the 64bit variant of ctime ()
4212 */
4213/* HAS_LOCALTIME64:
4214 * This symbol, if defined, indicates that the localtime64 () routine is
4215 * available to do the 64bit variant of localtime ()
4216 */
4217/* HAS_GMTIME64:
4218 * This symbol, if defined, indicates that the gmtime64 () routine is
4219 * available to do the 64bit variant of gmtime ()
4220 */
4221/* HAS_MKTIME64:
4222 * This symbol, if defined, indicates that the mktime64 () routine is
4223 * available to do the 64bit variant of mktime ()
4224 */
4225/* HAS_DIFFTIME64:
4226 * This symbol, if defined, indicates that the difftime64 () routine is
4227 * available to do the 64bit variant of difftime ()
4228 */
4229/* HAS_ASCTIME64:
4230 * This symbol, if defined, indicates that the asctime64 () routine is
4231 * available to do the 64bit variant of asctime ()
4232 */
4233#$d_ctime64 HAS_CTIME64 /**/
4234#$d_localtime64 HAS_LOCALTIME64 /**/
4235#$d_gmtime64 HAS_GMTIME64 /**/
4236#$d_mktime64 HAS_MKTIME64 /**/
4237#$d_difftime64 HAS_DIFFTIME64 /**/
4238#$d_asctime64 HAS_ASCTIME64 /**/
4239
cbb9e8a7
MB
4240/* HAS_TIMEGM:
4241 * This symbol, if defined, indicates that the timegm routine is
4242 * available to do the opposite of gmtime ()
4243 */
4244#$d_timegm HAS_TIMEGM /**/
4245
ed140128
AD
4246/* U32_ALIGNMENT_REQUIRED:
4247 * This symbol, if defined, indicates that you must access
4248 * character data through U32-aligned pointers.
4249 */
4250#ifndef U32_ALIGNMENT_REQUIRED
4251#$d_u32align U32_ALIGNMENT_REQUIRED /**/
4252#endif
4253
4254/* HAS_UALARM:
4255 * This symbol, if defined, indicates that the ualarm routine is
4256 * available to do alarms with microsecond granularity.
4257 */
4258#$d_ualarm HAS_UALARM /**/
4259
4260/* HAS_UNORDERED:
4261 * This symbol, if defined, indicates that the unordered routine is
4262 * available to check whether two doubles are unordered
4263 * (effectively: whether either of them is NaN)
4264 */
4265#$d_unordered HAS_UNORDERED /**/
4266
4267/* HAS_UNSETENV:
4268 * This symbol, if defined, indicates that the unsetenv () routine is
4269 * available for use.
4270 */
4271#$d_unsetenv HAS_UNSETENV /**/
4272
4273/* HAS_USLEEP_PROTO:
4274 * This symbol, if defined, indicates that the system provides
4275 * a prototype for the usleep() function. Otherwise, it is up
4276 * to the program to supply one. A good guess is
4277 * extern int usleep(useconds_t);
4278 */
4279#$d_usleepproto HAS_USLEEP_PROTO /**/
4280
4281/* HAS_USTAT:
4282 * This symbol, if defined, indicates that the ustat system call is
4283 * available to query file system statistics by dev_t.
4284 */
4285#$d_ustat HAS_USTAT /**/
4286
9cdcdad1
MB
4287/* HAS_WCSCMP:
4288 * This symbol, if defined, indicates that the wcscmp routine is
4289 * available to compare two wide character strings.
4290 */
4291#$d_wcscmp HAS_WCSCMP /**/
4292
4293/* HAS_WCSXFRM:
4294 * This symbol, if defined, indicates that the wcsxfrm routine is
4295 * available to tranform a wide character string for wcscmp().
4296 */
4297#$d_wcsxfrm HAS_WCSXFRM /**/
4298
ed140128
AD
4299/* HAS_WRITEV:
4300 * This symbol, if defined, indicates that the writev routine is
4301 * available to do scatter writes.
4302 */
4303#$d_writev HAS_WRITEV /**/
4304
4305/* USE_DYNAMIC_LOADING:
4306 * This symbol, if defined, indicates that dynamic loading of
4307 * some sort is available.
4308 */
4309#$usedl USE_DYNAMIC_LOADING /**/
4310
4311/* FFLUSH_NULL:
a05353bf
MB
4312 * This symbol, if defined, tells that fflush(NULL) correctly
4313 * flushes all pending stdio output without side effects. In
4314 * particular, on some platforms calling fflush(NULL) *still*
4315 * corrupts STDIN if it is a pipe.
ed140128
AD
4316 */
4317/* FFLUSH_ALL:
4318 * This symbol, if defined, tells that to flush
4319 * all pending stdio output one must loop through all
4320 * the stdio file handles stored in an array and fflush them.
4321 * Note that if fflushNULL is defined, fflushall will not
4322 * even be probed for and will be left undefined.
4323 */
4324#$fflushNULL FFLUSH_NULL /**/
4325#$fflushall FFLUSH_ALL /**/
4326
c0bacbef
MB
4327/* I_ASSERT:
4328 * This symbol, if defined, indicates that <assert.h> exists and
4329 * could be included by the C program to get the assert() macro.
4330 */
4331#$i_assert I_ASSERT /**/
4332
470dd224
JH
4333/* I_BFD:
4334 * This symbol, if defined, indicates that <bfd.h> exists and
f6a82ade 4335 * can be included.
470dd224
JH
4336 */
4337#$i_bfd I_BFD /**/
4338
ed140128
AD
4339/* I_CRYPT:
4340 * This symbol, if defined, indicates that <crypt.h> exists and
4341 * should be included.
4342 */
4343#$i_crypt I_CRYPT /**/
4344
4345/* DB_Prefix_t:
4346 * This symbol contains the type of the prefix structure element
4347 * in the <db.h> header file. In older versions of DB, it was
4348 * int, while in newer ones it is u_int32_t.
4349 */
4350/* DB_Hash_t:
4351 * This symbol contains the type of the prefix structure element
4352 * in the <db.h> header file. In older versions of DB, it was
4353 * int, while in newer ones it is size_t.
4354 */
4355/* DB_VERSION_MAJOR_CFG:
4356 * This symbol, if defined, defines the major version number of
4357 * Berkeley DB found in the <db.h> header when Perl was configured.
4358 */
4359/* DB_VERSION_MINOR_CFG:
4360 * This symbol, if defined, defines the minor version number of
4361 * Berkeley DB found in the <db.h> header when Perl was configured.
4362 * For DB version 1 this is always 0.
4363 */
4364/* DB_VERSION_PATCH_CFG:
4365 * This symbol, if defined, defines the patch version number of
4366 * Berkeley DB found in the <db.h> header when Perl was configured.
4367 * For DB version 1 this is always 0.
4368 */
4369#define DB_Hash_t $db_hashtype /**/
4370#define DB_Prefix_t $db_prefixtype /**/
4371#define DB_VERSION_MAJOR_CFG $db_version_major /**/
4372#define DB_VERSION_MINOR_CFG $db_version_minor /**/
4373#define DB_VERSION_PATCH_CFG $db_version_patch /**/
4374
4375/* I_FP:
4376 * This symbol, if defined, indicates that <fp.h> exists and
4377 * should be included.
4378 */
4379#$i_fp I_FP /**/
4380
4381/* I_FP_CLASS:
4382 * This symbol, if defined, indicates that <fp_class.h> exists and
4383 * should be included.
4384 */
4385#$i_fp_class I_FP_CLASS /**/
4386
4387/* I_IEEEFP:
4388 * This symbol, if defined, indicates that <ieeefp.h> exists and
4389 * should be included.
4390 */
4391#$i_ieeefp I_IEEEFP /**/
4392
4393/* I_INTTYPES:
4394 * This symbol, if defined, indicates to the C program that it should
4395 * include <inttypes.h>.
4396 */
4397#$i_inttypes I_INTTYPES /**/
4398
4399/* I_LANGINFO:
4400 * This symbol, if defined, indicates that <langinfo.h> exists and
4401 * should be included.
4402 */
4403#$i_langinfo I_LANGINFO /**/
4404
4405/* I_LIBUTIL:
4406 * This symbol, if defined, indicates that <libutil.h> exists and
4407 * should be included.
4408 */
4409#$i_libutil I_LIBUTIL /**/
4410
a33f2d9f
AD
4411/* I_MALLOCMALLOC:
4412 * This symbol, if defined, indicates to the C program that it should
4413 * include <malloc/malloc.h>.
4414 */
4415#$i_mallocmalloc I_MALLOCMALLOC /**/
4416
ed140128
AD
4417/* I_MNTENT:
4418 * This symbol, if defined, indicates that <mntent.h> exists and
4419 * should be included.
4420 */
4421#$i_mntent I_MNTENT /**/
4422
4423/* I_NETINET_TCP:
4424 * This symbol, if defined, indicates to the C program that it should
4425 * include <netinet/tcp.h>.
4426 */
4427#$i_netinettcp I_NETINET_TCP /**/
4428
4429/* I_POLL:
4430 * This symbol, if defined, indicates that <poll.h> exists and
4431 * should be included. (see also HAS_POLL)
4432 */
4433#$i_poll I_POLL /**/
4434
4435/* I_PROT:
4436 * This symbol, if defined, indicates that <prot.h> exists and
4437 * should be included.
4438 */
4439#$i_prot I_PROT /**/
4440
4441/* I_SHADOW:
4442 * This symbol, if defined, indicates that <shadow.h> exists and
4443 * should be included.
4444 */
4445#$i_shadow I_SHADOW /**/
4446
4447/* I_SOCKS:
4448 * This symbol, if defined, indicates that <socks.h> exists and
4449 * should be included.
4450 */
4451#$i_socks I_SOCKS /**/
4452
06501368
MB
4453/* I_STDBOOL:
4454 * This symbol, if defined, indicates that <stdbool.h> exists and
4455 * can be included.
4456 */
4457#$i_stdbool I_STDBOOL /**/
4458
ed140128
AD
4459/* I_SUNMATH:
4460 * This symbol, if defined, indicates that <sunmath.h> exists and
4461 * should be included.
4462 */
4463#$i_sunmath I_SUNMATH /**/
4464
4465/* I_SYSLOG:
4466 * This symbol, if defined, indicates that <syslog.h> exists and
4467 * should be included.
4468 */
4469#$i_syslog I_SYSLOG /**/
4470
4471/* I_SYSMODE:
4472 * This symbol, if defined, indicates that <sys/mode.h> exists and
4473 * should be included.
4474 */
4475#$i_sysmode I_SYSMODE /**/
4476
4477/* I_SYS_MOUNT:
4478 * This symbol, if defined, indicates that <sys/mount.h> exists and
4479 * should be included.
4480 */
4481#$i_sysmount I_SYS_MOUNT /**/
4482
4483/* I_SYS_STATFS:
4484 * This symbol, if defined, indicates that <sys/statfs.h> exists.
4485 */
4486#$i_sysstatfs I_SYS_STATFS /**/
4487
4488/* I_SYS_STATVFS:
4489 * This symbol, if defined, indicates that <sys/statvfs.h> exists and
4490 * should be included.
4491 */
4492#$i_sysstatvfs I_SYS_STATVFS /**/
4493
4494/* I_SYSUTSNAME:
4495 * This symbol, if defined, indicates that <sys/utsname.h> exists and
4496 * should be included.
4497 */
4498#$i_sysutsname I_SYSUTSNAME /**/
4499
4500/* I_SYS_VFS:
4501 * This symbol, if defined, indicates that <sys/vfs.h> exists and
4502 * should be included.
4503 */
4504#$i_sysvfs I_SYS_VFS /**/
4505
4506/* I_USTAT:
4507 * This symbol, if defined, indicates that <ustat.h> exists and
4508 * should be included.
4509 */
4510#$i_ustat I_USTAT /**/
4511
4512/* PERL_PRIfldbl:
4513 * This symbol, if defined, contains the string used by stdio to
4514 * format long doubles (format 'f') for output.
4515 */
4516/* PERL_PRIgldbl:
4517 * This symbol, if defined, contains the string used by stdio to
4518 * format long doubles (format 'g') for output.
4519 */
4520/* PERL_PRIeldbl:
4521 * This symbol, if defined, contains the string used by stdio to
4522 * format long doubles (format 'e') for output.
4523 */
4524/* PERL_SCNfldbl:
4525 * This symbol, if defined, contains the string used by stdio to
4526 * format long doubles (format 'f') for input.
4527 */
4528#$d_PRIfldbl PERL_PRIfldbl $sPRIfldbl /**/
4529#$d_PRIgldbl PERL_PRIgldbl $sPRIgldbl /**/
4530#$d_PRIeldbl PERL_PRIeldbl $sPRIeldbl /**/
4531#$d_SCNfldbl PERL_SCNfldbl $sSCNfldbl /**/
4532
ed140128
AD
4533/* NEED_VA_COPY:
4534 * This symbol, if defined, indicates that the system stores
4535 * the variable argument list datatype, va_list, in a format
4536 * that cannot be copied by simple assignment, so that some
4537 * other means must be used when copying is required.
4538 * As such systems vary in their provision (or non-provision)
4539 * of copying mechanisms, handy.h defines a platform-
4540 * independent macro, Perl_va_copy(src, dst), to do the job.
4541 */
4542#$need_va_copy NEED_VA_COPY /**/
4543
4544/* IVTYPE:
4545 * This symbol defines the C type used for Perl's IV.
4546 */
4547/* UVTYPE:
4548 * This symbol defines the C type used for Perl's UV.
4549 */
4550/* I8TYPE:
4551 * This symbol defines the C type used for Perl's I8.
4552 */
4553/* U8TYPE:
4554 * This symbol defines the C type used for Perl's U8.
4555 */
4556/* I16TYPE:
4557 * This symbol defines the C type used for Perl's I16.
4558 */
4559/* U16TYPE:
4560 * This symbol defines the C type used for Perl's U16.
4561 */
4562/* I32TYPE:
4563 * This symbol defines the C type used for Perl's I32.
4564 */
4565/* U32TYPE:
4566 * This symbol defines the C type used for Perl's U32.
4567 */
4568/* I64TYPE:
4569 * This symbol defines the C type used for Perl's I64.
4570 */
4571/* U64TYPE:
4572 * This symbol defines the C type used for Perl's U64.
4573 */
4574/* NVTYPE:
4575 * This symbol defines the C type used for Perl's NV.
fe749a9f 4576 */
08c92000
MB
4577/* IVSIZE:
4578 * This symbol contains the sizeof(IV).
758a5d79 4579 */
08c92000
MB
4580/* UVSIZE:
4581 * This symbol contains the sizeof(UV).
758a5d79 4582 */
08c92000
MB
4583/* I8SIZE:
4584 * This symbol contains the sizeof(I8).
a3540c92 4585 */
08c92000
MB
4586/* U8SIZE:
4587 * This symbol contains the sizeof(U8).
a33c94aa 4588 */
08c92000
MB
4589/* I16SIZE:
4590 * This symbol contains the sizeof(I16).
a33c94aa 4591 */
08c92000
MB
4592/* U16SIZE:
4593 * This symbol contains the sizeof(U16).
1e8c3fde 4594 */
08c92000
MB
4595/* I32SIZE:
4596 * This symbol contains the sizeof(I32).
fe749a9f 4597 */
08c92000
MB
4598/* U32SIZE:
4599 * This symbol contains the sizeof(U32).
fe749a9f 4600 */
08c92000
MB
4601/* I64SIZE:
4602 * This symbol contains the sizeof(I64).
3813c136 4603 */
08c92000
MB
4604/* U64SIZE:
4605 * This symbol contains the sizeof(U64).
51997bc3 4606 */
08c92000
MB
4607/* NVSIZE:
4608 * This symbol contains the sizeof(NV).
e67aeab1 4609 */
08c92000
MB
4610/* NV_PRESERVES_UV:
4611 * This symbol, if defined, indicates that a variable of type NVTYPE
4612 * can preserve all the bits of a variable of type UVTYPE.
fe749a9f 4613 */
08c92000
MB
4614/* NV_PRESERVES_UV_BITS:
4615 * This symbol contains the number of bits a variable of type NVTYPE
4616 * can preserve of a variable of type UVTYPE.
44b94491 4617 */
4137585d 4618/* NV_OVERFLOWS_INTEGERS_AT:
b68c599a
NC
4619 * This symbol gives the largest integer value that NVs can hold. This
4620 * value + 1.0 cannot be stored accurately. It is expressed as constant
cd95ead5 4621 * floating point expression to reduce the chance of decimal/binary
b68c599a
NC
4622 * conversion issues. If it can not be determined, the value 0 is given.
4623 */
17f6277d 4624/* NV_ZERO_IS_ALLBITS_ZERO:
ed140128
AD
4625 * This symbol, if defined, indicates that a variable of type NVTYPE
4626 * stores 0.0 in memory as all bits zero.
e5c9fcd0 4627 */
ed140128
AD
4628#define IVTYPE $ivtype /**/
4629#define UVTYPE $uvtype /**/
4630#define I8TYPE $i8type /**/
4631#define U8TYPE $u8type /**/
4632#define I16TYPE $i16type /**/
4633#define U16TYPE $u16type /**/
4634#define I32TYPE $i32type /**/
4635#define U32TYPE $u32type /**/
4636#ifdef HAS_QUAD
4637#define I64TYPE $i64type /**/
4638#define U64TYPE $u64type /**/
4639#endif
4640#define NVTYPE $nvtype /**/
4641#define IVSIZE $ivsize /**/
4642#define UVSIZE $uvsize /**/
4643#define I8SIZE $i8size /**/
4644#define U8SIZE $u8size /**/
4645#define I16SIZE $i16size /**/
4646#define U16SIZE $u16size /**/
4647#define I32SIZE $i32size /**/
4648#define U32SIZE $u32size /**/
4649#ifdef HAS_QUAD
4650#define I64SIZE $i64size /**/
4651#define U64SIZE $u64size /**/
4652#endif
4653#define NVSIZE $nvsize /**/
4654#$d_nv_preserves_uv NV_PRESERVES_UV
4655#define NV_PRESERVES_UV_BITS $nv_preserves_uv_bits
b68c599a 4656#define NV_OVERFLOWS_INTEGERS_AT $nv_overflows_integers_at
ed140128
AD
4657#$d_nv_zero_is_allbits_zero NV_ZERO_IS_ALLBITS_ZERO
4658#if UVSIZE == 8
4659# ifdef BYTEORDER
4660# if BYTEORDER == 0x1234
4661# undef BYTEORDER
4662# define BYTEORDER 0x12345678
4663# else
4664# if BYTEORDER == 0x4321
4665# undef BYTEORDER
4666# define BYTEORDER 0x87654321
4667# endif
4668# endif
4669# endif
4670#endif
e5c9fcd0 4671
ed140128
AD
4672/* IVdf:
4673 * This symbol defines the format string used for printing a Perl IV
4674 * as a signed decimal integer.
e5c9fcd0 4675 */
ed140128
AD
4676/* UVuf:
4677 * This symbol defines the format string used for printing a Perl UV
4678 * as an unsigned decimal integer.
693762b4 4679 */
ed140128
AD
4680/* UVof:
4681 * This symbol defines the format string used for printing a Perl UV
4682 * as an unsigned octal integer.
44b94491 4683 */
ed140128
AD
4684/* UVxf:
4685 * This symbol defines the format string used for printing a Perl UV
4686 * as an unsigned hexadecimal integer in lowercase abcdef.
104d25b7 4687 */
ed140128
AD
4688/* UVXf:
4689 * This symbol defines the format string used for printing a Perl UV
4690 * as an unsigned hexadecimal integer in uppercase ABCDEF.
76d49b1c 4691 */
ed140128
AD
4692/* NVef:
4693 * This symbol defines the format string used for printing a Perl NV
4694 * using %e-ish floating point format.
28e5dec8 4695 */
ed140128
AD
4696/* NVff:
4697 * This symbol defines the format string used for printing a Perl NV
4698 * using %f-ish floating point format.
ad27e871 4699 */
ed140128
AD
4700/* NVgf:
4701 * This symbol defines the format string used for printing a Perl NV
4702 * using %g-ish floating point format.
104d25b7 4703 */
ed140128
AD
4704#define IVdf $ivdformat /**/
4705#define UVuf $uvuformat /**/
4706#define UVof $uvoformat /**/
4707#define UVxf $uvxformat /**/
4708#define UVXf $uvXUformat /**/
4709#define NVef $nveformat /**/
4710#define NVff $nvfformat /**/
4711#define NVgf $nvgformat /**/
104d25b7 4712
ed140128
AD
4713/* SELECT_MIN_BITS:
4714 * This symbol holds the minimum number of bits operated by select.
4715 * That is, if you do select(n, ...), how many bits at least will be
4716 * cleared in the masks if some activity is detected. Usually this
4717 * is either n or 32*ceil(n/32), especially many little-endians do
4718 * the latter. This is only useful if you have select(), naturally.
a845a0d4 4719 */
ed140128 4720#define SELECT_MIN_BITS $selectminbits /**/
a845a0d4 4721
668fdbe1
MB
4722/* ST_INO_SIZE:
4723 * This variable contains the size of struct stat's st_ino in bytes.
4724 */
4725/* ST_INO_SIGN:
cfc2543a 4726 * This symbol holds the signedness of struct stat's st_ino.
668fdbe1
MB
4727 * 1 for unsigned, -1 for signed.
4728 */
4729#define ST_INO_SIGN $st_ino_sign /* st_ino sign */
4730#define ST_INO_SIZE $st_ino_size /* st_ino size */
4731
08c92000
MB
4732/* STARTPERL:
4733 * This variable contains the string to put in front of a perl
4734 * script to make sure (one hopes) that it runs with perl and not
4735 * some shell.
cb86ce0e 4736 */
08c92000 4737#define STARTPERL "$startperl" /**/
cb86ce0e 4738
08c92000
MB
4739/* HAS_STDIO_STREAM_ARRAY:
4740 * This symbol, if defined, tells that there is an array
4741 * holding the stdio streams.
4e0554ec 4742 */
08c92000
MB
4743/* STDIO_STREAM_ARRAY:
4744 * This symbol tells the name of the array holding the stdio streams.
4745 * Usual values include _iob, __iob, and __sF.
758a5d79 4746 */
08c92000 4747#$d_stdio_stream_array HAS_STDIO_STREAM_ARRAY /**/
4137585d 4748#ifdef HAS_STDIO_STREAM_ARRAY
08c92000 4749#define STDIO_STREAM_ARRAY $stdio_stream_array
4137585d 4750#endif
758a5d79 4751
81c4fd9e
MB
4752/* GMTIME_MAX:
4753 * This symbol contains the maximum value for the time_t offset that
4754 * the system function gmtime () accepts, and defaults to 0
4755 */
4756/* GMTIME_MIN:
4757 * This symbol contains the minimum value for the time_t offset that
4758 * the system function gmtime () accepts, and defaults to 0
4759 */
73e6e416
MB
4760/* LOCALTIME_MAX:
4761 * This symbol contains the maximum value for the time_t offset that
4762 * the system function localtime () accepts, and defaults to 0
4763 */
4764/* LOCALTIME_MIN:
4765 * This symbol contains the minimum value for the time_t offset that
4766 * the system function localtime () accepts, and defaults to 0
4767 */
4768#define GMTIME_MAX $sGMTIME_max /**/
4769#define GMTIME_MIN $sGMTIME_min /**/
4770#define LOCALTIME_MAX $sLOCALTIME_max /**/
4771#define LOCALTIME_MIN $sLOCALTIME_min /**/
81c4fd9e 4772
08c92000
MB
4773/* USE_64_BIT_INT:
4774 * This symbol, if defined, indicates that 64-bit integers should
4775 * be used when available. If not defined, the native integers
4776 * will be employed (be they 32 or 64 bits). The minimal possible
4777 * 64-bitness is used, just enough to get 64-bit integers into Perl.
4778 * This may mean using for example "long longs", while your memory
4779 * may still be limited to 2 gigabytes.
66fe083f 4780 */
08c92000
MB
4781/* USE_64_BIT_ALL:
4782 * This symbol, if defined, indicates that 64-bit integers should
4783 * be used when available. If not defined, the native integers
4784 * will be used (be they 32 or 64 bits). The maximal possible
4785 * 64-bitness is employed: LP64 or ILP64, meaning that you will
4786 * be able to use more than 2 gigabytes of memory. This mode is
4787 * even more binary incompatible than USE_64_BIT_INT. You may not
4788 * be able to run the resulting executable in a 32-bit CPU at all or
4789 * you may need at least to reboot your OS to 64-bit mode.
767df6a1 4790 */
08c92000
MB
4791#ifndef USE_64_BIT_INT
4792#$use64bitint USE_64_BIT_INT /**/
4793#endif
08c92000
MB
4794#ifndef USE_64_BIT_ALL
4795#$use64bitall USE_64_BIT_ALL /**/
4796#endif
a33c94aa 4797
f6a82ade
MB
4798/* USE_CBACKTRACE:
4799 * This symbol, if defined, indicates that Perl should
4800 * be built with support for backtrace.
4801 */
4802#$usecbacktrace USE_CBACKTRACE /**/
4803
0a3c33ab
MB
4804/* USE_DTRACE:
4805 * This symbol, if defined, indicates that Perl should
4806 * be built with support for DTrace.
4807 */
4808#$usedtrace USE_DTRACE /**/
4809
eaf812ae
MB
4810/* USE_FAST_STDIO:
4811 * This symbol, if defined, indicates that Perl should
4812 * be built to use 'fast stdio'.
4813 * Defaults to define in Perls 5.8 and earlier, to undef later.
4814 */
4815#ifndef USE_FAST_STDIO
4816#$usefaststdio USE_FAST_STDIO /**/
4817#endif
4818
d78f9ffa
MB
4819/* USE_KERN_PROC_PATHNAME:
4820 * This symbol, if defined, indicates that we can use sysctl with
4821 * KERN_PROC_PATHNAME to get a full path for the executable, and hence
4822 * convert $^X to an absolute path.
4823 */
4824#$usekernprocpathname USE_KERN_PROC_PATHNAME /**/
4825
08c92000
MB
4826/* USE_LARGE_FILES:
4827 * This symbol, if defined, indicates that large file support
4828 * should be used when available.
640374d0 4829 */
08c92000
MB
4830#ifndef USE_LARGE_FILES
4831#$uselargefiles USE_LARGE_FILES /**/
4832#endif
dfe9444c 4833
08c92000
MB
4834/* USE_LONG_DOUBLE:
4835 * This symbol, if defined, indicates that long doubles should
4836 * be used when available.
a845a0d4 4837 */
08c92000
MB
4838#ifndef USE_LONG_DOUBLE
4839#$uselongdouble USE_LONG_DOUBLE /**/
4840#endif
a845a0d4 4841
08c92000
MB
4842/* USE_MORE_BITS:
4843 * This symbol, if defined, indicates that 64-bit interfaces and
4844 * long doubles should be used when available.
758a5d79 4845 */
08c92000
MB
4846#ifndef USE_MORE_BITS
4847#$usemorebits USE_MORE_BITS /**/
4848#endif
758a5d79 4849
08c92000
MB
4850/* MULTIPLICITY:
4851 * This symbol, if defined, indicates that Perl should
4852 * be built to use multiplicity.
1acc7ade 4853 */
08c92000
MB
4854#ifndef MULTIPLICITY
4855#$usemultiplicity MULTIPLICITY /**/
4856#endif
1acc7ade 4857
d78f9ffa
MB
4858/* USE_NSGETEXECUTABLEPATH:
4859 * This symbol, if defined, indicates that we can use _NSGetExecutablePath
4860 * and realpath to get a full path for the executable, and hence convert
4861 * $^X to an absolute path.
4862 */
4863#$usensgetexecutablepath USE_NSGETEXECUTABLEPATH /**/
4864
08c92000
MB
4865/* USE_PERLIO:
4866 * This symbol, if defined, indicates that the PerlIO abstraction should
4867 * be used throughout. If not defined, stdio should be
4868 * used in a fully backward compatible manner.
5ff3f7a4 4869 */
08c92000
MB
4870#ifndef USE_PERLIO
4871#$useperlio USE_PERLIO /**/
4872#endif
5ff3f7a4 4873
08c92000
MB
4874/* USE_SOCKS:
4875 * This symbol, if defined, indicates that Perl should
4876 * be built to use socks.
a845a0d4 4877 */
08c92000
MB
4878#ifndef USE_SOCKS
4879#$usesocks USE_SOCKS /**/
4880#endif
a845a0d4 4881
fe14fcc3 4882#endif
8d063cd8 4883!GROK!THIS!
43dddb59 4884;;
11e2f395 4885esac