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