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