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