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