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