This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perldelta: fix my bad pod
[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 */
dc91db6c
JH
1938/* LONG_DOUBLEKIND:
1939 * LONG_DOUBLEKIND will be one of
1940 * LONG_DOUBLE_IS_DOUBLE
1941 * LONG_DOUBLE_IS_IEEE_754_128_BIT_LITTLE_ENDIAN
1942 * LONG_DOUBLE_IS_IEEE_754_128_BIT_BIG_ENDIAN
1943 * LONG_DOUBLE_IS_X86_80_BIT_LITTLE_ENDIAN
1944 * LONG_DOUBLE_IS_X86_80_BIT_BIG_ENDIAN
1945 * LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_LITTLE_ENDIAN
1946 * LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_BIG_ENDIAN
1947 * LONG_DOUBLE_IS_UNKNOWN_FORMAT
1948 * It is only defined if the system supports long doubles.
1949 */
06501368
MB
1950#$d_longdbl HAS_LONG_DOUBLE /**/
1951#ifdef HAS_LONG_DOUBLE
1952#define LONG_DOUBLESIZE $longdblsize /**/
dc91db6c
JH
1953#define LONG_DOUBLEKIND $longdblkind /**/
1954#define LONG_DOUBLE_IS_DOUBLE 0
1955#define LONG_DOUBLE_IS_IEEE_754_128_BIT_LITTLE_ENDIAN 1
1956#define LONG_DOUBLE_IS_IEEE_754_128_BIT_BIG_ENDIAN 2
1957#define LONG_DOUBLE_IS_X86_80_BIT_LITTLE_ENDIAN 3
1958#define LONG_DOUBLE_IS_X86_80_BIT_BIG_ENDIAN 4
1959#define LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_LITTLE_ENDIAN 5
1960#define LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_BIG_ENDIAN 6
1961#define LONG_DOUBLE_IS_UNKNOWN_FORMAT -1
06501368 1962#endif
a845a0d4 1963
06501368
MB
1964/* HAS_LONG_LONG:
1965 * This symbol will be defined if the C compiler supports long long.
eaf812ae 1966 */
06501368
MB
1967/* LONGLONGSIZE:
1968 * This symbol contains the size of a long long, so that the
1969 * C preprocessor can make decisions based on it. It is only
1970 * defined if the system supports long long.
1971 */
1972#$d_longlong HAS_LONG_LONG /**/
1973#ifdef HAS_LONG_LONG
1974#define LONGLONGSIZE $longlongsize /**/
1975#endif
eaf812ae 1976
06501368
MB
1977/* HAS_LSEEK_PROTO:
1978 * This symbol, if defined, indicates that the system provides
1979 * a prototype for the lseek() function. Otherwise, it is up
1980 * to the program to supply one. A good guess is
1981 * extern off_t lseek(int, off_t, int);
a845a0d4 1982 */
06501368
MB
1983#$d_lseekproto HAS_LSEEK_PROTO /**/
1984
1985/* HAS_MEMCHR:
1986 * This symbol, if defined, indicates that the memchr routine is available
1987 * to locate characters within a C string.
a845a0d4 1988 */
06501368
MB
1989#$d_memchr HAS_MEMCHR /**/
1990
1991/* HAS_MKSTEMP:
1992 * This symbol, if defined, indicates that the mkstemp routine is
1993 * available to exclusively create and open a uniquely named
1994 * temporary file.
1995 */
1996#$d_mkstemp HAS_MKSTEMP /**/
1997
1998/* HAS_MMAP:
1999 * This symbol, if defined, indicates that the mmap system call is
2000 * available to map a file into memory.
2001 */
2002/* Mmap_t:
2003 * This symbol holds the return type of the mmap() system call
2004 * (and simultaneously the type of the first argument).
2005 * Usually set to 'void *' or 'caddr_t'.
2006 */
2007#$d_mmap HAS_MMAP /**/
2008#define Mmap_t $mmaptype /**/
2009
2010/* HAS_MSG:
2011 * This symbol, if defined, indicates that the entire msg*(2) library is
2012 * supported (IPC mechanism based on message queues).
2013 */
2014#$d_msg HAS_MSG /**/
2015
2016/* HAS_OPEN3:
2017 * This manifest constant lets the C program know that the three
2018 * argument form of open(2) is available.
2019 */
2020#$d_open3 HAS_OPEN3 /**/
2021
2022/* OLD_PTHREAD_CREATE_JOINABLE:
2023 * This symbol, if defined, indicates how to create pthread
2024 * in joinable (aka undetached) state. NOTE: not defined
2025 * if pthread.h already has defined PTHREAD_CREATE_JOINABLE
2026 * (the new version of the constant).
2027 * If defined, known values are PTHREAD_CREATE_UNDETACHED
2028 * and __UNDETACHED.
2029 */
2030#$d_old_pthread_create_joinable OLD_PTHREAD_CREATE_JOINABLE $old_pthread_create_joinable /**/
2031
2032/* HAS_PTHREAD_ATFORK:
2033 * This symbol, if defined, indicates that the pthread_atfork routine
2034 * is available to setup fork handlers.
2035 */
2036#$d_pthread_atfork HAS_PTHREAD_ATFORK /**/
2037
2038/* HAS_PTHREAD_YIELD:
2039 * This symbol, if defined, indicates that the pthread_yield
2040 * routine is available to yield the execution of the current
2041 * thread. sched_yield is preferable to pthread_yield.
2042 */
2043/* SCHED_YIELD:
2044 * This symbol defines the way to yield the execution of
2045 * the current thread. Known ways are sched_yield,
2046 * pthread_yield, and pthread_yield with NULL.
2047 */
2048/* HAS_SCHED_YIELD:
2049 * This symbol, if defined, indicates that the sched_yield
08c92000
MB
2050 * routine is available to yield the execution of the current
2051 * thread. sched_yield is preferable to pthread_yield.
2052 */
2053#$d_pthread_yield HAS_PTHREAD_YIELD /**/
2054#define SCHED_YIELD $sched_yield /**/
2055#$d_sched_yield HAS_SCHED_YIELD /**/
a845a0d4 2056
08c92000
MB
2057/* HAS_RANDOM_R:
2058 * This symbol, if defined, indicates that the random_r routine
2059 * is available to random re-entrantly.
a845a0d4 2060 */
08c92000
MB
2061/* RANDOM_R_PROTO:
2062 * This symbol encodes the prototype of random_r.
2063 * It is zero if d_random_r is undef, and one of the
2064 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_random_r
2065 * is defined.
a845a0d4 2066 */
08c92000
MB
2067#$d_random_r HAS_RANDOM_R /**/
2068#define RANDOM_R_PROTO $random_r_proto /**/
a845a0d4 2069
eaf812ae
MB
2070/* HAS_READDIR64_R:
2071 * This symbol, if defined, indicates that the readdir64_r routine
2072 * is available to readdir64 re-entrantly.
2073 */
2074/* READDIR64_R_PROTO:
2075 * This symbol encodes the prototype of readdir64_r.
2076 * It is zero if d_readdir64_r is undef, and one of the
2077 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_readdir64_r
2078 * is defined.
2079 */
2080#$d_readdir64_r HAS_READDIR64_R /**/
2081#define READDIR64_R_PROTO $readdir64_r_proto /**/
2082
08c92000
MB
2083/* HAS_READDIR_R:
2084 * This symbol, if defined, indicates that the readdir_r routine
2085 * is available to readdir re-entrantly.
a845a0d4 2086 */
08c92000
MB
2087/* READDIR_R_PROTO:
2088 * This symbol encodes the prototype of readdir_r.
2089 * It is zero if d_readdir_r is undef, and one of the
2090 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_readdir_r
2091 * is defined.
2092 */
2093#$d_readdir_r HAS_READDIR_R /**/
2094#define READDIR_R_PROTO $readdir_r_proto /**/
a845a0d4 2095
b8677e3b
MB
2096/* HAS_SAFE_BCOPY:
2097 * This symbol, if defined, indicates that the bcopy routine is available
2098 * to copy potentially overlapping memory blocks. Normally, you should
2099 * probably use memmove() or memcpy(). If neither is defined, roll your
2100 * own version.
08c92000 2101 */
b8677e3b 2102#$d_safebcpy HAS_SAFE_BCOPY /**/
08c92000 2103
b8677e3b
MB
2104/* HAS_SAFE_MEMCPY:
2105 * This symbol, if defined, indicates that the memcpy routine is available
2106 * to copy potentially overlapping memory blocks. If you need to
2107 * copy overlapping memory blocks, you should check HAS_MEMMOVE and
2108 * use memmove() instead, if available.
08c92000 2109 */
b8677e3b
MB
2110#$d_safemcpy HAS_SAFE_MEMCPY /**/
2111
2112/* HAS_SANE_MEMCMP:
2113 * This symbol, if defined, indicates that the memcmp routine is available
2114 * and can be used to compare relative magnitudes of chars with their high
2115 * bits set. If it is not defined, roll your own version.
2116 */
2117#$d_sanemcmp HAS_SANE_MEMCMP /**/
08c92000 2118
06501368
MB
2119/* HAS_SEM:
2120 * This symbol, if defined, indicates that the entire sem*(2) library is
2121 * supported.
2122 */
2123#$d_sem HAS_SEM /**/
2124
2125/* HAS_SETGRENT:
2126 * This symbol, if defined, indicates that the setgrent routine is
2127 * available for initializing sequential access of the group database.
2128 */
2129#$d_setgrent HAS_SETGRENT /**/
2130
08c92000
MB
2131/* HAS_SETGRENT_R:
2132 * This symbol, if defined, indicates that the setgrent_r routine
2133 * is available to setgrent re-entrantly.
2134 */
2135/* SETGRENT_R_PROTO:
2136 * This symbol encodes the prototype of setgrent_r.
2137 * It is zero if d_setgrent_r is undef, and one of the
2138 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setgrent_r
2139 * is defined.
2140 */
2141#$d_setgrent_r HAS_SETGRENT_R /**/
2142#define SETGRENT_R_PROTO $setgrent_r_proto /**/
2143
06501368
MB
2144/* HAS_SETHOSTENT:
2145 * This symbol, if defined, indicates that the sethostent() routine is
2146 * available.
2147 */
2148#$d_sethent HAS_SETHOSTENT /**/
2149
eaf812ae
MB
2150/* HAS_SETHOSTENT_R:
2151 * This symbol, if defined, indicates that the sethostent_r routine
2152 * is available to sethostent re-entrantly.
2153 */
2154/* SETHOSTENT_R_PROTO:
2155 * This symbol encodes the prototype of sethostent_r.
2156 * It is zero if d_sethostent_r is undef, and one of the
2157 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_sethostent_r
2158 * is defined.
2159 */
2160#$d_sethostent_r HAS_SETHOSTENT_R /**/
2161#define SETHOSTENT_R_PROTO $sethostent_r_proto /**/
2162
eaf812ae
MB
2163/* HAS_SETLOCALE_R:
2164 * This symbol, if defined, indicates that the setlocale_r routine
2165 * is available to setlocale re-entrantly.
2166 */
2167/* SETLOCALE_R_PROTO:
2168 * This symbol encodes the prototype of setlocale_r.
2169 * It is zero if d_setlocale_r is undef, and one of the
2170 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setlocale_r
2171 * is defined.
2172 */
2173#$d_setlocale_r HAS_SETLOCALE_R /**/
2174#define SETLOCALE_R_PROTO $setlocale_r_proto /**/
2175
06501368
MB
2176/* HAS_SETNETENT:
2177 * This symbol, if defined, indicates that the setnetent() routine is
2178 * available.
2179 */
2180#$d_setnent HAS_SETNETENT /**/
2181
eaf812ae
MB
2182/* HAS_SETNETENT_R:
2183 * This symbol, if defined, indicates that the setnetent_r routine
2184 * is available to setnetent re-entrantly.
2185 */
2186/* SETNETENT_R_PROTO:
2187 * This symbol encodes the prototype of setnetent_r.
2188 * It is zero if d_setnetent_r is undef, and one of the
2189 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setnetent_r
2190 * is defined.
2191 */
2192#$d_setnetent_r HAS_SETNETENT_R /**/
2193#define SETNETENT_R_PROTO $setnetent_r_proto /**/
2194
06501368
MB
2195/* HAS_SETPROTOENT:
2196 * This symbol, if defined, indicates that the setprotoent() routine is
2197 * available.
2198 */
2199#$d_setpent HAS_SETPROTOENT /**/
2200
2201/* HAS_SETPGRP:
2202 * This symbol, if defined, indicates that the setpgrp routine is
2203 * available to set the current process group.
2204 */
2205/* USE_BSD_SETPGRP:
2206 * This symbol, if defined, indicates that setpgrp needs two
2207 * arguments whereas USG one needs none. See also HAS_SETPGID
2208 * for a POSIX interface.
2209 */
2210#$d_setpgrp HAS_SETPGRP /**/
2211#$d_bsdsetpgrp USE_BSD_SETPGRP /**/
2212
eaf812ae
MB
2213/* HAS_SETPROTOENT_R:
2214 * This symbol, if defined, indicates that the setprotoent_r routine
2215 * is available to setprotoent re-entrantly.
2216 */
2217/* SETPROTOENT_R_PROTO:
2218 * This symbol encodes the prototype of setprotoent_r.
2219 * It is zero if d_setprotoent_r is undef, and one of the
2220 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setprotoent_r
2221 * is defined.
2222 */
2223#$d_setprotoent_r HAS_SETPROTOENT_R /**/
2224#define SETPROTOENT_R_PROTO $setprotoent_r_proto /**/
2225
06501368
MB
2226/* HAS_SETPWENT:
2227 * This symbol, if defined, indicates that the setpwent routine is
2228 * available for initializing sequential access of the passwd database.
2229 */
2230#$d_setpwent HAS_SETPWENT /**/
2231
08c92000
MB
2232/* HAS_SETPWENT_R:
2233 * This symbol, if defined, indicates that the setpwent_r routine
2234 * is available to setpwent re-entrantly.
2235 */
2236/* SETPWENT_R_PROTO:
2237 * This symbol encodes the prototype of setpwent_r.
2238 * It is zero if d_setpwent_r is undef, and one of the
2239 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setpwent_r
2240 * is defined.
2241 */
2242#$d_setpwent_r HAS_SETPWENT_R /**/
2243#define SETPWENT_R_PROTO $setpwent_r_proto /**/
2244
06501368
MB
2245/* HAS_SETSERVENT:
2246 * This symbol, if defined, indicates that the setservent() routine is
2247 * available.
2248 */
2249#$d_setsent HAS_SETSERVENT /**/
2250
eaf812ae
MB
2251/* HAS_SETSERVENT_R:
2252 * This symbol, if defined, indicates that the setservent_r routine
2253 * is available to setservent re-entrantly.
2254 */
2255/* SETSERVENT_R_PROTO:
2256 * This symbol encodes the prototype of setservent_r.
2257 * It is zero if d_setservent_r is undef, and one of the
2258 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setservent_r
2259 * is defined.
2260 */
2261#$d_setservent_r HAS_SETSERVENT_R /**/
2262#define SETSERVENT_R_PROTO $setservent_r_proto /**/
2263
06501368
MB
2264/* HAS_SETVBUF:
2265 * This symbol, if defined, indicates that the setvbuf routine is
2266 * available to change buffering on an open stdio stream.
2267 * to a line-buffered mode.
2268 */
2269#$d_setvbuf HAS_SETVBUF /**/
2270
2271/* HAS_SHM:
2272 * This symbol, if defined, indicates that the entire shm*(2) library is
2273 * supported.
2274 */
2275#$d_shm HAS_SHM /**/
2276
2277/* Shmat_t:
2278 * This symbol holds the return type of the shmat() system call.
2279 * Usually set to 'void *' or 'char *'.
2280 */
2281/* HAS_SHMAT_PROTOTYPE:
2282 * This symbol, if defined, indicates that the sys/shm.h includes
2283 * a prototype for shmat(). Otherwise, it is up to the program to
2284 * guess one. Shmat_t shmat(int, Shmat_t, int) is a good guess,
2285 * but not always right so it should be emitted by the program only
2286 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
2287 */
2288#define Shmat_t $shmattype /**/
2289#$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/
2290
b8677e3b
MB
2291/* HAS_SIGACTION:
2292 * This symbol, if defined, indicates that Vr4's sigaction() routine
2293 * is available.
eaf812ae 2294 */
b8677e3b 2295#$d_sigaction HAS_SIGACTION /**/
eaf812ae 2296
b8677e3b
MB
2297/* HAS_SIGSETJMP:
2298 * This variable indicates to the C program that the sigsetjmp()
2299 * routine is available to save the calling process's registers
2300 * and stack environment for later use by siglongjmp(), and
2301 * to optionally save the process's signal mask. See
2302 * Sigjmp_buf, Sigsetjmp, and Siglongjmp.
10bc17b6 2303 */
b8677e3b
MB
2304/* Sigjmp_buf:
2305 * This is the buffer type to be used with Sigsetjmp and Siglongjmp.
c7aff470 2306 */
b8677e3b
MB
2307/* Sigsetjmp:
2308 * This macro is used in the same way as sigsetjmp(), but will invoke
2309 * traditional setjmp() if sigsetjmp isn't available.
2310 * See HAS_SIGSETJMP.
b363b713 2311 */
b8677e3b
MB
2312/* Siglongjmp:
2313 * This macro is used in the same way as siglongjmp(), but will invoke
2314 * traditional longjmp() if siglongjmp isn't available.
2315 * See HAS_SIGSETJMP.
a7fea17f 2316 */
b8677e3b
MB
2317#$d_sigsetjmp HAS_SIGSETJMP /**/
2318#ifdef HAS_SIGSETJMP
2319#define Sigjmp_buf sigjmp_buf
2320#define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask))
2321#define Siglongjmp(buf,retval) siglongjmp((buf),(retval))
2322#else
2323#define Sigjmp_buf jmp_buf
2324#define Sigsetjmp(buf,save_mask) setjmp((buf))
2325#define Siglongjmp(buf,retval) longjmp((buf),(retval))
2326#endif
44b94491 2327
06501368
MB
2328/* HAS_SOCKET:
2329 * This symbol, if defined, indicates that the BSD socket interface is
2330 * supported.
2331 */
2332/* HAS_SOCKETPAIR:
2333 * This symbol, if defined, indicates that the BSD socketpair() call is
2334 * supported.
2335 */
2336/* HAS_MSG_CTRUNC:
2337 * This symbol, if defined, indicates that the MSG_CTRUNC is supported.
2338 * Checking just with #ifdef might not be enough because this symbol
2339 * has been known to be an enum.
2340 */
2341/* HAS_MSG_DONTROUTE:
2342 * This symbol, if defined, indicates that the MSG_DONTROUTE is supported.
2343 * Checking just with #ifdef might not be enough because this symbol
2344 * has been known to be an enum.
2345 */
2346/* HAS_MSG_OOB:
2347 * This symbol, if defined, indicates that the MSG_OOB is supported.
2348 * Checking just with #ifdef might not be enough because this symbol
2349 * has been known to be an enum.
2350 */
2351/* HAS_MSG_PEEK:
2352 * This symbol, if defined, indicates that the MSG_PEEK is supported.
2353 * Checking just with #ifdef might not be enough because this symbol
2354 * has been known to be an enum.
2355 */
2356/* HAS_MSG_PROXY:
2357 * This symbol, if defined, indicates that the MSG_PROXY is supported.
2358 * Checking just with #ifdef might not be enough because this symbol
2359 * has been known to be an enum.
2360 */
2361/* HAS_SCM_RIGHTS:
2362 * This symbol, if defined, indicates that the SCM_RIGHTS is supported.
2363 * Checking just with #ifdef might not be enough because this symbol
2364 * has been known to be an enum.
2365 */
2366/* HAS_SOCKADDR_SA_LEN:
2367 * This symbol, if defined, indicates that the struct sockaddr
2368 * structure has a member called sa_len, indicating the length of
2369 * the structure.
2370 */
18126d98
MB
2371/* HAS_SOCKADDR_IN6:
2372 * This symbol, if defined, indicates the availability of
2373 * struct sockaddr_in6;
2374 */
06501368
MB
2375/* HAS_SIN6_SCOPE_ID:
2376 * This symbol, if defined, indicates that the struct sockaddr_in6
2377 * structure has a member called sin6_scope_id.
2378 */
122b9bf4
MB
2379/* HAS_IP_MREQ:
2380 * This symbol, if defined, indicates the availability of
2381 * struct ip_mreq;
2382 */
3e06601f
MB
2383/* HAS_IP_MREQ_SOURCE:
2384 * This symbol, if defined, indicates the availability of
2385 * struct ip_mreq_source;
2386 */
18126d98
MB
2387/* HAS_IPV6_MREQ:
2388 * This symbol, if defined, indicates the availability of
2389 * struct ipv6_mreq;
2390 */
3e06601f
MB
2391/* HAS_IPV6_MREQ_SOURCE:
2392 * This symbol, if defined, indicates the availability of
2393 * struct ipv6_mreq_source;
2394 */
06501368
MB
2395#$d_socket HAS_SOCKET /**/
2396#$d_sockpair HAS_SOCKETPAIR /**/
2397#$d_sockaddr_sa_len HAS_SOCKADDR_SA_LEN /**/
2398#$d_msg_ctrunc HAS_MSG_CTRUNC /**/
2399#$d_msg_dontroute HAS_MSG_DONTROUTE /**/
2400#$d_msg_oob HAS_MSG_OOB /**/
2401#$d_msg_peek HAS_MSG_PEEK /**/
2402#$d_msg_proxy HAS_MSG_PROXY /**/
2403#$d_scm_rights HAS_SCM_RIGHTS /**/
18126d98 2404#$d_sockaddr_in6 HAS_SOCKADDR_IN6 /**/
06501368 2405#$d_sin6_scope_id HAS_SIN6_SCOPE_ID /**/
122b9bf4 2406#$d_ip_mreq HAS_IP_MREQ /**/
3e06601f 2407#$d_ip_mreq_source HAS_IP_MREQ_SOURCE /**/
18126d98 2408#$d_ipv6_mreq HAS_IPV6_MREQ /**/
3e06601f 2409#$d_ipv6_mreq_source HAS_IPV6_MREQ_SOURCE /**/
06501368 2410
08c92000
MB
2411/* HAS_SRAND48_R:
2412 * This symbol, if defined, indicates that the srand48_r routine
2413 * is available to srand48 re-entrantly.
2414 */
2415/* SRAND48_R_PROTO:
2416 * This symbol encodes the prototype of srand48_r.
2417 * It is zero if d_srand48_r is undef, and one of the
2418 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_srand48_r
2419 * is defined.
2420 */
2421#$d_srand48_r HAS_SRAND48_R /**/
2422#define SRAND48_R_PROTO $srand48_r_proto /**/
2423
2424/* HAS_SRANDOM_R:
2425 * This symbol, if defined, indicates that the srandom_r routine
2426 * is available to srandom re-entrantly.
2427 */
2428/* SRANDOM_R_PROTO:
2429 * This symbol encodes the prototype of srandom_r.
2430 * It is zero if d_srandom_r is undef, and one of the
2431 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_srandom_r
2432 * is defined.
2433 */
2434#$d_srandom_r HAS_SRANDOM_R /**/
2435#define SRANDOM_R_PROTO $srandom_r_proto /**/
2436
06501368
MB
2437/* USE_STAT_BLOCKS:
2438 * This symbol is defined if this system has a stat structure declaring
2439 * st_blksize and st_blocks.
2440 */
2441#ifndef USE_STAT_BLOCKS
2442#$d_statblks USE_STAT_BLOCKS /**/
2443#endif
2444
2445/* HAS_STATIC_INLINE:
2446 * This symbol, if defined, indicates that the C compiler supports
2447 * C99-style static inline. That is, the function can't be called
2448 * from another translation unit.
2449 */
2450/* PERL_STATIC_INLINE:
2451 * This symbol gives the best-guess incantation to use for static
2452 * inline functions. If HAS_STATIC_INLINE is defined, this will
2453 * give C99-style inline. If HAS_STATIC_INLINE is not defined,
2454 * this will give a plain 'static'. It will always be defined
2455 * to something that gives static linkage.
2456 * Possibilities include
2457 * static inline (c99)
2458 * static __inline__ (gcc -ansi)
2459 * static __inline (MSVC)
2460 * static _inline (older MSVC)
2461 * static (c89 compilers)
2462 */
2463#$d_static_inline HAS_STATIC_INLINE /**/
2464#define PERL_STATIC_INLINE $perl_static_inline /**/
2465
b8677e3b
MB
2466/* USE_STDIO_PTR:
2467 * This symbol is defined if the _ptr and _cnt fields (or similar)
2468 * of the stdio FILE structure can be used to access the stdio buffer
2469 * for a file handle. If this is defined, then the FILE_ptr(fp)
2470 * and FILE_cnt(fp) macros will also be defined and should be used
2471 * to access these fields.
a33c94aa 2472 */
b8677e3b
MB
2473/* FILE_ptr:
2474 * This macro is used to access the _ptr field (or equivalent) of the
2475 * FILE structure pointed to by its argument. This macro will always be
2476 * defined if USE_STDIO_PTR is defined.
43dddb59 2477 */
b8677e3b
MB
2478/* STDIO_PTR_LVALUE:
2479 * This symbol is defined if the FILE_ptr macro can be used as an
2480 * lvalue.
08c92000 2481 */
b8677e3b
MB
2482/* FILE_cnt:
2483 * This macro is used to access the _cnt field (or equivalent) of the
2484 * FILE structure pointed to by its argument. This macro will always be
2485 * defined if USE_STDIO_PTR is defined.
08c92000 2486 */
b8677e3b
MB
2487/* STDIO_CNT_LVALUE:
2488 * This symbol is defined if the FILE_cnt macro can be used as an
2489 * lvalue.
08c92000 2490 */
b8677e3b
MB
2491/* STDIO_PTR_LVAL_SETS_CNT:
2492 * This symbol is defined if using the FILE_ptr macro as an lvalue
2493 * to increase the pointer by n has the side effect of decreasing the
2494 * value of File_cnt(fp) by n.
2495 */
2496/* STDIO_PTR_LVAL_NOCHANGE_CNT:
2497 * This symbol is defined if using the FILE_ptr macro as an lvalue
2498 * to increase the pointer by n leaves File_cnt(fp) unchanged.
2499 */
2500#$d_stdstdio USE_STDIO_PTR /**/
2501#ifdef USE_STDIO_PTR
2502#define FILE_ptr(fp) $stdio_ptr
2503#$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/
2504#define FILE_cnt(fp) $stdio_cnt
2505#$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/
2506#$d_stdio_ptr_lval_sets_cnt STDIO_PTR_LVAL_SETS_CNT /**/
2507#$d_stdio_ptr_lval_nochange_cnt STDIO_PTR_LVAL_NOCHANGE_CNT /**/
2508#endif
2509
2510/* USE_STDIO_BASE:
2511 * This symbol is defined if the _base field (or similar) of the
2512 * stdio FILE structure can be used to access the stdio buffer for
2513 * a file handle. If this is defined, then the FILE_base(fp) macro
2514 * will also be defined and should be used to access this field.
2515 * Also, the FILE_bufsiz(fp) macro will be defined and should be used
2516 * to determine the number of bytes in the buffer. USE_STDIO_BASE
2517 * will never be defined unless USE_STDIO_PTR is.
2518 */
2519/* FILE_base:
2520 * This macro is used to access the _base field (or equivalent) of the
2521 * FILE structure pointed to by its argument. This macro will always be
2522 * defined if USE_STDIO_BASE is defined.
2523 */
2524/* FILE_bufsiz:
2525 * This macro is used to determine the number of bytes in the I/O
2526 * buffer pointed to by _base field (or equivalent) of the FILE
2527 * structure pointed to its argument. This macro will always be defined
2528 * if USE_STDIO_BASE is defined.
2529 */
2530#$d_stdiobase USE_STDIO_BASE /**/
2531#ifdef USE_STDIO_BASE
2532#define FILE_base(fp) $stdio_base
2533#define FILE_bufsiz(fp) $stdio_bufsiz
2534#endif
08c92000 2535
06501368
MB
2536/* USE_STRUCT_COPY:
2537 * This symbol, if defined, indicates that this C compiler knows how
2538 * to copy structures. If undefined, you'll need to use a block copy
2539 * routine of some sort instead.
2540 */
2541#$d_strctcpy USE_STRUCT_COPY /**/
2542
2543/* HAS_STRERROR:
2544 * This symbol, if defined, indicates that the strerror routine is
2545 * available to translate error numbers to strings. See the writeup
2546 * of Strerror() in this file before you try to define your own.
2547 */
2548/* HAS_SYS_ERRLIST:
2549 * This symbol, if defined, indicates that the sys_errlist array is
2550 * available to translate error numbers to strings. The extern int
2551 * sys_nerr gives the size of that table.
2552 */
2553/* Strerror:
2554 * This preprocessor symbol is defined as a macro if strerror() is
2555 * not available to translate error numbers to strings but sys_errlist[]
2556 * array is there.
2557 */
2558#$d_strerror HAS_STRERROR /**/
2559#$d_syserrlst HAS_SYS_ERRLIST /**/
2560#define Strerror(e) $d_strerrm
2561
08c92000
MB
2562/* HAS_STRERROR_R:
2563 * This symbol, if defined, indicates that the strerror_r routine
2564 * is available to strerror re-entrantly.
2565 */
2566/* STRERROR_R_PROTO:
2567 * This symbol encodes the prototype of strerror_r.
2568 * It is zero if d_strerror_r is undef, and one of the
2569 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_strerror_r
2570 * is defined.
2571 */
2572#$d_strerror_r HAS_STRERROR_R /**/
2573#define STRERROR_R_PROTO $strerror_r_proto /**/
2574
06501368
MB
2575/* HAS_STRTOUL:
2576 * This symbol, if defined, indicates that the strtoul routine is
2577 * available to provide conversion of strings to unsigned long.
2578 */
2579#$d_strtoul HAS_STRTOUL /**/
2580
2581/* HAS_TIME:
2582 * This symbol, if defined, indicates that the time() routine exists.
2583 */
2584/* Time_t:
2585 * This symbol holds the type returned by time(). It can be long,
2586 * or time_t on BSD sites (in which case <sys/types.h> should be
2587 * included).
2588 */
2589#$d_time HAS_TIME /**/
2590#define Time_t $timetype /* Time type */
2591
2592/* HAS_TIMES:
2593 * This symbol, if defined, indicates that the times() routine exists.
2594 * Note that this became obsolete on some systems (SUNOS), which now
2595 * use getrusage(). It may be necessary to include <sys/times.h>.
2596 */
2597#$d_times HAS_TIMES /**/
2598
2599/* HAS_TMPNAM_R:
08c92000
MB
2600 * This symbol, if defined, indicates that the tmpnam_r routine
2601 * is available to tmpnam re-entrantly.
2602 */
2603/* TMPNAM_R_PROTO:
2604 * This symbol encodes the prototype of tmpnam_r.
2605 * It is zero if d_tmpnam_r is undef, and one of the
2606 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_tmpnam_r
2607 * is defined.
2608 */
2609#$d_tmpnam_r HAS_TMPNAM_R /**/
2610#define TMPNAM_R_PROTO $tmpnam_r_proto /**/
2611
eaf812ae
MB
2612/* HAS_TTYNAME_R:
2613 * This symbol, if defined, indicates that the ttyname_r routine
2614 * is available to ttyname re-entrantly.
2615 */
2616/* TTYNAME_R_PROTO:
2617 * This symbol encodes the prototype of ttyname_r.
2618 * It is zero if d_ttyname_r is undef, and one of the
2619 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_ttyname_r
2620 * is defined.
2621 */
2622#$d_ttyname_r HAS_TTYNAME_R /**/
2623#define TTYNAME_R_PROTO $ttyname_r_proto /**/
2624
06501368
MB
2625/* HAS_UNION_SEMUN:
2626 * This symbol, if defined, indicates that the union semun is
2627 * defined by including <sys/sem.h>. If not, the user code
2628 * probably needs to define it as:
2629 * union semun {
2630 * int val;
2631 * struct semid_ds *buf;
2632 * unsigned short *array;
2633 * }
2634 */
2635/* USE_SEMCTL_SEMUN:
2636 * This symbol, if defined, indicates that union semun is
2637 * used for semctl IPC_STAT.
2638 */
2639/* USE_SEMCTL_SEMID_DS:
2640 * This symbol, if defined, indicates that struct semid_ds * is
2641 * used for semctl IPC_STAT.
2642 */
2643#$d_union_semun HAS_UNION_SEMUN /**/
2644#$d_semctl_semun USE_SEMCTL_SEMUN /**/
2645#$d_semctl_semid_ds USE_SEMCTL_SEMID_DS /**/
2646
2647/* HAS_VFORK:
2648 * This symbol, if defined, indicates that vfork() exists.
2649 */
2650#$d_vfork HAS_VFORK /**/
2651
2652/* HAS_PSEUDOFORK:
2653 * This symbol, if defined, indicates that an emulation of the
2654 * fork routine is available.
2655 */
2656#$d_pseudofork HAS_PSEUDOFORK /**/
2657
2658/* Signal_t:
2659 * This symbol's value is either "void" or "int", corresponding to the
2660 * appropriate return type of a signal handler. Thus, you can declare
2661 * a signal handler using "Signal_t (*handler)()", and define the
2662 * handler using "Signal_t handler(sig)".
2663 */
2664#define Signal_t $signal_t /* Signal handler's return type */
2665
2666/* HASVOLATILE:
2667 * This symbol, if defined, indicates that this C compiler knows about
2668 * the volatile declaration.
2669 */
2670#$d_volatile HASVOLATILE /**/
2671#ifndef HASVOLATILE
2672#define volatile
2673#endif
2674
b8677e3b
MB
2675/* HAS_VPRINTF:
2676 * This symbol, if defined, indicates that the vprintf routine is available
2677 * to printf with a pointer to an argument list. If unavailable, you
2678 * may need to write your own, probably in terms of _doprnt().
c5f05a91 2679 */
b8677e3b
MB
2680/* USE_CHAR_VSPRINTF:
2681 * This symbol is defined if this system has vsprintf() returning type
2682 * (char*). The trend seems to be to declare it as "int vsprintf()". It
2683 * is up to the package author to declare vsprintf correctly based on the
2684 * symbol.
233e16ce 2685 */
b8677e3b
MB
2686#$d_vprintf HAS_VPRINTF /**/
2687#$d_charvspr USE_CHAR_VSPRINTF /**/
233e16ce 2688
b8677e3b
MB
2689/* DOUBLESIZE:
2690 * This symbol contains the size of a double, so that the C preprocessor
2691 * can make decisions based on it.
a3540c92 2692 */
b8677e3b 2693#define DOUBLESIZE $doublesize /**/
a3540c92 2694
06501368 2695/* EBCDIC:
1332606d 2696 * This symbol, if defined, indicates that this system uses
06501368
MB
2697 * EBCDIC encoding.
2698 */
2699#$ebcdic EBCDIC /**/
2700
2701/* Fpos_t:
2702 * This symbol holds the type used to declare file positions in libc.
2703 * It can be fpos_t, long, uint, etc... It may be necessary to include
2704 * <sys/types.h> to get any typedef'ed information.
2705 */
2706#define Fpos_t $fpostype /* File position type */
2707
2708/* Gid_t_f:
2709 * This symbol defines the format string used for printing a Gid_t.
2710 */
2711#define Gid_t_f $gidformat /**/
2712
2713/* Gid_t_sign:
cfc2543a 2714 * This symbol holds the signedness of a Gid_t.
06501368
MB
2715 * 1 for unsigned, -1 for signed.
2716 */
2717#define Gid_t_sign $gidsign /* GID sign */
2718
2719/* Gid_t_size:
2720 * This symbol holds the size of a Gid_t in bytes.
2721 */
2722#define Gid_t_size $gidsize /* GID size */
2723
2724/* Gid_t:
2725 * This symbol holds the return type of getgid() and the type of
2726 * argument to setrgid() and related functions. Typically,
2727 * it is the type of group ids in the kernel. It can be int, ushort,
2728 * gid_t, etc... It may be necessary to include <sys/types.h> to get
2729 * any typedef'ed information.
2730 */
2731#define Gid_t $gidtype /* Type for getgid(), etc... */
2732
2733/* I_DIRENT:
2734 * This symbol, if defined, indicates to the C program that it should
2735 * include <dirent.h>. Using this symbol also triggers the definition
2736 * of the Direntry_t define which ends up being 'struct dirent' or
2737 * 'struct direct' depending on the availability of <dirent.h>.
2738 */
2739/* DIRNAMLEN:
2740 * This symbol, if defined, indicates to the C program that the length
2741 * of directory entry names is provided by a d_namlen field. Otherwise
2742 * you need to do strlen() on the d_name field.
2743 */
2744/* Direntry_t:
2745 * This symbol is set to 'struct direct' or 'struct dirent' depending on
2746 * whether dirent is available or not. You should use this pseudo type to
2747 * portably declare your directory entries.
2748 */
2749#$i_dirent I_DIRENT /**/
2750#$d_dirnamlen DIRNAMLEN /**/
2751#define Direntry_t $direntrytype
2752
0e0c5f82
MB
2753/* I_EXECINFO:
2754 * This symbol, if defined, indicates to the C program that it should
2755 * include <execinfo.h> for backtrace() support.
2756 */
2757#$i_execinfo I_EXECINFO /**/
2758
06501368
MB
2759/* I_GRP:
2760 * This symbol, if defined, indicates to the C program that it should
2761 * include <grp.h>.
2762 */
2763/* GRPASSWD:
2764 * This symbol, if defined, indicates to the C program that struct group
2765 * in <grp.h> contains gr_passwd.
2766 */
2767#$i_grp I_GRP /**/
2768#$d_grpasswd GRPASSWD /**/
2769
b8677e3b
MB
2770/* I_MACH_CTHREADS:
2771 * This symbol, if defined, indicates to the C program that it should
2772 * include <mach/cthreads.h>.
43dddb59 2773 */
b8677e3b 2774#$i_machcthr I_MACH_CTHREADS /**/
43dddb59 2775
06501368
MB
2776/* I_NDBM:
2777 * This symbol, if defined, indicates that <ndbm.h> exists and should
2778 * be included.
2779 */
2780/* I_GDBMNDBM:
2781 * This symbol, if defined, indicates that <gdbm/ndbm.h> exists and should
2782 * be included. This was the location of the ndbm.h compatibility file
2783 * in RedHat 7.1.
2784 */
2785/* I_GDBM_NDBM:
2786 * This symbol, if defined, indicates that <gdbm-ndbm.h> exists and should
2787 * be included. This is the location of the ndbm.h compatibility file
2788 * in Debian 4.0.
2789 */
2790/* NDBM_H_USES_PROTOTYPES:
2791 * This symbol, if defined, indicates that <ndbm.h> uses real ANSI C
2792 * prototypes instead of K&R style function declarations without any
2793 * parameter information. While ANSI C prototypes are supported in C++,
2794 * K&R style function declarations will yield errors.
2795 */
2796/* GDBMNDBM_H_USES_PROTOTYPES:
2797 * This symbol, if defined, indicates that <gdbm/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/* GDBM_NDBM_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#$i_ndbm I_NDBM /**/
2809#$i_gdbmndbm I_GDBMNDBM /**/
2810#$i_gdbm_ndbm I_GDBM_NDBM /**/
2811#$d_ndbm_h_uses_prototypes NDBM_H_USES_PROTOTYPES /**/
2812#$d_gdbmndbm_h_uses_prototypes GDBMNDBM_H_USES_PROTOTYPES /**/
2813#$d_gdbm_ndbm_h_uses_prototypes GDBM_NDBM_H_USES_PROTOTYPES /**/
2814
2815/* I_NETDB:
2816 * This symbol, if defined, indicates that <netdb.h> exists and
2817 * should be included.
2818 */
2819#$i_netdb I_NETDB /**/
2820
2821/* I_NET_ERRNO:
2822 * This symbol, if defined, indicates that <net/errno.h> exists and
2823 * should be included.
2824 */
2825#$i_neterrno I_NET_ERRNO /**/
2826
b8677e3b
MB
2827/* I_PTHREAD:
2828 * This symbol, if defined, indicates to the C program that it should
2829 * include <pthread.h>.
08c92000 2830 */
b8677e3b 2831#$i_pthread I_PTHREAD /**/
08c92000 2832
06501368
MB
2833/* I_PWD:
2834 * This symbol, if defined, indicates to the C program that it should
2835 * include <pwd.h>.
2836 */
2837/* PWQUOTA:
2838 * This symbol, if defined, indicates to the C program that struct passwd
2839 * contains pw_quota.
2840 */
2841/* PWAGE:
2842 * This symbol, if defined, indicates to the C program that struct passwd
2843 * contains pw_age.
2844 */
2845/* PWCHANGE:
2846 * This symbol, if defined, indicates to the C program that struct passwd
2847 * contains pw_change.
2848 */
2849/* PWCLASS:
2850 * This symbol, if defined, indicates to the C program that struct passwd
2851 * contains pw_class.
2852 */
2853/* PWEXPIRE:
2854 * This symbol, if defined, indicates to the C program that struct passwd
2855 * contains pw_expire.
2856 */
2857/* PWCOMMENT:
2858 * This symbol, if defined, indicates to the C program that struct passwd
2859 * contains pw_comment.
2860 */
2861/* PWGECOS:
2862 * This symbol, if defined, indicates to the C program that struct passwd
2863 * contains pw_gecos.
2864 */
2865/* PWPASSWD:
2866 * This symbol, if defined, indicates to the C program that struct passwd
2867 * contains pw_passwd.
2868 */
2869#$i_pwd I_PWD /**/
2870#$d_pwquota PWQUOTA /**/
2871#$d_pwage PWAGE /**/
2872#$d_pwchange PWCHANGE /**/
2873#$d_pwclass PWCLASS /**/
2874#$d_pwexpire PWEXPIRE /**/
2875#$d_pwcomment PWCOMMENT /**/
2876#$d_pwgecos PWGECOS /**/
2877#$d_pwpasswd PWPASSWD /**/
2878
b8677e3b
MB
2879/* I_SYS_ACCESS:
2880 * This symbol, if defined, indicates to the C program that it should
2881 * include <sys/access.h>.
08c92000 2882 */
b8677e3b 2883#$i_sysaccess I_SYS_ACCESS /**/
08c92000 2884
b8677e3b
MB
2885/* I_SYS_SECURITY:
2886 * This symbol, if defined, indicates to the C program that it should
2887 * include <sys/security.h>.
08c92000 2888 */
b8677e3b 2889#$i_syssecrt I_SYS_SECURITY /**/
08c92000 2890
06501368
MB
2891/* I_SYSUIO:
2892 * This symbol, if defined, indicates that <sys/uio.h> exists and
2893 * should be included.
2894 */
2895#$i_sysuio I_SYSUIO /**/
2896
0e0c5f82
MB
2897/* I_TERMIO:
2898 * This symbol, if defined, indicates that the program should include
2899 * <termio.h> rather than <sgtty.h>. There are also differences in
2900 * the ioctl() calls that depend on the value of this symbol.
2901 */
2902/* I_TERMIOS:
2903 * This symbol, if defined, indicates that the program should include
2904 * the POSIX termios.h rather than sgtty.h or termio.h.
2905 * There are also differences in the ioctl() calls that depend on the
2906 * value of this symbol.
2907 */
2908/* I_SGTTY:
2909 * This symbol, if defined, indicates that the program should include
2910 * <sgtty.h> rather than <termio.h>. There are also differences in
2911 * the ioctl() calls that depend on the value of this symbol.
2912 */
2913#$i_termio I_TERMIO /**/
2914#$i_termios I_TERMIOS /**/
2915#$i_sgtty I_SGTTY /**/
2916
b8677e3b
MB
2917/* I_TIME:
2918 * This symbol, if defined, indicates to the C program that it should
2919 * include <time.h>.
08c92000 2920 */
b8677e3b
MB
2921/* I_SYS_TIME:
2922 * This symbol, if defined, indicates to the C program that it should
2923 * include <sys/time.h>.
08c92000 2924 */
b8677e3b 2925/* I_SYS_TIME_KERNEL:
43dddb59 2926 * This symbol, if defined, indicates to the C program that it should
b8677e3b 2927 * include <sys/time.h> with KERNEL defined.
43dddb59 2928 */
b8677e3b
MB
2929/* HAS_TM_TM_ZONE:
2930 * This symbol, if defined, indicates to the C program that
2931 * the struct tm has a tm_zone field.
43dddb59 2932 */
b8677e3b
MB
2933/* HAS_TM_TM_GMTOFF:
2934 * This symbol, if defined, indicates to the C program that
2935 * the struct tm has a tm_gmtoff field.
43dddb59 2936 */
b8677e3b
MB
2937#$i_time I_TIME /**/
2938#$i_systime I_SYS_TIME /**/
2939#$i_systimek I_SYS_TIME_KERNEL /**/
2940#$d_tm_tm_zone HAS_TM_TM_ZONE /**/
2941#$d_tm_tm_gmtoff HAS_TM_TM_GMTOFF /**/
43dddb59 2942
06501368
MB
2943/* I_STDARG:
2944 * This symbol, if defined, indicates that <stdarg.h> exists and should
2945 * be included.
2946 */
2947/* I_VARARGS:
2948 * This symbol, if defined, indicates to the C program that it should
2949 * include <varargs.h>.
2950 */
2951#$i_stdarg I_STDARG /**/
2952#$i_varargs I_VARARGS /**/
2953
2954/* PERL_INC_VERSION_LIST:
2955 * This variable specifies the list of subdirectories in over
2956 * which perl.c:incpush() and lib/lib.pm will automatically
2957 * search when adding directories to @INC, in a format suitable
2958 * for a C initialization string. See the inc_version_list entry
2959 * in Porting/Glossary for more details.
08c92000 2960 */
b8677e3b 2961#$d_inc_version_list PERL_INC_VERSION_LIST $inc_version_list_init /**/
08c92000 2962
b8677e3b
MB
2963/* INSTALL_USR_BIN_PERL:
2964 * This symbol, if defined, indicates that Perl is to be installed
2965 * also as /usr/bin/perl.
08c92000 2966 */
b8677e3b 2967#$installusrbinperl INSTALL_USR_BIN_PERL /**/
08c92000 2968
06501368
MB
2969/* Off_t:
2970 * This symbol holds the type used to declare offsets in the kernel.
2971 * It can be int, long, off_t, etc... It may be necessary to include
2972 * <sys/types.h> to get any typedef'ed information.
2973 */
2974/* LSEEKSIZE:
2975 * This symbol holds the number of bytes used by the Off_t.
2976 */
2977/* Off_t_size:
2978 * This symbol holds the number of bytes used by the Off_t.
2979 */
2980#define Off_t $lseektype /* <offset> type */
2981#define LSEEKSIZE $lseeksize /* <offset> size */
2982#define Off_t_size $lseeksize /* <offset> size */
2983
2984/* Free_t:
2985 * This variable contains the return type of free(). It is usually
2986 * void, but occasionally int.
2987 */
2988/* Malloc_t:
2989 * This symbol is the type of pointer returned by malloc and realloc.
2990 */
2991#define Malloc_t $malloctype /**/
2992#define Free_t $freetype /**/
2993
2994/* PERL_MALLOC_WRAP:
2995 * This symbol, if defined, indicates that we'd like malloc wrap checks.
2996 */
2997#$usemallocwrap PERL_MALLOC_WRAP /**/
2998
2999/* MYMALLOC:
3000 * This symbol, if defined, indicates that we're using our own malloc.
3001 */
3002#$d_mymalloc MYMALLOC /**/
3003
3004/* Mode_t:
3005 * This symbol holds the type used to declare file modes
3006 * for systems calls. It is usually mode_t, but may be
3007 * int or unsigned short. It may be necessary to include <sys/types.h>
3008 * to get any typedef'ed information.
3009 */
3010#define Mode_t $modetype /* file mode parameter for system calls */
3011
b8677e3b
MB
3012/* VAL_O_NONBLOCK:
3013 * This symbol is to be used during open() or fcntl(F_SETFL) to turn on
3014 * non-blocking I/O for the file descriptor. Note that there is no way
3015 * back, i.e. you cannot turn it blocking again this way. If you wish to
3016 * alternatively switch between blocking and non-blocking, use the
3017 * ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
eaf812ae 3018 */
b8677e3b
MB
3019/* VAL_EAGAIN:
3020 * This symbol holds the errno error code set by read() when no data was
3021 * present on the non-blocking file descriptor.
1d8eaf8c 3022 */
b8677e3b
MB
3023/* RD_NODATA:
3024 * This symbol holds the return code from read() when no data is present
3025 * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
3026 * not defined, then you can't distinguish between no data and EOF by
3027 * issuing a read(). You'll have to find another way to tell for sure!
e74475c7 3028 */
b8677e3b
MB
3029/* EOF_NONBLOCK:
3030 * This symbol, if defined, indicates to the C program that a read() on
3031 * a non-blocking file descriptor will return 0 on EOF, and not the value
3032 * held in RD_NODATA (-1 usually, in that case!).
e74475c7 3033 */
b8677e3b
MB
3034#define VAL_O_NONBLOCK $o_nonblock
3035#define VAL_EAGAIN $eagain
3036#define RD_NODATA $rd_nodata
3037#$d_eofnblk EOF_NONBLOCK
eaf812ae 3038
06501368
MB
3039/* Netdb_host_t:
3040 * This symbol holds the type used for the 1st argument
3041 * to gethostbyaddr().
3042 */
3043/* Netdb_hlen_t:
3044 * This symbol holds the type used for the 2nd argument
3045 * to gethostbyaddr().
3046 */
3047/* Netdb_name_t:
3048 * This symbol holds the type used for the argument to
3049 * gethostbyname().
3050 */
3051/* Netdb_net_t:
3052 * This symbol holds the type used for the 1st argument to
3053 * getnetbyaddr().
3054 */
3055#define Netdb_host_t $netdb_host_type /**/
3056#define Netdb_hlen_t $netdb_hlen_type /**/
3057#define Netdb_name_t $netdb_name_type /**/
3058#define Netdb_net_t $netdb_net_type /**/
3059
b8677e3b
MB
3060/* PERL_OTHERLIBDIRS:
3061 * This variable contains a colon-separated set of paths for the perl
3062 * binary to search for additional library files or modules.
3063 * These directories will be tacked to the end of @INC.
3064 * Perl will automatically search below each path for version-
3065 * and architecture-specific directories. See PERL_INC_VERSION_LIST
3066 * for more details.
08c92000 3067 */
b8677e3b 3068#$d_perl_otherlibdirs PERL_OTHERLIBDIRS "$otherlibdirs" /**/
08c92000 3069
06501368
MB
3070/* Pid_t:
3071 * This symbol holds the type used to declare process ids in the kernel.
3072 * It can be int, uint, pid_t, etc... It may be necessary to include
3073 * <sys/types.h> to get any typedef'ed information.
3074 */
3075#define Pid_t $pidtype /* PID type */
3076
b8677e3b
MB
3077/* PRIVLIB:
3078 * This symbol contains the name of the private library for this package.
3079 * The library is private in the sense that it needn't be in anyone's
3080 * execution path, but it should be accessible by the world. The program
3081 * should be prepared to do ~ expansion.
c0bacbef 3082 */
b8677e3b
MB
3083/* PRIVLIB_EXP:
3084 * This symbol contains the ~name expanded version of PRIVLIB, to be used
3085 * in programs that are not prepared to deal with ~ expansion at run-time.
3086 */
3087#define PRIVLIB "$privlib" /**/
3088#define PRIVLIB_EXP "$privlibexp" /**/
c0bacbef 3089
06501368
MB
3090/* CAN_PROTOTYPE:
3091 * If defined, this macro indicates that the C compiler can handle
3092 * function prototypes.
3093 */
3094/* _:
3095 * This macro is used to declare function parameters for folks who want
3096 * to make declarations with prototypes using a different style than
3097 * the above macros. Use double parentheses. For example:
3098 *
3099 * int main _((int argc, char *argv[]));
3100 */
3101#$prototype CAN_PROTOTYPE /**/
3102#ifdef CAN_PROTOTYPE
3103#define _(args) args
3104#else
3105#define _(args) ()
3106#endif
3107
b8677e3b
MB
3108/* PTRSIZE:
3109 * This symbol contains the size of a pointer, so that the C preprocessor
3110 * can make decisions based on it. It will be sizeof(void *) if
3111 * the compiler supports (void *); otherwise it will be
3112 * sizeof(char *).
08c92000 3113 */
b8677e3b 3114#define PTRSIZE $ptrsize /**/
08c92000 3115
06501368
MB
3116/* HAS_QUAD:
3117 * This symbol, if defined, tells that there's a 64-bit integer type,
3118 * Quad_t, and its unsigned counterpart, Uquad_t. QUADKIND will be one
3119 * of QUAD_IS_INT, QUAD_IS_LONG, QUAD_IS_LONG_LONG, QUAD_IS_INT64_T,
3120 * or QUAD_IS___INT64.
3121 */
3122#$d_quad HAS_QUAD /**/
3123#ifdef HAS_QUAD
3124# define Quad_t $quadtype /**/
3125# define Uquad_t $uquadtype /**/
3126# define QUADKIND $quadkind /**/
3127# define QUAD_IS_INT 1
3128# define QUAD_IS_LONG 2
3129# define QUAD_IS_LONG_LONG 3
3130# define QUAD_IS_INT64_T 4
3131# define QUAD_IS___INT64 5
3132#endif
3133
b8677e3b
MB
3134/* Drand01:
3135 * This macro is to be used to generate uniformly distributed
3136 * random numbers over the range [0., 1.[. You may have to supply
3137 * an 'extern double drand48();' in your program since SunOS 4.1.3
3138 * doesn't provide you with anything relevant in its headers.
3139 * See HAS_DRAND48_PROTO.
a33c94aa 3140 */
b8677e3b
MB
3141/* Rand_seed_t:
3142 * This symbol defines the type of the argument of the
3143 * random seed function.
49dabb45 3144 */
b8677e3b
MB
3145/* seedDrand01:
3146 * This symbol defines the macro to be used in seeding the
3147 * random number generator (see Drand01).
3813c136 3148 */
b8677e3b
MB
3149/* RANDBITS:
3150 * This symbol indicates how many bits are produced by the
3151 * function used to generate normalized random numbers.
3152 * Values include 15, 16, 31, and 48.
1acc7ade 3153 */
a05353bf
MB
3154#define Drand01() $drand01 /**/
3155#define Rand_seed_t $randseedtype /**/
3156#define seedDrand01(x) $seedfunc((Rand_seed_t)x) /**/
3157#define RANDBITS $randbits /**/
b8677e3b 3158
06501368
MB
3159/* Select_fd_set_t:
3160 * This symbol holds the type used for the 2nd, 3rd, and 4th
3161 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
3162 * is defined, and 'int *' otherwise. This is only useful if you
3163 * have select(), of course.
3164 */
3165#define Select_fd_set_t $selecttype /**/
3166
3167/* SH_PATH:
3168 * This symbol contains the full pathname to the shell used on this
3169 * on this system to execute Bourne shell scripts. Usually, this will be
3170 * /bin/sh, though it's possible that some systems will have /bin/ksh,
3171 * /bin/pdksh, /bin/ash, /bin/bash, or even something such as
3172 * D:/bin/sh.exe.
3173 */
0b0a0724 3174#define SH_PATH "$targetsh" /**/
06501368
MB
3175
3176/* SIG_NAME:
3177 * This symbol contains a list of signal names in order of
3178 * signal number. This is intended
3179 * to be used as a static array initialization, like this:
3180 * char *sig_name[] = { SIG_NAME };
3181 * The signals in the list are separated with commas, and each signal
3182 * is surrounded by double quotes. There is no leading SIG in the signal
3183 * name, i.e. SIGQUIT is known as "QUIT".
3184 * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
3185 * etc., where nn is the actual signal number (e.g. NUM37).
3186 * The signal number for sig_name[i] is stored in sig_num[i].
3187 * The last element is 0 to terminate the list with a NULL. This
3188 * corresponds to the 0 at the end of the sig_name_init list.
3189 * Note that this variable is initialized from the sig_name_init,
3190 * not from sig_name (which is unused).
3191 */
3192/* SIG_NUM:
3193 * This symbol contains a list of signal numbers, in the same order as the
3194 * SIG_NAME list. It is suitable for static array initialization, as in:
3195 * int sig_num[] = { SIG_NUM };
3196 * The signals in the list are separated with commas, and the indices
3197 * within that list and the SIG_NAME list match, so it's easy to compute
3198 * the signal name from a number or vice versa at the price of a small
3199 * dynamic linear lookup.
3200 * Duplicates are allowed, but are moved to the end of the list.
3201 * The signal number corresponding to sig_name[i] is sig_number[i].
3202 * if (i < NSIG) then sig_number[i] == i.
3203 * The last element is 0, corresponding to the 0 at the end of
3204 * the sig_name_init list.
3205 * Note that this variable is initialized from the sig_num_init,
3206 * not from sig_num (which is unused).
3207 */
3208/* SIG_SIZE:
3209 * This variable contains the number of elements of the SIG_NAME
3210 * and SIG_NUM arrays, excluding the final NULL entry.
3211 */
3212#define SIG_NAME $sig_name_init /**/
3213#define SIG_NUM $sig_num_init /**/
3214#define SIG_SIZE $sig_size /**/
3215
b8677e3b
MB
3216/* SITEARCH:
3217 * This symbol contains the name of the private library for this package.
3218 * The library is private in the sense that it needn't be in anyone's
3219 * execution path, but it should be accessible by the world. The program
3220 * should be prepared to do ~ expansion.
3221 * The standard distribution will put nothing in this directory.
3222 * After perl has been installed, users may install their own local
3223 * architecture-dependent modules in this directory with
3224 * MakeMaker Makefile.PL
3225 * or equivalent. See INSTALL for details.
a33c94aa 3226 */
b8677e3b
MB
3227/* SITEARCH_EXP:
3228 * This symbol contains the ~name expanded version of SITEARCH, to be used
3229 * in programs that are not prepared to deal with ~ expansion at run-time.
10bc17b6 3230 */
b8677e3b
MB
3231#$d_sitearch SITEARCH "$sitearch" /**/
3232#$d_sitearch SITEARCH_EXP "$sitearchexp" /**/
3233
3234/* SITELIB:
3235 * This symbol contains the name of the private library for this package.
3236 * The library is private in the sense that it needn't be in anyone's
3237 * execution path, but it should be accessible by the world. The program
3238 * should be prepared to do ~ expansion.
3239 * The standard distribution will put nothing in this directory.
3240 * After perl has been installed, users may install their own local
3241 * architecture-independent modules in this directory with
3242 * MakeMaker Makefile.PL
3243 * or equivalent. See INSTALL for details.
10bc17b6 3244 */
b8677e3b
MB
3245/* SITELIB_EXP:
3246 * This symbol contains the ~name expanded version of SITELIB, to be used
3247 * in programs that are not prepared to deal with ~ expansion at run-time.
10bc17b6 3248 */
b8677e3b
MB
3249/* SITELIB_STEM:
3250 * This define is SITELIB_EXP with any trailing version-specific component
3251 * removed. The elements in inc_version_list (inc_version_list.U) can
3252 * be tacked onto this variable to generate a list of directories to search.
10bc17b6 3253 */
b8677e3b
MB
3254#define SITELIB "$sitelib" /**/
3255#define SITELIB_EXP "$sitelibexp" /**/
3256#define SITELIB_STEM "$sitelib_stem" /**/
10bc17b6 3257
06501368
MB
3258/* Size_t_size:
3259 * This symbol holds the size of a Size_t in bytes.
3260 */
3261#define Size_t_size $sizesize /**/
3262
3263/* Size_t:
3264 * This symbol holds the type used to declare length parameters
3265 * for string functions. It is usually size_t, but may be
3266 * unsigned long, int, etc. It may be necessary to include
3267 * <sys/types.h> to get any typedef'ed information.
3268 */
3269#define Size_t $sizetype /* length parameter for string functions */
3270
3271/* Sock_size_t:
3272 * This symbol holds the type used for the size argument of
3273 * various socket calls (just the base type, not the pointer-to).
3274 */
3275#define Sock_size_t $socksizetype /**/
3276
b8677e3b
MB
3277/* SSize_t:
3278 * This symbol holds the type used by functions that return
3279 * a count of bytes or an error condition. It must be a signed type.
3280 * It is usually ssize_t, but may be long or int, etc.
3281 * It may be necessary to include <sys/types.h> or <unistd.h>
3282 * to get any typedef'ed information.
3283 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
10bc17b6 3284 */
b8677e3b 3285#define SSize_t $ssizetype /* signed count of bytes */
08c92000 3286
06501368
MB
3287/* STDCHAR:
3288 * This symbol is defined to be the type of char used in stdio.h.
3289 * It has the values "unsigned char" or "char".
eaf812ae 3290 */
06501368
MB
3291#define STDCHAR $stdchar /**/
3292
3293/* Uid_t_f:
3294 * This symbol defines the format string used for printing a Uid_t.
eaf812ae 3295 */
06501368 3296#define Uid_t_f $uidformat /**/
eaf812ae 3297
06501368 3298/* Uid_t_sign:
cfc2543a 3299 * This symbol holds the signedness of a Uid_t.
06501368 3300 * 1 for unsigned, -1 for signed.
36adc09b 3301 */
06501368
MB
3302#define Uid_t_sign $uidsign /* UID sign */
3303
3304/* Uid_t_size:
3305 * This symbol holds the size of a Uid_t in bytes.
a33c94aa 3306 */
06501368 3307#define Uid_t_size $uidsize /* UID size */
a33c94aa 3308
06501368
MB
3309/* Uid_t:
3310 * This symbol holds the type used to declare user ids in the kernel.
3311 * It can be int, ushort, uid_t, etc... It may be necessary to include
3312 * <sys/types.h> to get any typedef'ed information.
15b61c98 3313 */
06501368 3314#define Uid_t $uidtype /* UID type */
b8677e3b 3315
06501368
MB
3316/* USE_ITHREADS:
3317 * This symbol, if defined, indicates that Perl should be built to
3318 * use the interpreter-based threading implementation.
b8677e3b 3319 */
06501368
MB
3320/* USE_5005THREADS:
3321 * This symbol, if defined, indicates that Perl should be built to
3322 * use the 5.005-based threading implementation.
3323 * Only valid up to 5.8.x.
ed140128 3324 */
06501368
MB
3325/* OLD_PTHREADS_API:
3326 * This symbol, if defined, indicates that Perl should
3327 * be built to use the old draft POSIX threads API.
ed140128 3328 */
06501368
MB
3329/* USE_REENTRANT_API:
3330 * This symbol, if defined, indicates that Perl should
3331 * try to use the various _r versions of library functions.
3332 * This is extremely experimental.
3333 */
3334#$use5005threads USE_5005THREADS /**/
3335#$useithreads USE_ITHREADS /**/
3336#if defined(USE_5005THREADS) && !defined(USE_ITHREADS)
3337#define USE_THREADS /* until src is revised*/
3338#endif
3339#$d_oldpthreads OLD_PTHREADS_API /**/
3340#$usereentrant USE_REENTRANT_API /**/
ed140128 3341
06501368
MB
3342/* PERL_VENDORARCH:
3343 * If defined, this symbol contains the name of a private library.
3344 * The library is private in the sense that it needn't be in anyone's
3345 * execution path, but it should be accessible by the world.
3346 * It may have a ~ on the front.
3347 * The standard distribution will put nothing in this directory.
3348 * Vendors who distribute perl may wish to place their own
3349 * architecture-dependent modules and extensions in this directory with
3350 * MakeMaker Makefile.PL INSTALLDIRS=vendor
3351 * or equivalent. See INSTALL for details.
ed140128 3352 */
06501368
MB
3353/* PERL_VENDORARCH_EXP:
3354 * This symbol contains the ~name expanded version of PERL_VENDORARCH, to be used
3355 * in programs that are not prepared to deal with ~ expansion at run-time.
3356 */
3357#$d_vendorarch PERL_VENDORARCH "$vendorarch" /**/
3358#$d_vendorarch PERL_VENDORARCH_EXP "$vendorarchexp" /**/
3359
3360/* PERL_VENDORLIB_EXP:
3361 * This symbol contains the ~name expanded version of VENDORLIB, to be used
3362 * in programs that are not prepared to deal with ~ expansion at run-time.
3363 */
3364/* PERL_VENDORLIB_STEM:
3365 * This define is PERL_VENDORLIB_EXP with any trailing version-specific component
3366 * removed. The elements in inc_version_list (inc_version_list.U) can
3367 * be tacked onto this variable to generate a list of directories to search.
3368 */
3369#$d_vendorlib PERL_VENDORLIB_EXP "$vendorlibexp" /**/
3370#$d_vendorlib PERL_VENDORLIB_STEM "$vendorlib_stem" /**/
ed140128 3371
f53a6e0e
MB
3372/* USE_CROSS_COMPILE:
3373 * This symbol, if defined, indicates that Perl is being cross-compiled.
3374 */
3375/* PERL_TARGETARCH:
3376 * This symbol, if defined, indicates the target architecture
3377 * Perl has been cross-compiled to. Undefined if not a cross-compile.
3378 */
3379#ifndef USE_CROSS_COMPILE
3380#$usecrosscompile USE_CROSS_COMPILE /**/
3381#define PERL_TARGETARCH "$targetarch" /**/
3382#endif
3383
1be1b388
MB
3384/* PERL_USE_DEVEL:
3385 * This symbol, if defined, indicates that Perl was configured with
3386 * -Dusedevel, to enable development features. This should not be
3387 * done for production builds.
3388 */
3389#$usedevel PERL_USE_DEVEL /**/
3390
ed140128
AD
3391/* HAS_ATOLF:
3392 * This symbol, if defined, indicates that the atolf routine is
3393 * available to convert strings into long doubles.
3394 */
3395#$d_atolf HAS_ATOLF /**/
3396
3397/* HAS_ATOLL:
3398 * This symbol, if defined, indicates that the atoll routine is
3399 * available to convert strings into long longs.
3400 */
3401#$d_atoll HAS_ATOLL /**/
3402
3403/* HAS__FWALK:
3404 * This symbol, if defined, indicates that the _fwalk system call is
3405 * available to apply a function to all the file handles.
3406 */
3407#$d__fwalk HAS__FWALK /**/
3408
3409/* HAS_AINTL:
3410 * This symbol, if defined, indicates that the aintl routine is
3411 * available. If copysignl is also present we can emulate modfl.
3412 */
3413#$d_aintl HAS_AINTL /**/
3414
3415/* HAS_BUILTIN_CHOOSE_EXPR:
3416 * Can we handle GCC builtin for compile-time ternary-like expressions
3417 */
3418/* HAS_BUILTIN_EXPECT:
3419 * Can we handle GCC builtin for telling that certain values are more
3420 * likely
3421 */
3422#$d_builtin_expect HAS_BUILTIN_EXPECT /**/
3423#$d_builtin_choose_expr HAS_BUILTIN_CHOOSE_EXPR /**/
3424
3425/* HAS_C99_VARIADIC_MACROS:
3426 * If defined, the compiler supports C99 variadic macros.
3427 */
3428#$d_c99_variadic_macros HAS_C99_VARIADIC_MACROS /**/
3429
3430/* HAS_CLASS:
3431 * This symbol, if defined, indicates that the class routine is
3432 * available to classify doubles. Available for example in AIX.
3433 * The returned values are defined in <float.h> and are:
3434 *
3435 * FP_PLUS_NORM Positive normalized, nonzero
3436 * FP_MINUS_NORM Negative normalized, nonzero
3437 * FP_PLUS_DENORM Positive denormalized, nonzero
3438 * FP_MINUS_DENORM Negative denormalized, nonzero
3439 * FP_PLUS_ZERO +0.0
3440 * FP_MINUS_ZERO -0.0
3441 * FP_PLUS_INF +INF
3442 * FP_MINUS_INF -INF
3443 * FP_NANS Signaling Not a Number (NaNS)
3444 * FP_NANQ Quiet Not a Number (NaNQ)
3445 */
3446#$d_class HAS_CLASS /**/
3447
3448/* HAS_CLEARENV:
3449 * This symbol, if defined, indicates that the clearenv () routine is
3450 * available for use.
3451 */
3452#$d_clearenv HAS_CLEARENV /**/
3453
3454/* HAS_STRUCT_CMSGHDR:
3455 * This symbol, if defined, indicates that the struct cmsghdr
3456 * is supported.
3457 */
3458#$d_cmsghdr_s HAS_STRUCT_CMSGHDR /**/
3459
3460/* HAS_COPYSIGNL:
3461 * This symbol, if defined, indicates that the copysignl routine is
3462 * available. If aintl is also present we can emulate modfl.
3463 */
3464#$d_copysignl HAS_COPYSIGNL /**/
3465
3466/* USE_CPLUSPLUS:
3467 * This symbol, if defined, indicates that a C++ compiler was
3468 * used to compiled Perl and will be used to compile extensions.
3469 */
3470#$d_cplusplus USE_CPLUSPLUS /**/
3471
3472/* HAS_DBMINIT_PROTO:
3473 * This symbol, if defined, indicates that the system provides
3474 * a prototype for the dbminit() function. Otherwise, it is up
3475 * to the program to supply one. A good guess is
3476 * extern int dbminit(char *);
3477 */
3478#$d_dbminitproto HAS_DBMINIT_PROTO /**/
3479
3480/* HAS_DIR_DD_FD:
3481 * This symbol, if defined, indicates that the the DIR* dirstream
3482 * structure contains a member variable named dd_fd.
3483 */
3484#$d_dir_dd_fd HAS_DIR_DD_FD /**/
3485
3486/* HAS_DIRFD:
3487 * This manifest constant lets the C program know that dirfd
3488 * is available.
3489 */
3490#$d_dirfd HAS_DIRFD /**/
3491
3492/* DLSYM_NEEDS_UNDERSCORE:
3493 * This symbol, if defined, indicates that we need to prepend an
3494 * underscore to the symbol name before calling dlsym(). This only
3495 * makes sense if you *have* dlsym, which we will presume is the
3496 * case if you're using dl_dlopen.xs.
3497 */
3498#$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/
3499
3500/* HAS_FAST_STDIO:
3501 * This symbol, if defined, indicates that the "fast stdio"
3502 * is available to manipulate the stdio buffers directly.
3503 */
3504#$d_faststdio HAS_FAST_STDIO /**/
3505
3506/* HAS_FCHDIR:
3507 * This symbol, if defined, indicates that the fchdir routine is
3508 * available to change directory using a file descriptor.
3509 */
3510#$d_fchdir HAS_FCHDIR /**/
3511
3512/* FCNTL_CAN_LOCK:
3513 * This symbol, if defined, indicates that fcntl() can be used
3514 * for file locking. Normally on Unix systems this is defined.
3515 * It may be undefined on VMS.
3516 */
3517#$d_fcntl_can_lock FCNTL_CAN_LOCK /**/
3518
3519/* HAS_FINITE:
3520 * This symbol, if defined, indicates that the finite routine is
3521 * available to check whether a double is finite (non-infinity non-NaN).
3522 */
3523#$d_finite HAS_FINITE /**/
3524
3525/* HAS_FINITEL:
3526 * This symbol, if defined, indicates that the finitel routine is
3527 * available to check whether a long double is finite
3528 * (non-infinity non-NaN).
3529 */
3530#$d_finitel HAS_FINITEL /**/
3531
3532/* HAS_FLOCK_PROTO:
3533 * This symbol, if defined, indicates that the system provides
3534 * a prototype for the flock() function. Otherwise, it is up
3535 * to the program to supply one. A good guess is
3536 * extern int flock(int, int);
3537 */
3538#$d_flockproto HAS_FLOCK_PROTO /**/
3539
3540/* HAS_FP_CLASS:
3541 * This symbol, if defined, indicates that the fp_class routine is
3542 * available to classify doubles. Available for example in Digital UNIX.
3543 * The returned values are defined in <math.h> and are:
3544 *
3545 * FP_SNAN Signaling NaN (Not-a-Number)
3546 * FP_QNAN Quiet NaN (Not-a-Number)
3547 * FP_POS_INF +infinity
3548 * FP_NEG_INF -infinity
3549 * FP_POS_NORM Positive normalized
3550 * FP_NEG_NORM Negative normalized
3551 * FP_POS_DENORM Positive denormalized
3552 * FP_NEG_DENORM Negative denormalized
3553 * FP_POS_ZERO +0.0 (positive zero)
3554 * FP_NEG_ZERO -0.0 (negative zero)
3555 */
3556#$d_fp_class HAS_FP_CLASS /**/
3557
3558/* HAS_FPCLASS:
3559 * This symbol, if defined, indicates that the fpclass routine is
3560 * available to classify doubles. Available for example in Solaris/SVR4.
3561 * The returned values are defined in <ieeefp.h> and are:
3562 *
3563 * FP_SNAN signaling NaN
3564 * FP_QNAN quiet NaN
3565 * FP_NINF negative infinity
3566 * FP_PINF positive infinity
3567 * FP_NDENORM negative denormalized non-zero
3568 * FP_PDENORM positive denormalized non-zero
3569 * FP_NZERO negative zero
3570 * FP_PZERO positive zero
3571 * FP_NNORM negative normalized non-zero
3572 * FP_PNORM positive normalized non-zero
3573 */
3574#$d_fpclass HAS_FPCLASS /**/
3575
3576/* HAS_FPCLASSIFY:
3577 * This symbol, if defined, indicates that the fpclassify routine is
3578 * available to classify doubles. Available for example in HP-UX.
3579 * The returned values are defined in <math.h> and are
3580 *
3581 * FP_NORMAL Normalized
3582 * FP_ZERO Zero
3583 * FP_INFINITE Infinity
3584 * FP_SUBNORMAL Denormalized
3585 * FP_NAN NaN
3586 *
3587 */
3588#$d_fpclassify HAS_FPCLASSIFY /**/
3589
3590/* HAS_FPCLASSL:
3591 * This symbol, if defined, indicates that the fpclassl routine is
3592 * available to classify long doubles. Available for example in IRIX.
3593 * The returned values are defined in <ieeefp.h> and are:
3594 *
3595 * FP_SNAN signaling NaN
3596 * FP_QNAN quiet NaN
3597 * FP_NINF negative infinity
3598 * FP_PINF positive infinity
3599 * FP_NDENORM negative denormalized non-zero
3600 * FP_PDENORM positive denormalized non-zero
3601 * FP_NZERO negative zero
3602 * FP_PZERO positive zero
3603 * FP_NNORM negative normalized non-zero
3604 * FP_PNORM positive normalized non-zero
3605 */
3606#$d_fpclassl HAS_FPCLASSL /**/
3607
3608/* HAS_FPOS64_T:
3609 * This symbol will be defined if the C compiler supports fpos64_t.
3610 */
3611#$d_fpos64_t HAS_FPOS64_T /**/
3612
3613/* HAS_FREXPL:
3614 * This symbol, if defined, indicates that the frexpl routine is
3615 * available to break a long double floating-point number into
3616 * a normalized fraction and an integral power of 2.
3617 */
3618#$d_frexpl HAS_FREXPL /**/
3619
688e39e5
JH
3620/* HAS_LDEXPL:
3621 * This symbol, if defined, indicates that the ldexpl routine is
3622 * available to shift a long double floating-point number
3623 * by an integral power of 2.
3624 */
3625#$d_ldexpl HAS_LDEXPL /**/
3626
ed140128
AD
3627/* HAS_STRUCT_FS_DATA:
3628 * This symbol, if defined, indicates that the struct fs_data
3629 * to do statfs() is supported.
3630 */
3631#$d_fs_data_s HAS_STRUCT_FS_DATA /**/
3632
3633/* HAS_FSEEKO:
3634 * This symbol, if defined, indicates that the fseeko routine is
3635 * available to fseek beyond 32 bits (useful for ILP32 hosts).
3636 */
3637#$d_fseeko HAS_FSEEKO /**/
3638
3639/* HAS_FSTATFS:
3640 * This symbol, if defined, indicates that the fstatfs routine is
3641 * available to stat filesystems by file descriptors.
3642 */
3643#$d_fstatfs HAS_FSTATFS /**/
3644
3645/* HAS_FSYNC:
3646 * This symbol, if defined, indicates that the fsync routine is
3647 * available to write a file's modified data and attributes to
3648 * permanent storage.
3649 */
3650#$d_fsync HAS_FSYNC /**/
3651
3652/* HAS_FTELLO:
3653 * This symbol, if defined, indicates that the ftello routine is
3654 * available to ftell beyond 32 bits (useful for ILP32 hosts).
3655 */
3656#$d_ftello HAS_FTELLO /**/
3657
3658/* HAS_FUTIMES:
3659 * This symbol, if defined, indicates that the futimes routine is
3660 * available to change file descriptor time stamps with struct timevals.
3661 */
3662#$d_futimes HAS_FUTIMES /**/
3663
5086dff9
MB
3664/* HAS_GETADDRINFO:
3665 * This symbol, if defined, indicates that the getaddrinfo() function
3666 * is available for use.
3667 */
3668#$d_getaddrinfo HAS_GETADDRINFO /**/
3669
ed140128
AD
3670/* HAS_GETCWD:
3671 * This symbol, if defined, indicates that the getcwd routine is
3672 * available to get the current working directory.
3673 */
3674#$d_getcwd HAS_GETCWD /**/
3675
3676/* HAS_GETESPWNAM:
3677 * This symbol, if defined, indicates that the getespwnam system call is
cd95ead5 3678 * available to retrieve enhanced (shadow) password entries by name.
ed140128
AD
3679 */
3680#$d_getespwnam HAS_GETESPWNAM /**/
3681
3682/* HAS_GETFSSTAT:
3683 * This symbol, if defined, indicates that the getfsstat routine is
3684 * available to stat filesystems in bulk.
3685 */
3686#$d_getfsstat HAS_GETFSSTAT /**/
3687
3688/* HAS_GETITIMER:
3689 * This symbol, if defined, indicates that the getitimer routine is
3690 * available to return interval timers.
3691 */
3692#$d_getitimer HAS_GETITIMER /**/
3693
3694/* HAS_GETMNT:
3695 * This symbol, if defined, indicates that the getmnt routine is
3696 * available to get filesystem mount info by filename.
3697 */
3698#$d_getmnt HAS_GETMNT /**/
3699
3700/* HAS_GETMNTENT:
3701 * This symbol, if defined, indicates that the getmntent routine is
3702 * available to iterate through mounted file systems to get their info.
3703 */
3704#$d_getmntent HAS_GETMNTENT /**/
3705
5086dff9
MB
3706/* HAS_GETNAMEINFO:
3707 * This symbol, if defined, indicates that the getnameinfo() function
3708 * is available for use.
3709 */
3710#$d_getnameinfo HAS_GETNAMEINFO /**/
3711
ed140128
AD
3712/* HAS_GETPRPWNAM:
3713 * This symbol, if defined, indicates that the getprpwnam system call is
3714 * available to retrieve protected (shadow) password entries by name.
3715 */
3716#$d_getprpwnam HAS_GETPRPWNAM /**/
3717
3718/* HAS_GETSPNAM:
3719 * This symbol, if defined, indicates that the getspnam system call is
3720 * available to retrieve SysV shadow password entries by name.
3721 */
3722#$d_getspnam HAS_GETSPNAM /**/
3723
3724/* HAS_HASMNTOPT:
3725 * This symbol, if defined, indicates that the hasmntopt routine is
3726 * available to query the mount options of file systems.
3727 */
3728#$d_hasmntopt HAS_HASMNTOPT /**/
3729
3730/* HAS_ILOGBL:
3731 * This symbol, if defined, indicates that the ilogbl routine is
3732 * available. If scalbnl is also present we can emulate frexpl.
3733 */
3734#$d_ilogbl HAS_ILOGBL /**/
3735
5086dff9
MB
3736/* HAS_INETNTOP:
3737 * This symbol, if defined, indicates that the inet_ntop() function
3738 * is available to parse IPv4 and IPv6 strings.
3739 */
3740#$d_inetntop HAS_INETNTOP /**/
3741
3742/* HAS_INETPTON:
3743 * This symbol, if defined, indicates that the inet_pton() function
3744 * is available to parse IPv4 and IPv6 strings.
3745 */
3746#$d_inetpton HAS_INETPTON /**/
3747
ed140128
AD
3748/* HAS_INT64_T:
3749 * This symbol will defined if the C compiler supports int64_t.
3750 * Usually the <inttypes.h> needs to be included, but sometimes
3751 * <sys/types.h> is enough.
3752 */
3753#$d_int64_t HAS_INT64_T /**/
3754
269a7913 3755/* HAS_ISBLANK:
1332606d 3756 * This manifest constant lets the C program know that isblank
269a7913
MB
3757 * is available.
3758 */
3759#$d_isblank HAS_ISBLANK /**/
3760
ed140128
AD
3761/* HAS_ISFINITE:
3762 * This symbol, if defined, indicates that the isfinite routine is
3763 * available to check whether a double is finite (non-infinity non-NaN).
3764 */
3765#$d_isfinite HAS_ISFINITE /**/
3766
3767/* HAS_ISINF:
3768 * This symbol, if defined, indicates that the isinf routine is
3769 * available to check whether a double is an infinity.
3770 */
3771#$d_isinf HAS_ISINF /**/
3772
3773/* HAS_ISNAN:
3774 * This symbol, if defined, indicates that the isnan routine is
3775 * available to check whether a double is a NaN.
3776 */
3777#$d_isnan HAS_ISNAN /**/
3778
3779/* HAS_ISNANL:
3780 * This symbol, if defined, indicates that the isnanl routine is
3781 * available to check whether a long double is a NaN.
3782 */
3783#$d_isnanl HAS_ISNANL /**/
3784
3785/* HAS_LDBL_DIG:
3786 * This symbol, if defined, indicates that this system's <float.h>
3787 * or <limits.h> defines the symbol LDBL_DIG, which is the number
3788 * of significant digits in a long double precision number. Unlike
3789 * for DBL_DIG, there's no good guess for LDBL_DIG if it is undefined.
3790 */
06501368 3791#$d_ldbl_dig HAS_LDBL_DIG /* */
ed140128
AD
3792
3793/* LIBM_LIB_VERSION:
3794 * This symbol, if defined, indicates that libm exports _LIB_VERSION
3795 * and that math.h defines the enum to manipulate it.
3796 */
3797#$d_libm_lib_version LIBM_LIB_VERSION /**/
3798
3799/* HAS_MADVISE:
3800 * This symbol, if defined, indicates that the madvise system call is
3801 * available to map a file into memory.
3802 */
3803#$d_madvise HAS_MADVISE /**/
3804
3805/* HAS_MALLOC_SIZE:
3806 * This symbol, if defined, indicates that the malloc_size
3807 * routine is available for use.
3808 */
3809#$d_malloc_size HAS_MALLOC_SIZE /**/
3810
3811/* HAS_MALLOC_GOOD_SIZE:
3812 * This symbol, if defined, indicates that the malloc_good_size
3813 * routine is available for use.
3814 */
3815#$d_malloc_good_size HAS_MALLOC_GOOD_SIZE /**/
3816
3817/* HAS_MKDTEMP:
3818 * This symbol, if defined, indicates that the mkdtemp routine is
3819 * available to exclusively create a uniquely named temporary directory.
3820 */
3821#$d_mkdtemp HAS_MKDTEMP /**/
3822
3823/* HAS_MKSTEMPS:
3824 * This symbol, if defined, indicates that the mkstemps routine is
cd95ead5 3825 * available to exclusively create and open a uniquely named
ed140128
AD
3826 * (with a suffix) temporary file.
3827 */
3828#$d_mkstemps HAS_MKSTEMPS /**/
3829
3830/* HAS_MODFL:
3831 * This symbol, if defined, indicates that the modfl routine is
3832 * available to split a long double x into a fractional part f and
3833 * an integer part i such that |f| < 1.0 and (f + i) = x.
3834 */
3835/* HAS_MODFL_PROTO:
3836 * This symbol, if defined, indicates that the system provides
3837 * a prototype for the modfl() function. Otherwise, it is up
3838 * to the program to supply one.
3839 */
3840/* HAS_MODFL_POW32_BUG:
3841 * This symbol, if defined, indicates that the modfl routine is
3842 * broken for long doubles >= pow(2, 32).
3843 * For example from 4294967303.150000 one would get 4294967302.000000
3844 * and 1.150000. The bug has been seen in certain versions of glibc,
3845 * release 2.2.2 is known to be okay.
3846 */
3847#$d_modfl HAS_MODFL /**/
3848#$d_modflproto HAS_MODFL_PROTO /**/
3849#$d_modfl_pow32_bug HAS_MODFL_POW32_BUG /**/
3850
3851/* HAS_MPROTECT:
3852 * This symbol, if defined, indicates that the mprotect system call is
3853 * available to modify the access protection of a memory mapped file.
3854 */
3855#$d_mprotect HAS_MPROTECT /**/
3856
3857/* HAS_STRUCT_MSGHDR:
3858 * This symbol, if defined, indicates that the struct msghdr
3859 * is supported.
3860 */
3861#$d_msghdr_s HAS_STRUCT_MSGHDR /**/
3862
3863/* HAS_NL_LANGINFO:
3864 * This symbol, if defined, indicates that the nl_langinfo routine is
3865 * available to return local data. You will also need <langinfo.h>
3866 * and therefore I_LANGINFO.
3867 */
3868#$d_nl_langinfo HAS_NL_LANGINFO /**/
3869
3870/* HAS_OFF64_T:
3871 * This symbol will be defined if the C compiler supports off64_t.
3872 */
3873#$d_off64_t HAS_OFF64_T /**/
3874
c796e3db
MB
3875/* HAS_PRCTL:
3876 * This symbol, if defined, indicates that the prctl routine is
3877 * available to set process title.
3878 */
3879/* HAS_PRCTL_SET_NAME:
3880 * This symbol, if defined, indicates that the prctl routine is
3881 * available to set process title and supports PR_SET_NAME.
3882 */
3883#$d_prctl HAS_PRCTL /**/
3884#$d_prctl_set_name HAS_PRCTL_SET_NAME /**/
3885
ed140128
AD
3886/* HAS_PROCSELFEXE:
3887 * This symbol is defined if PROCSELFEXE_PATH is a symlink
3888 * to the absolute pathname of the executing program.
3889 */
3890/* PROCSELFEXE_PATH:
3891 * If HAS_PROCSELFEXE is defined this symbol is the filename
3892 * of the symbolic link pointing to the absolute pathname of
3893 * the executing program.
3894 */
3895#$d_procselfexe HAS_PROCSELFEXE /**/
3896#if defined(HAS_PROCSELFEXE) && !defined(PROCSELFEXE_PATH)
3897#define PROCSELFEXE_PATH $procselfexe /**/
3898#endif
3899
3900/* HAS_PTHREAD_ATTR_SETSCOPE:
3901 * This symbol, if defined, indicates that the pthread_attr_setscope
3902 * system call is available to set the contention scope attribute of
3903 * a thread attribute object.
3904 */
3905#$d_pthread_attr_setscope HAS_PTHREAD_ATTR_SETSCOPE /**/
3906
0e0c5f82
MB
3907/* HAS_PTRDIFF_T:
3908 * This symbol will be defined if the C compiler supports ptrdiff_t.
3909 */
3910#$d_ptrdiff_t HAS_PTRDIFF_T /**/
3911
ed140128
AD
3912/* HAS_READV:
3913 * This symbol, if defined, indicates that the readv routine is
3914 * available to do gather reads. You will also need <sys/uio.h>
3915 * and there I_SYSUIO.
3916 */
3917#$d_readv HAS_READV /**/
3918
3919/* HAS_RECVMSG:
3920 * This symbol, if defined, indicates that the recvmsg routine is
3921 * available to send structured socket messages.
3922 */
3923#$d_recvmsg HAS_RECVMSG /**/
3924
3925/* HAS_SBRK_PROTO:
3926 * This symbol, if defined, indicates that the system provides
3927 * a prototype for the sbrk() function. Otherwise, it is up
3928 * to the program to supply one. Good guesses are
3929 * extern void* sbrk(int);
3930 * extern void* sbrk(size_t);
3931 */
3932#$d_sbrkproto HAS_SBRK_PROTO /**/
3933
3934/* HAS_SCALBNL:
3935 * This symbol, if defined, indicates that the scalbnl routine is
3936 * available. If ilogbl is also present we can emulate frexpl.