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