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