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