This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Tweak IPC-Open3.t to cope with \r\n line endings on Win32.
[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
b8677e3b
MB
960/* USE_CROSS_COMPILE:
961 * This symbol, if defined, indicates that Perl is being cross-compiled.
08c92000 962 */
b8677e3b
MB
963/* PERL_TARGETARCH:
964 * This symbol, if defined, indicates the target architecture
965 * Perl has been cross-compiled to. Undefined if not a cross-compile.
08c92000 966 */
b8677e3b
MB
967#ifndef USE_CROSS_COMPILE
968#$usecrosscompile USE_CROSS_COMPILE /**/
969#define PERL_TARGETARCH "$targetarch" /**/
970#endif
971
972/* MEM_ALIGNBYTES:
973 * This symbol contains the number of bytes required to align a
974 * double, or a long double when applicable. Usual values are 2,
975 * 4 and 8. The default is eight, for safety.
976 */
977#if defined(USE_CROSS_COMPILE) || defined(MULTIARCH)
978# define MEM_ALIGNBYTES 8
979#else
980#define MEM_ALIGNBYTES $alignbytes
981#endif
08c92000 982
08c92000
MB
983/* ARCHLIB:
984 * This variable, if defined, holds the name of the directory in
985 * which the user wants to put architecture-dependent public
986 * library files for $package. It is most often a local directory
987 * such as /usr/local/lib. Programs using this variable must be
988 * prepared to deal with filename expansion. If ARCHLIB is the
989 * same as PRIVLIB, it is not defined, since presumably the
990 * program already searches PRIVLIB.
991 */
992/* ARCHLIB_EXP:
993 * This symbol contains the ~name expanded version of ARCHLIB, to be used
994 * in programs that are not prepared to deal with ~ expansion at run-time.
995 */
996#$d_archlib ARCHLIB "$archlib" /**/
997#$d_archlib ARCHLIB_EXP "$archlibexp" /**/
998
999/* ARCHNAME:
1000 * This symbol holds a string representing the architecture name.
1001 * It may be used to construct an architecture-dependant pathname
1002 * where library files may be held under a private library, for
1003 * instance.
1004 */
1005#define ARCHNAME "$archname" /**/
1006
08c92000
MB
1007/* BIN:
1008 * This symbol holds the path of the bin directory where the package will
1009 * be installed. Program must be prepared to deal with ~name substitution.
1010 */
1011/* BIN_EXP:
1012 * This symbol is the filename expanded version of the BIN symbol, for
1013 * programs that do not want to deal with that at run-time.
1014 */
f3f1a2d8
MB
1015/* PERL_RELOCATABLE_INC:
1016 * This symbol, if defined, indicates that we'd like to relocate entries
1017 * in @INC at run time based on the location of the perl binary.
1018 */
08c92000
MB
1019#define BIN "$bin" /**/
1020#define BIN_EXP "$binexp" /**/
f3f1a2d8 1021#define PERL_RELOCATABLE_INC "$userelocatableinc" /**/
08c92000 1022
b8677e3b
MB
1023/* BYTEORDER:
1024 * This symbol holds the hexadecimal constant defined in byteorder,
1025 * in a UV, i.e. 0x1234 or 0x4321 or 0x12345678, etc...
1026 * If the compiler supports cross-compiling or multiple-architecture
1027 * binaries (eg. on NeXT systems), use compiler-defined macros to
1028 * determine the byte order.
1029 * On NeXT 3.2 (and greater), you can build "Fat" Multiple Architecture
1030 * Binaries (MAB) on either big endian or little endian machines.
1031 * The endian-ness is available at compile-time. This only matters
1032 * for perl, where the config.h can be generated and installed on
1033 * one system, and used by a different architecture to build an
1034 * extension. Older versions of NeXT that might not have
1035 * defined either *_ENDIAN__ were all on Motorola 680x0 series,
1036 * so the default case (for NeXT) is big endian to catch them.
1037 * This might matter for NeXT 3.0.
08c92000 1038 */
b8677e3b
MB
1039#if defined(USE_CROSS_COMPILE) || defined(MULTIARCH)
1040# ifdef __LITTLE_ENDIAN__
1041# if LONGSIZE == 4
1042# define BYTEORDER 0x1234
1043# else
1044# if LONGSIZE == 8
1045# define BYTEORDER 0x12345678
1046# endif
1047# endif
1048# else
1049# ifdef __BIG_ENDIAN__
1050# if LONGSIZE == 4
1051# define BYTEORDER 0x4321
1052# else
1053# if LONGSIZE == 8
1054# define BYTEORDER 0x87654321
1055# endif
1056# endif
1057# endif
1058# endif
1059# if !defined(BYTEORDER) && (defined(NeXT) || defined(__NeXT__))
1060# define BYTEORDER 0x4321
1061# endif
1062#else
1063#define BYTEORDER 0x$byteorder /* large digits for MSB */
1064#endif /* NeXT */
08c92000 1065
b8677e3b
MB
1066/* CHARBITS:
1067 * This symbol contains the size of a char, so that the C preprocessor
1068 * can make decisions based on it.
08c92000 1069 */
b8677e3b 1070#define CHARBITS $charbits /**/
08c92000 1071
ed140128
AD
1072/* HAS_ACCESSX:
1073 * This symbol, if defined, indicates that the accessx routine is
1074 * available to do extended access checks.
eaf812ae 1075 */
ed140128 1076#$d_accessx HAS_ACCESSX /**/
eaf812ae 1077
08c92000
MB
1078/* HAS_ASCTIME_R:
1079 * This symbol, if defined, indicates that the asctime_r routine
1080 * is available to asctime re-entrantly.
1081 */
1082/* ASCTIME_R_PROTO:
1083 * This symbol encodes the prototype of asctime_r.
1084 * It is zero if d_asctime_r is undef, and one of the
1085 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_asctime_r
1086 * is defined.
1087 */
1088#$d_asctime_r HAS_ASCTIME_R /**/
1089#define ASCTIME_R_PROTO $asctime_r_proto /**/
1090
b8677e3b
MB
1091/* CASTI32:
1092 * This symbol is defined if the C compiler can cast negative
1093 * or large floating point numbers to 32-bit ints.
eaf812ae 1094 */
b8677e3b
MB
1095#$d_casti32 CASTI32 /**/
1096
1097/* CASTNEGFLOAT:
1098 * This symbol is defined if the C compiler can cast negative
1099 * numbers to unsigned longs, ints and shorts.
fcdf39cf 1100 */
b8677e3b
MB
1101/* CASTFLAGS:
1102 * This symbol contains flags that say what difficulties the compiler
1103 * has casting odd floating values to unsigned long:
1104 * 0 = ok
1105 * 1 = couldn't cast < 0
1106 * 2 = couldn't cast >= 0x80000000
1107 * 4 = couldn't cast in argument expression list
eaf812ae 1108 */
b8677e3b
MB
1109#$d_castneg CASTNEGFLOAT /**/
1110#define CASTFLAGS $castflags /**/
eaf812ae 1111
b8677e3b
MB
1112/* VOID_CLOSEDIR:
1113 * This symbol, if defined, indicates that the closedir() routine
1114 * does not return a value.
f244a502 1115 */
b8677e3b 1116#$d_void_closedir VOID_CLOSEDIR /**/
f244a502 1117
08c92000
MB
1118/* HAS_CRYPT_R:
1119 * This symbol, if defined, indicates that the crypt_r routine
1120 * is available to crypt re-entrantly.
a845a0d4 1121 */
08c92000
MB
1122/* CRYPT_R_PROTO:
1123 * This symbol encodes the prototype of crypt_r.
1124 * It is zero if d_crypt_r is undef, and one of the
1125 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_crypt_r
1126 * is defined.
a845a0d4 1127 */
08c92000
MB
1128#$d_crypt_r HAS_CRYPT_R /**/
1129#define CRYPT_R_PROTO $crypt_r_proto /**/
a845a0d4 1130
eaf812ae
MB
1131/* HAS_CTERMID_R:
1132 * This symbol, if defined, indicates that the ctermid_r routine
1133 * is available to ctermid re-entrantly.
1134 */
1135/* CTERMID_R_PROTO:
1136 * This symbol encodes the prototype of ctermid_r.
1137 * It is zero if d_ctermid_r is undef, and one of the
1138 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_ctermid_r
1139 * is defined.
1140 */
1141#$d_ctermid_r HAS_CTERMID_R /**/
1142#define CTERMID_R_PROTO $ctermid_r_proto /**/
1143
08c92000
MB
1144/* HAS_CTIME_R:
1145 * This symbol, if defined, indicates that the ctime_r routine
1146 * is available to ctime re-entrantly.
a845a0d4 1147 */
08c92000
MB
1148/* CTIME_R_PROTO:
1149 * This symbol encodes the prototype of ctime_r.
1150 * It is zero if d_ctime_r is undef, and one of the
1151 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_ctime_r
1152 * is defined.
a845a0d4 1153 */
08c92000
MB
1154#$d_ctime_r HAS_CTIME_R /**/
1155#define CTIME_R_PROTO $ctime_r_proto /**/
a845a0d4 1156
08c92000
MB
1157/* HAS_DRAND48_R:
1158 * This symbol, if defined, indicates that the drand48_r routine
1159 * is available to drand48 re-entrantly.
a845a0d4 1160 */
08c92000
MB
1161/* DRAND48_R_PROTO:
1162 * This symbol encodes the prototype of drand48_r.
1163 * It is zero if d_drand48_r is undef, and one of the
1164 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_drand48_r
1165 * is defined.
1166 */
1167#$d_drand48_r HAS_DRAND48_R /**/
1168#define DRAND48_R_PROTO $drand48_r_proto /**/
a845a0d4 1169
ed140128
AD
1170/* HAS_EACCESS:
1171 * This symbol, if defined, indicates that the eaccess routine is
1172 * available to do extended access checks.
1173 */
1174#$d_eaccess HAS_EACCESS /**/
1175
08c92000
MB
1176/* HAS_ENDGRENT_R:
1177 * This symbol, if defined, indicates that the endgrent_r routine
1178 * is available to endgrent re-entrantly.
88fdc172 1179 */
08c92000
MB
1180/* ENDGRENT_R_PROTO:
1181 * This symbol encodes the prototype of endgrent_r.
1182 * It is zero if d_endgrent_r is undef, and one of the
1183 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endgrent_r
1184 * is defined.
88fdc172 1185 */
08c92000
MB
1186#$d_endgrent_r HAS_ENDGRENT_R /**/
1187#define ENDGRENT_R_PROTO $endgrent_r_proto /**/
1188
eaf812ae
MB
1189/* HAS_ENDHOSTENT_R:
1190 * This symbol, if defined, indicates that the endhostent_r routine
1191 * is available to endhostent re-entrantly.
1192 */
1193/* ENDHOSTENT_R_PROTO:
1194 * This symbol encodes the prototype of endhostent_r.
1195 * It is zero if d_endhostent_r is undef, and one of the
1196 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endhostent_r
1197 * is defined.
1198 */
1199#$d_endhostent_r HAS_ENDHOSTENT_R /**/
1200#define ENDHOSTENT_R_PROTO $endhostent_r_proto /**/
1201
eaf812ae
MB
1202/* HAS_ENDNETENT_R:
1203 * This symbol, if defined, indicates that the endnetent_r routine
1204 * is available to endnetent re-entrantly.
1205 */
1206/* ENDNETENT_R_PROTO:
1207 * This symbol encodes the prototype of endnetent_r.
1208 * It is zero if d_endnetent_r is undef, and one of the
1209 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endnetent_r
1210 * is defined.
1211 */
1212#$d_endnetent_r HAS_ENDNETENT_R /**/
1213#define ENDNETENT_R_PROTO $endnetent_r_proto /**/
1214
eaf812ae
MB
1215/* HAS_ENDPROTOENT_R:
1216 * This symbol, if defined, indicates that the endprotoent_r routine
1217 * is available to endprotoent re-entrantly.
1218 */
1219/* ENDPROTOENT_R_PROTO:
1220 * This symbol encodes the prototype of endprotoent_r.
1221 * It is zero if d_endprotoent_r is undef, and one of the
1222 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endprotoent_r
1223 * is defined.
1224 */
1225#$d_endprotoent_r HAS_ENDPROTOENT_R /**/
1226#define ENDPROTOENT_R_PROTO $endprotoent_r_proto /**/
1227
08c92000
MB
1228/* HAS_ENDPWENT_R:
1229 * This symbol, if defined, indicates that the endpwent_r routine
1230 * is available to endpwent re-entrantly.
88fdc172 1231 */
08c92000
MB
1232/* ENDPWENT_R_PROTO:
1233 * This symbol encodes the prototype of endpwent_r.
1234 * It is zero if d_endpwent_r is undef, and one of the
1235 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endpwent_r
1236 * is defined.
88fdc172 1237 */
08c92000
MB
1238#$d_endpwent_r HAS_ENDPWENT_R /**/
1239#define ENDPWENT_R_PROTO $endpwent_r_proto /**/
1240
eaf812ae
MB
1241/* HAS_ENDSERVENT_R:
1242 * This symbol, if defined, indicates that the endservent_r routine
1243 * is available to endservent re-entrantly.
1244 */
1245/* ENDSERVENT_R_PROTO:
1246 * This symbol encodes the prototype of endservent_r.
1247 * It is zero if d_endservent_r is undef, and one of the
1248 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endservent_r
1249 * is defined.
1250 */
1251#$d_endservent_r HAS_ENDSERVENT_R /**/
1252#define ENDSERVENT_R_PROTO $endservent_r_proto /**/
1253
b8677e3b
MB
1254/* HAS_FD_SET:
1255 * This symbol, when defined, indicates presence of the fd_set typedef
1256 * in <sys/types.h>
a845a0d4 1257 */
b8677e3b 1258#$d_fd_set HAS_FD_SET /**/
a845a0d4 1259
b8677e3b
MB
1260/* Gconvert:
1261 * This preprocessor macro is defined to convert a floating point
1262 * number to a string without a trailing decimal point. This
1263 * emulates the behavior of sprintf("%g"), but is sometimes much more
1264 * efficient. If gconvert() is not available, but gcvt() drops the
1265 * trailing decimal point, then gcvt() is used. If all else fails,
1266 * a macro using sprintf("%g") is used. Arguments for the Gconvert
1267 * macro are: value, number of digits, whether trailing zeros should
1268 * be retained, and the output buffer.
1269 * The usual values are:
1270 * d_Gconvert='gconvert((x),(n),(t),(b))'
1271 * d_Gconvert='gcvt((x),(n),(b))'
1272 * d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1273 * The last two assume trailing zeros should not be kept.
a845a0d4 1274 */
b8677e3b 1275#define Gconvert(x,n,t,b) $d_Gconvert
a845a0d4 1276
08c92000
MB
1277/* HAS_GETGRENT_R:
1278 * This symbol, if defined, indicates that the getgrent_r routine
1279 * is available to getgrent re-entrantly.
a845a0d4 1280 */
08c92000
MB
1281/* GETGRENT_R_PROTO:
1282 * This symbol encodes the prototype of getgrent_r.
1283 * It is zero if d_getgrent_r is undef, and one of the
1284 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getgrent_r
1285 * is defined.
1286 */
1287#$d_getgrent_r HAS_GETGRENT_R /**/
1288#define GETGRENT_R_PROTO $getgrent_r_proto /**/
a845a0d4 1289
08c92000
MB
1290/* HAS_GETGRGID_R:
1291 * This symbol, if defined, indicates that the getgrgid_r routine
1292 * is available to getgrgid re-entrantly.
a845a0d4 1293 */
08c92000
MB
1294/* GETGRGID_R_PROTO:
1295 * This symbol encodes the prototype of getgrgid_r.
1296 * It is zero if d_getgrgid_r is undef, and one of the
1297 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getgrgid_r
1298 * is defined.
a845a0d4 1299 */
08c92000
MB
1300#$d_getgrgid_r HAS_GETGRGID_R /**/
1301#define GETGRGID_R_PROTO $getgrgid_r_proto /**/
a845a0d4 1302
08c92000
MB
1303/* HAS_GETGRNAM_R:
1304 * This symbol, if defined, indicates that the getgrnam_r routine
1305 * is available to getgrnam re-entrantly.
a845a0d4 1306 */
08c92000
MB
1307/* GETGRNAM_R_PROTO:
1308 * This symbol encodes the prototype of getgrnam_r.
1309 * It is zero if d_getgrnam_r is undef, and one of the
1310 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getgrnam_r
1311 * is defined.
a845a0d4 1312 */
08c92000
MB
1313#$d_getgrnam_r HAS_GETGRNAM_R /**/
1314#define GETGRNAM_R_PROTO $getgrnam_r_proto /**/
a845a0d4 1315
eaf812ae
MB
1316/* HAS_GETHOSTBYADDR_R:
1317 * This symbol, if defined, indicates that the gethostbyaddr_r routine
1318 * is available to gethostbyaddr re-entrantly.
a845a0d4 1319 */
eaf812ae
MB
1320/* GETHOSTBYADDR_R_PROTO:
1321 * This symbol encodes the prototype of gethostbyaddr_r.
1322 * It is zero if d_gethostbyaddr_r is undef, and one of the
1323 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_gethostbyaddr_r
1324 * is defined.
a845a0d4 1325 */
eaf812ae
MB
1326#$d_gethostbyaddr_r HAS_GETHOSTBYADDR_R /**/
1327#define GETHOSTBYADDR_R_PROTO $gethostbyaddr_r_proto /**/
08c92000 1328
eaf812ae
MB
1329/* HAS_GETHOSTBYNAME_R:
1330 * This symbol, if defined, indicates that the gethostbyname_r routine
1331 * is available to gethostbyname re-entrantly.
a845a0d4 1332 */
eaf812ae
MB
1333/* GETHOSTBYNAME_R_PROTO:
1334 * This symbol encodes the prototype of gethostbyname_r.
1335 * It is zero if d_gethostbyname_r is undef, and one of the
1336 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_gethostbyname_r
08c92000 1337 * is defined.
a845a0d4 1338 */
eaf812ae
MB
1339#$d_gethostbyname_r HAS_GETHOSTBYNAME_R /**/
1340#define GETHOSTBYNAME_R_PROTO $gethostbyname_r_proto /**/
1341
1342/* HAS_GETHOSTENT_R:
1343 * This symbol, if defined, indicates that the gethostent_r routine
1344 * is available to gethostent re-entrantly.
1345 */
1346/* GETHOSTENT_R_PROTO:
1347 * This symbol encodes the prototype of gethostent_r.
1348 * It is zero if d_gethostent_r is undef, and one of the
1349 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_gethostent_r
1350 * is defined.
1351 */
1352#$d_gethostent_r HAS_GETHOSTENT_R /**/
1353#define GETHOSTENT_R_PROTO $gethostent_r_proto /**/
1354
eaf812ae
MB
1355/* HAS_GETLOGIN_R:
1356 * This symbol, if defined, indicates that the getlogin_r routine
1357 * is available to getlogin re-entrantly.
1358 */
1359/* GETLOGIN_R_PROTO:
1360 * This symbol encodes the prototype of getlogin_r.
1361 * It is zero if d_getlogin_r is undef, and one of the
1362 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getlogin_r
1363 * is defined.
1364 */
1365#$d_getlogin_r HAS_GETLOGIN_R /**/
1366#define GETLOGIN_R_PROTO $getlogin_r_proto /**/
1367
eaf812ae
MB
1368/* HAS_GETNETBYADDR_R:
1369 * This symbol, if defined, indicates that the getnetbyaddr_r routine
1370 * is available to getnetbyaddr re-entrantly.
1371 */
1372/* GETNETBYADDR_R_PROTO:
1373 * This symbol encodes the prototype of getnetbyaddr_r.
1374 * It is zero if d_getnetbyaddr_r is undef, and one of the
1375 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getnetbyaddr_r
1376 * is defined.
1377 */
1378#$d_getnetbyaddr_r HAS_GETNETBYADDR_R /**/
1379#define GETNETBYADDR_R_PROTO $getnetbyaddr_r_proto /**/
1380
1381/* HAS_GETNETBYNAME_R:
1382 * This symbol, if defined, indicates that the getnetbyname_r routine
1383 * is available to getnetbyname re-entrantly.
1384 */
1385/* GETNETBYNAME_R_PROTO:
1386 * This symbol encodes the prototype of getnetbyname_r.
1387 * It is zero if d_getnetbyname_r is undef, and one of the
1388 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getnetbyname_r
1389 * is defined.
1390 */
1391#$d_getnetbyname_r HAS_GETNETBYNAME_R /**/
1392#define GETNETBYNAME_R_PROTO $getnetbyname_r_proto /**/
1393
1394/* HAS_GETNETENT_R:
1395 * This symbol, if defined, indicates that the getnetent_r routine
1396 * is available to getnetent re-entrantly.
1397 */
1398/* GETNETENT_R_PROTO:
1399 * This symbol encodes the prototype of getnetent_r.
1400 * It is zero if d_getnetent_r is undef, and one of the
1401 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getnetent_r
1402 * is defined.
1403 */
1404#$d_getnetent_r HAS_GETNETENT_R /**/
1405#define GETNETENT_R_PROTO $getnetent_r_proto /**/
1406
b8677e3b
MB
1407/* HAS_GETPAGESIZE:
1408 * This symbol, if defined, indicates that the getpagesize system call
1409 * is available to get system page size, which is the granularity of
1410 * many memory management calls.
a845a0d4 1411 */
b8677e3b 1412#$d_getpagsz HAS_GETPAGESIZE /**/
a845a0d4 1413
eaf812ae
MB
1414/* HAS_GETPROTOBYNAME_R:
1415 * This symbol, if defined, indicates that the getprotobyname_r routine
1416 * is available to getprotobyname re-entrantly.
1417 */
1418/* GETPROTOBYNAME_R_PROTO:
1419 * This symbol encodes the prototype of getprotobyname_r.
1420 * It is zero if d_getprotobyname_r is undef, and one of the
1421 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getprotobyname_r
1422 * is defined.
1423 */
1424#$d_getprotobyname_r HAS_GETPROTOBYNAME_R /**/
1425#define GETPROTOBYNAME_R_PROTO $getprotobyname_r_proto /**/
1426
1427/* HAS_GETPROTOBYNUMBER_R:
1428 * This symbol, if defined, indicates that the getprotobynumber_r routine
1429 * is available to getprotobynumber re-entrantly.
1430 */
1431/* GETPROTOBYNUMBER_R_PROTO:
1432 * This symbol encodes the prototype of getprotobynumber_r.
1433 * It is zero if d_getprotobynumber_r is undef, and one of the
1434 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getprotobynumber_r
1435 * is defined.
1436 */
1437#$d_getprotobynumber_r HAS_GETPROTOBYNUMBER_R /**/
1438#define GETPROTOBYNUMBER_R_PROTO $getprotobynumber_r_proto /**/
1439
1440/* HAS_GETPROTOENT_R:
1441 * This symbol, if defined, indicates that the getprotoent_r routine
1442 * is available to getprotoent re-entrantly.
1443 */
1444/* GETPROTOENT_R_PROTO:
1445 * This symbol encodes the prototype of getprotoent_r.
1446 * It is zero if d_getprotoent_r is undef, and one of the
1447 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getprotoent_r
1448 * is defined.
1449 */
1450#$d_getprotoent_r HAS_GETPROTOENT_R /**/
1451#define GETPROTOENT_R_PROTO $getprotoent_r_proto /**/
1452
08c92000
MB
1453/* HAS_GETPWENT_R:
1454 * This symbol, if defined, indicates that the getpwent_r routine
1455 * is available to getpwent re-entrantly.
a845a0d4 1456 */
08c92000
MB
1457/* GETPWENT_R_PROTO:
1458 * This symbol encodes the prototype of getpwent_r.
1459 * It is zero if d_getpwent_r is undef, and one of the
1460 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getpwent_r
1461 * is defined.
a845a0d4 1462 */
08c92000
MB
1463#$d_getpwent_r HAS_GETPWENT_R /**/
1464#define GETPWENT_R_PROTO $getpwent_r_proto /**/
a845a0d4 1465
08c92000
MB
1466/* HAS_GETPWNAM_R:
1467 * This symbol, if defined, indicates that the getpwnam_r routine
1468 * is available to getpwnam re-entrantly.
a845a0d4 1469 */
08c92000
MB
1470/* GETPWNAM_R_PROTO:
1471 * This symbol encodes the prototype of getpwnam_r.
1472 * It is zero if d_getpwnam_r is undef, and one of the
1473 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getpwnam_r
1474 * is defined.
a845a0d4 1475 */
08c92000
MB
1476#$d_getpwnam_r HAS_GETPWNAM_R /**/
1477#define GETPWNAM_R_PROTO $getpwnam_r_proto /**/
a845a0d4 1478
08c92000
MB
1479/* HAS_GETPWUID_R:
1480 * This symbol, if defined, indicates that the getpwuid_r routine
1481 * is available to getpwuid re-entrantly.
10bc17b6 1482 */
08c92000
MB
1483/* GETPWUID_R_PROTO:
1484 * This symbol encodes the prototype of getpwuid_r.
1485 * It is zero if d_getpwuid_r is undef, and one of the
1486 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getpwuid_r
1487 * is defined.
a845a0d4 1488 */
08c92000
MB
1489#$d_getpwuid_r HAS_GETPWUID_R /**/
1490#define GETPWUID_R_PROTO $getpwuid_r_proto /**/
a845a0d4 1491
eaf812ae
MB
1492/* HAS_GETSERVBYNAME_R:
1493 * This symbol, if defined, indicates that the getservbyname_r routine
1494 * is available to getservbyname re-entrantly.
1495 */
1496/* GETSERVBYNAME_R_PROTO:
1497 * This symbol encodes the prototype of getservbyname_r.
1498 * It is zero if d_getservbyname_r is undef, and one of the
1499 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getservbyname_r
1500 * is defined.
1501 */
1502#$d_getservbyname_r HAS_GETSERVBYNAME_R /**/
1503#define GETSERVBYNAME_R_PROTO $getservbyname_r_proto /**/
1504
1505/* HAS_GETSERVBYPORT_R:
1506 * This symbol, if defined, indicates that the getservbyport_r routine
1507 * is available to getservbyport re-entrantly.
1508 */
1509/* GETSERVBYPORT_R_PROTO:
1510 * This symbol encodes the prototype of getservbyport_r.
1511 * It is zero if d_getservbyport_r is undef, and one of the
1512 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getservbyport_r
1513 * is defined.
1514 */
1515#$d_getservbyport_r HAS_GETSERVBYPORT_R /**/
1516#define GETSERVBYPORT_R_PROTO $getservbyport_r_proto /**/
1517
1518/* HAS_GETSERVENT_R:
1519 * This symbol, if defined, indicates that the getservent_r routine
1520 * is available to getservent re-entrantly.
1521 */
1522/* GETSERVENT_R_PROTO:
1523 * This symbol encodes the prototype of getservent_r.
1524 * It is zero if d_getservent_r is undef, and one of the
1525 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getservent_r
1526 * is defined.
1527 */
1528#$d_getservent_r HAS_GETSERVENT_R /**/
1529#define GETSERVENT_R_PROTO $getservent_r_proto /**/
1530
08c92000
MB
1531/* HAS_GETSPNAM_R:
1532 * This symbol, if defined, indicates that the getspnam_r routine
1533 * is available to getspnam re-entrantly.
a845a0d4 1534 */
08c92000
MB
1535/* GETSPNAM_R_PROTO:
1536 * This symbol encodes the prototype of getspnam_r.
1537 * It is zero if d_getspnam_r is undef, and one of the
1538 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getspnam_r
1539 * is defined.
a845a0d4 1540 */
08c92000
MB
1541#$d_getspnam_r HAS_GETSPNAM_R /**/
1542#define GETSPNAM_R_PROTO $getspnam_r_proto /**/
a845a0d4 1543
08c92000
MB
1544/* HAS_GMTIME_R:
1545 * This symbol, if defined, indicates that the gmtime_r routine
1546 * is available to gmtime re-entrantly.
1547 */
1548/* GMTIME_R_PROTO:
1549 * This symbol encodes the prototype of gmtime_r.
1550 * It is zero if d_gmtime_r is undef, and one of the
1551 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_gmtime_r
1552 * is defined.
1553 */
1554#$d_gmtime_r HAS_GMTIME_R /**/
1555#define GMTIME_R_PROTO $gmtime_r_proto /**/
1556
b8677e3b
MB
1557/* HAS_GNULIBC:
1558 * This symbol, if defined, indicates to the C program that
1559 * the GNU C library is being used. A better check is to use
1560 * the __GLIBC__ and __GLIBC_MINOR__ symbols supplied with glibc.
a845a0d4 1561 */
b8677e3b
MB
1562#$d_gnulibc HAS_GNULIBC /**/
1563#if defined(HAS_GNULIBC) && !defined(_GNU_SOURCE)
1564# define _GNU_SOURCE
1565#endif
1566
1567/* HAS_ISASCII:
1568 * This manifest constant lets the C program know that isascii
1569 * is available.
a845a0d4 1570 */
b8677e3b
MB
1571#$d_isascii HAS_ISASCII /**/
1572
1573/* HAS_LCHOWN:
1574 * This symbol, if defined, indicates that the lchown routine is
1575 * available to operate on a symbolic link (instead of following the
1576 * link).
a845a0d4 1577 */
b8677e3b 1578#$d_lchown HAS_LCHOWN /**/
a845a0d4 1579
08c92000
MB
1580/* HAS_LOCALTIME_R:
1581 * This symbol, if defined, indicates that the localtime_r routine
1582 * is available to localtime re-entrantly.
1583 */
f025e94b
MB
1584/* LOCALTIME_R_NEEDS_TZSET:
1585 * Many libc's localtime_r implementations do not call tzset,
1586 * making them differ from localtime(), and making timezone
47d847ba 1587 * changes using \$ENV{TZ} without explicitly calling tzset
f025e94b
MB
1588 * impossible. This symbol makes us call tzset before localtime_r
1589 */
8572b25d
BH
1590#$d_localtime_r_needs_tzset LOCALTIME_R_NEEDS_TZSET /**/
1591#ifdef LOCALTIME_R_NEEDS_TZSET
1592#define L_R_TZSET tzset(),
1593#else
1594#define L_R_TZSET
1595#endif
1596
08c92000
MB
1597/* LOCALTIME_R_PROTO:
1598 * This symbol encodes the prototype of localtime_r.
1599 * It is zero if d_localtime_r is undef, and one of the
1600 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_localtime_r
1601 * is defined.
1602 */
1603#$d_localtime_r HAS_LOCALTIME_R /**/
1604#define LOCALTIME_R_PROTO $localtime_r_proto /**/
1605
b8677e3b
MB
1606/* HAS_OPEN3:
1607 * This manifest constant lets the C program know that the three
1608 * argument form of open(2) is available.
08c92000 1609 */
b8677e3b 1610#$d_open3 HAS_OPEN3 /**/
08c92000 1611
b8677e3b
MB
1612/* OLD_PTHREAD_CREATE_JOINABLE:
1613 * This symbol, if defined, indicates how to create pthread
1614 * in joinable (aka undetached) state. NOTE: not defined
1615 * if pthread.h already has defined PTHREAD_CREATE_JOINABLE
1616 * (the new version of the constant).
1617 * If defined, known values are PTHREAD_CREATE_UNDETACHED
1618 * and __UNDETACHED.
a845a0d4 1619 */
08c92000 1620#$d_old_pthread_create_joinable OLD_PTHREAD_CREATE_JOINABLE $old_pthread_create_joinable /**/
a845a0d4 1621
eaf812ae
MB
1622/* HAS_PTHREAD_ATFORK:
1623 * This symbol, if defined, indicates that the pthread_atfork routine
1624 * is available to setup fork handlers.
1625 */
1626#$d_pthread_atfork HAS_PTHREAD_ATFORK /**/
1627
08c92000 1628/* HAS_PTHREAD_YIELD:
c0bacbef 1629 * This symbol, if defined, indicates that the pthread_yield
08c92000
MB
1630 * routine is available to yield the execution of the current
1631 * thread. sched_yield is preferable to pthread_yield.
a845a0d4 1632 */
08c92000
MB
1633/* SCHED_YIELD:
1634 * This symbol defines the way to yield the execution of
1635 * the current thread. Known ways are sched_yield,
1636 * pthread_yield, and pthread_yield with NULL.
a845a0d4 1637 */
08c92000
MB
1638/* HAS_SCHED_YIELD:
1639 * This symbol, if defined, indicates that the sched_yield
1640 * routine is available to yield the execution of the current
1641 * thread. sched_yield is preferable to pthread_yield.
1642 */
1643#$d_pthread_yield HAS_PTHREAD_YIELD /**/
1644#define SCHED_YIELD $sched_yield /**/
1645#$d_sched_yield HAS_SCHED_YIELD /**/
a845a0d4 1646
08c92000
MB
1647/* HAS_RANDOM_R:
1648 * This symbol, if defined, indicates that the random_r routine
1649 * is available to random re-entrantly.
a845a0d4 1650 */
08c92000
MB
1651/* RANDOM_R_PROTO:
1652 * This symbol encodes the prototype of random_r.
1653 * It is zero if d_random_r is undef, and one of the
1654 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_random_r
1655 * is defined.
a845a0d4 1656 */
08c92000
MB
1657#$d_random_r HAS_RANDOM_R /**/
1658#define RANDOM_R_PROTO $random_r_proto /**/
a845a0d4 1659
eaf812ae
MB
1660/* HAS_READDIR64_R:
1661 * This symbol, if defined, indicates that the readdir64_r routine
1662 * is available to readdir64 re-entrantly.
1663 */
1664/* READDIR64_R_PROTO:
1665 * This symbol encodes the prototype of readdir64_r.
1666 * It is zero if d_readdir64_r is undef, and one of the
1667 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_readdir64_r
1668 * is defined.
1669 */
1670#$d_readdir64_r HAS_READDIR64_R /**/
1671#define READDIR64_R_PROTO $readdir64_r_proto /**/
1672
08c92000
MB
1673/* HAS_READDIR_R:
1674 * This symbol, if defined, indicates that the readdir_r routine
1675 * is available to readdir re-entrantly.
a845a0d4 1676 */
08c92000
MB
1677/* READDIR_R_PROTO:
1678 * This symbol encodes the prototype of readdir_r.
1679 * It is zero if d_readdir_r is undef, and one of the
1680 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_readdir_r
1681 * is defined.
1682 */
1683#$d_readdir_r HAS_READDIR_R /**/
1684#define READDIR_R_PROTO $readdir_r_proto /**/
a845a0d4 1685
b8677e3b
MB
1686/* HAS_SAFE_BCOPY:
1687 * This symbol, if defined, indicates that the bcopy routine is available
1688 * to copy potentially overlapping memory blocks. Normally, you should
1689 * probably use memmove() or memcpy(). If neither is defined, roll your
1690 * own version.
08c92000 1691 */
b8677e3b 1692#$d_safebcpy HAS_SAFE_BCOPY /**/
08c92000 1693
b8677e3b
MB
1694/* HAS_SAFE_MEMCPY:
1695 * This symbol, if defined, indicates that the memcpy routine is available
1696 * to copy potentially overlapping memory blocks. If you need to
1697 * copy overlapping memory blocks, you should check HAS_MEMMOVE and
1698 * use memmove() instead, if available.
08c92000 1699 */
b8677e3b
MB
1700#$d_safemcpy HAS_SAFE_MEMCPY /**/
1701
1702/* HAS_SANE_MEMCMP:
1703 * This symbol, if defined, indicates that the memcmp routine is available
1704 * and can be used to compare relative magnitudes of chars with their high
1705 * bits set. If it is not defined, roll your own version.
1706 */
1707#$d_sanemcmp HAS_SANE_MEMCMP /**/
08c92000
MB
1708
1709/* HAS_SETGRENT_R:
1710 * This symbol, if defined, indicates that the setgrent_r routine
1711 * is available to setgrent re-entrantly.
1712 */
1713/* SETGRENT_R_PROTO:
1714 * This symbol encodes the prototype of setgrent_r.
1715 * It is zero if d_setgrent_r is undef, and one of the
1716 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setgrent_r
1717 * is defined.
1718 */
1719#$d_setgrent_r HAS_SETGRENT_R /**/
1720#define SETGRENT_R_PROTO $setgrent_r_proto /**/
1721
eaf812ae
MB
1722/* HAS_SETHOSTENT_R:
1723 * This symbol, if defined, indicates that the sethostent_r routine
1724 * is available to sethostent re-entrantly.
1725 */
1726/* SETHOSTENT_R_PROTO:
1727 * This symbol encodes the prototype of sethostent_r.
1728 * It is zero if d_sethostent_r is undef, and one of the
1729 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_sethostent_r
1730 * is defined.
1731 */
1732#$d_sethostent_r HAS_SETHOSTENT_R /**/
1733#define SETHOSTENT_R_PROTO $sethostent_r_proto /**/
1734
eaf812ae
MB
1735/* HAS_SETLOCALE_R:
1736 * This symbol, if defined, indicates that the setlocale_r routine
1737 * is available to setlocale re-entrantly.
1738 */
1739/* SETLOCALE_R_PROTO:
1740 * This symbol encodes the prototype of setlocale_r.
1741 * It is zero if d_setlocale_r is undef, and one of the
1742 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setlocale_r
1743 * is defined.
1744 */
1745#$d_setlocale_r HAS_SETLOCALE_R /**/
1746#define SETLOCALE_R_PROTO $setlocale_r_proto /**/
1747
eaf812ae
MB
1748/* HAS_SETNETENT_R:
1749 * This symbol, if defined, indicates that the setnetent_r routine
1750 * is available to setnetent re-entrantly.
1751 */
1752/* SETNETENT_R_PROTO:
1753 * This symbol encodes the prototype of setnetent_r.
1754 * It is zero if d_setnetent_r is undef, and one of the
1755 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setnetent_r
1756 * is defined.
1757 */
1758#$d_setnetent_r HAS_SETNETENT_R /**/
1759#define SETNETENT_R_PROTO $setnetent_r_proto /**/
1760
eaf812ae
MB
1761/* HAS_SETPROTOENT_R:
1762 * This symbol, if defined, indicates that the setprotoent_r routine
1763 * is available to setprotoent re-entrantly.
1764 */
1765/* SETPROTOENT_R_PROTO:
1766 * This symbol encodes the prototype of setprotoent_r.
1767 * It is zero if d_setprotoent_r is undef, and one of the
1768 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setprotoent_r
1769 * is defined.
1770 */
1771#$d_setprotoent_r HAS_SETPROTOENT_R /**/
1772#define SETPROTOENT_R_PROTO $setprotoent_r_proto /**/
1773
08c92000
MB
1774/* HAS_SETPWENT_R:
1775 * This symbol, if defined, indicates that the setpwent_r routine
1776 * is available to setpwent re-entrantly.
1777 */
1778/* SETPWENT_R_PROTO:
1779 * This symbol encodes the prototype of setpwent_r.
1780 * It is zero if d_setpwent_r is undef, and one of the
1781 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setpwent_r
1782 * is defined.
1783 */
1784#$d_setpwent_r HAS_SETPWENT_R /**/
1785#define SETPWENT_R_PROTO $setpwent_r_proto /**/
1786
eaf812ae
MB
1787/* HAS_SETSERVENT_R:
1788 * This symbol, if defined, indicates that the setservent_r routine
1789 * is available to setservent re-entrantly.
1790 */
1791/* SETSERVENT_R_PROTO:
1792 * This symbol encodes the prototype of setservent_r.
1793 * It is zero if d_setservent_r is undef, and one of the
1794 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setservent_r
1795 * is defined.
1796 */
1797#$d_setservent_r HAS_SETSERVENT_R /**/
1798#define SETSERVENT_R_PROTO $setservent_r_proto /**/
1799
b8677e3b
MB
1800/* HAS_SIGACTION:
1801 * This symbol, if defined, indicates that Vr4's sigaction() routine
1802 * is available.
eaf812ae 1803 */
b8677e3b 1804#$d_sigaction HAS_SIGACTION /**/
eaf812ae 1805
b8677e3b
MB
1806/* HAS_SIGSETJMP:
1807 * This variable indicates to the C program that the sigsetjmp()
1808 * routine is available to save the calling process's registers
1809 * and stack environment for later use by siglongjmp(), and
1810 * to optionally save the process's signal mask. See
1811 * Sigjmp_buf, Sigsetjmp, and Siglongjmp.
10bc17b6 1812 */
b8677e3b
MB
1813/* Sigjmp_buf:
1814 * This is the buffer type to be used with Sigsetjmp and Siglongjmp.
c7aff470 1815 */
b8677e3b
MB
1816/* Sigsetjmp:
1817 * This macro is used in the same way as sigsetjmp(), but will invoke
1818 * traditional setjmp() if sigsetjmp isn't available.
1819 * See HAS_SIGSETJMP.
b363b713 1820 */
b8677e3b
MB
1821/* Siglongjmp:
1822 * This macro is used in the same way as siglongjmp(), but will invoke
1823 * traditional longjmp() if siglongjmp isn't available.
1824 * See HAS_SIGSETJMP.
a7fea17f 1825 */
b8677e3b
MB
1826#$d_sigsetjmp HAS_SIGSETJMP /**/
1827#ifdef HAS_SIGSETJMP
1828#define Sigjmp_buf sigjmp_buf
1829#define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask))
1830#define Siglongjmp(buf,retval) siglongjmp((buf),(retval))
1831#else
1832#define Sigjmp_buf jmp_buf
1833#define Sigsetjmp(buf,save_mask) setjmp((buf))
1834#define Siglongjmp(buf,retval) longjmp((buf),(retval))
1835#endif
44b94491 1836
08c92000
MB
1837/* HAS_SRAND48_R:
1838 * This symbol, if defined, indicates that the srand48_r routine
1839 * is available to srand48 re-entrantly.
1840 */
1841/* SRAND48_R_PROTO:
1842 * This symbol encodes the prototype of srand48_r.
1843 * It is zero if d_srand48_r is undef, and one of the
1844 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_srand48_r
1845 * is defined.
1846 */
1847#$d_srand48_r HAS_SRAND48_R /**/
1848#define SRAND48_R_PROTO $srand48_r_proto /**/
1849
1850/* HAS_SRANDOM_R:
1851 * This symbol, if defined, indicates that the srandom_r routine
1852 * is available to srandom re-entrantly.
1853 */
1854/* SRANDOM_R_PROTO:
1855 * This symbol encodes the prototype of srandom_r.
1856 * It is zero if d_srandom_r is undef, and one of the
1857 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_srandom_r
1858 * is defined.
1859 */
1860#$d_srandom_r HAS_SRANDOM_R /**/
1861#define SRANDOM_R_PROTO $srandom_r_proto /**/
1862
b8677e3b
MB
1863/* USE_STDIO_PTR:
1864 * This symbol is defined if the _ptr and _cnt fields (or similar)
1865 * of the stdio FILE structure can be used to access the stdio buffer
1866 * for a file handle. If this is defined, then the FILE_ptr(fp)
1867 * and FILE_cnt(fp) macros will also be defined and should be used
1868 * to access these fields.
a33c94aa 1869 */
b8677e3b
MB
1870/* FILE_ptr:
1871 * This macro is used to access the _ptr field (or equivalent) of the
1872 * FILE structure pointed to by its argument. This macro will always be
1873 * defined if USE_STDIO_PTR is defined.
43dddb59 1874 */
b8677e3b
MB
1875/* STDIO_PTR_LVALUE:
1876 * This symbol is defined if the FILE_ptr macro can be used as an
1877 * lvalue.
08c92000 1878 */
b8677e3b
MB
1879/* FILE_cnt:
1880 * This macro is used to access the _cnt field (or equivalent) of the
1881 * FILE structure pointed to by its argument. This macro will always be
1882 * defined if USE_STDIO_PTR is defined.
08c92000 1883 */
b8677e3b
MB
1884/* STDIO_CNT_LVALUE:
1885 * This symbol is defined if the FILE_cnt macro can be used as an
1886 * lvalue.
08c92000 1887 */
b8677e3b
MB
1888/* STDIO_PTR_LVAL_SETS_CNT:
1889 * This symbol is defined if using the FILE_ptr macro as an lvalue
1890 * to increase the pointer by n has the side effect of decreasing the
1891 * value of File_cnt(fp) by n.
1892 */
1893/* STDIO_PTR_LVAL_NOCHANGE_CNT:
1894 * This symbol is defined if using the FILE_ptr macro as an lvalue
1895 * to increase the pointer by n leaves File_cnt(fp) unchanged.
1896 */
1897#$d_stdstdio USE_STDIO_PTR /**/
1898#ifdef USE_STDIO_PTR
1899#define FILE_ptr(fp) $stdio_ptr
1900#$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/
1901#define FILE_cnt(fp) $stdio_cnt
1902#$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/
1903#$d_stdio_ptr_lval_sets_cnt STDIO_PTR_LVAL_SETS_CNT /**/
1904#$d_stdio_ptr_lval_nochange_cnt STDIO_PTR_LVAL_NOCHANGE_CNT /**/
1905#endif
1906
1907/* USE_STDIO_BASE:
1908 * This symbol is defined if the _base field (or similar) of the
1909 * stdio FILE structure can be used to access the stdio buffer for
1910 * a file handle. If this is defined, then the FILE_base(fp) macro
1911 * will also be defined and should be used to access this field.
1912 * Also, the FILE_bufsiz(fp) macro will be defined and should be used
1913 * to determine the number of bytes in the buffer. USE_STDIO_BASE
1914 * will never be defined unless USE_STDIO_PTR is.
1915 */
1916/* FILE_base:
1917 * This macro is used to access the _base field (or equivalent) of the
1918 * FILE structure pointed to by its argument. This macro will always be
1919 * defined if USE_STDIO_BASE is defined.
1920 */
1921/* FILE_bufsiz:
1922 * This macro is used to determine the number of bytes in the I/O
1923 * buffer pointed to by _base field (or equivalent) of the FILE
1924 * structure pointed to its argument. This macro will always be defined
1925 * if USE_STDIO_BASE is defined.
1926 */
1927#$d_stdiobase USE_STDIO_BASE /**/
1928#ifdef USE_STDIO_BASE
1929#define FILE_base(fp) $stdio_base
1930#define FILE_bufsiz(fp) $stdio_bufsiz
1931#endif
08c92000
MB
1932
1933/* HAS_STRERROR_R:
1934 * This symbol, if defined, indicates that the strerror_r routine
1935 * is available to strerror re-entrantly.
1936 */
1937/* STRERROR_R_PROTO:
1938 * This symbol encodes the prototype of strerror_r.
1939 * It is zero if d_strerror_r is undef, and one of the
1940 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_strerror_r
1941 * is defined.
1942 */
1943#$d_strerror_r HAS_STRERROR_R /**/
1944#define STRERROR_R_PROTO $strerror_r_proto /**/
1945
08c92000
MB
1946/* HAS_TMPNAM_R:
1947 * This symbol, if defined, indicates that the tmpnam_r routine
1948 * is available to tmpnam re-entrantly.
1949 */
1950/* TMPNAM_R_PROTO:
1951 * This symbol encodes the prototype of tmpnam_r.
1952 * It is zero if d_tmpnam_r is undef, and one of the
1953 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_tmpnam_r
1954 * is defined.
1955 */
1956#$d_tmpnam_r HAS_TMPNAM_R /**/
1957#define TMPNAM_R_PROTO $tmpnam_r_proto /**/
1958
eaf812ae
MB
1959/* HAS_TTYNAME_R:
1960 * This symbol, if defined, indicates that the ttyname_r routine
1961 * is available to ttyname re-entrantly.
1962 */
1963/* TTYNAME_R_PROTO:
1964 * This symbol encodes the prototype of ttyname_r.
1965 * It is zero if d_ttyname_r is undef, and one of the
1966 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_ttyname_r
1967 * is defined.
1968 */
1969#$d_ttyname_r HAS_TTYNAME_R /**/
1970#define TTYNAME_R_PROTO $ttyname_r_proto /**/
1971
b8677e3b
MB
1972/* HAS_VPRINTF:
1973 * This symbol, if defined, indicates that the vprintf routine is available
1974 * to printf with a pointer to an argument list. If unavailable, you
1975 * may need to write your own, probably in terms of _doprnt().
c5f05a91 1976 */
b8677e3b
MB
1977/* USE_CHAR_VSPRINTF:
1978 * This symbol is defined if this system has vsprintf() returning type
1979 * (char*). The trend seems to be to declare it as "int vsprintf()". It
1980 * is up to the package author to declare vsprintf correctly based on the
1981 * symbol.
233e16ce 1982 */
b8677e3b
MB
1983#$d_vprintf HAS_VPRINTF /**/
1984#$d_charvspr USE_CHAR_VSPRINTF /**/
233e16ce 1985
b8677e3b
MB
1986/* DOUBLESIZE:
1987 * This symbol contains the size of a double, so that the C preprocessor
1988 * can make decisions based on it.
a3540c92 1989 */
b8677e3b 1990#define DOUBLESIZE $doublesize /**/
a3540c92 1991
b8677e3b
MB
1992/* I_MACH_CTHREADS:
1993 * This symbol, if defined, indicates to the C program that it should
1994 * include <mach/cthreads.h>.
43dddb59 1995 */
b8677e3b 1996#$i_machcthr I_MACH_CTHREADS /**/
43dddb59 1997
b8677e3b
MB
1998/* I_PTHREAD:
1999 * This symbol, if defined, indicates to the C program that it should
2000 * include <pthread.h>.
08c92000 2001 */
b8677e3b 2002#$i_pthread I_PTHREAD /**/
08c92000 2003
b8677e3b
MB
2004/* I_SYS_ACCESS:
2005 * This symbol, if defined, indicates to the C program that it should
2006 * include <sys/access.h>.
08c92000 2007 */
b8677e3b 2008#$i_sysaccess I_SYS_ACCESS /**/
08c92000 2009
b8677e3b
MB
2010/* I_SYS_SECURITY:
2011 * This symbol, if defined, indicates to the C program that it should
2012 * include <sys/security.h>.
08c92000 2013 */
b8677e3b 2014#$i_syssecrt I_SYS_SECURITY /**/
08c92000 2015
b8677e3b
MB
2016/* I_TIME:
2017 * This symbol, if defined, indicates to the C program that it should
2018 * include <time.h>.
08c92000 2019 */
b8677e3b
MB
2020/* I_SYS_TIME:
2021 * This symbol, if defined, indicates to the C program that it should
2022 * include <sys/time.h>.
08c92000 2023 */
b8677e3b 2024/* I_SYS_TIME_KERNEL:
43dddb59 2025 * This symbol, if defined, indicates to the C program that it should
b8677e3b 2026 * include <sys/time.h> with KERNEL defined.
43dddb59 2027 */
b8677e3b
MB
2028/* HAS_TM_TM_ZONE:
2029 * This symbol, if defined, indicates to the C program that
2030 * the struct tm has a tm_zone field.
43dddb59 2031 */
b8677e3b
MB
2032/* HAS_TM_TM_GMTOFF:
2033 * This symbol, if defined, indicates to the C program that
2034 * the struct tm has a tm_gmtoff field.
43dddb59 2035 */
b8677e3b
MB
2036#$i_time I_TIME /**/
2037#$i_systime I_SYS_TIME /**/
2038#$i_systimek I_SYS_TIME_KERNEL /**/
2039#$d_tm_tm_zone HAS_TM_TM_ZONE /**/
2040#$d_tm_tm_gmtoff HAS_TM_TM_GMTOFF /**/
43dddb59 2041
b8677e3b
MB
2042/* PERL_INC_VERSION_LIST:
2043 * This variable specifies the list of subdirectories in over
2044 * which perl.c:incpush() and lib/lib.pm will automatically
2045 * search when adding directories to @INC, in a format suitable
2046 * for a C initialization string. See the inc_version_list entry
2047 * in Porting/Glossary for more details.
08c92000 2048 */
b8677e3b 2049#$d_inc_version_list PERL_INC_VERSION_LIST $inc_version_list_init /**/
08c92000 2050
b8677e3b
MB
2051/* INSTALL_USR_BIN_PERL:
2052 * This symbol, if defined, indicates that Perl is to be installed
2053 * also as /usr/bin/perl.
08c92000 2054 */
b8677e3b 2055#$installusrbinperl INSTALL_USR_BIN_PERL /**/
08c92000 2056
b8677e3b
MB
2057/* VAL_O_NONBLOCK:
2058 * This symbol is to be used during open() or fcntl(F_SETFL) to turn on
2059 * non-blocking I/O for the file descriptor. Note that there is no way
2060 * back, i.e. you cannot turn it blocking again this way. If you wish to
2061 * alternatively switch between blocking and non-blocking, use the
2062 * ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
eaf812ae 2063 */
b8677e3b
MB
2064/* VAL_EAGAIN:
2065 * This symbol holds the errno error code set by read() when no data was
2066 * present on the non-blocking file descriptor.
1d8eaf8c 2067 */
b8677e3b
MB
2068/* RD_NODATA:
2069 * This symbol holds the return code from read() when no data is present
2070 * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
2071 * not defined, then you can't distinguish between no data and EOF by
2072 * issuing a read(). You'll have to find another way to tell for sure!
e74475c7 2073 */
b8677e3b
MB
2074/* EOF_NONBLOCK:
2075 * This symbol, if defined, indicates to the C program that a read() on
2076 * a non-blocking file descriptor will return 0 on EOF, and not the value
2077 * held in RD_NODATA (-1 usually, in that case!).
e74475c7 2078 */
b8677e3b
MB
2079#define VAL_O_NONBLOCK $o_nonblock
2080#define VAL_EAGAIN $eagain
2081#define RD_NODATA $rd_nodata
2082#$d_eofnblk EOF_NONBLOCK
eaf812ae 2083
b8677e3b
MB
2084/* PERL_OTHERLIBDIRS:
2085 * This variable contains a colon-separated set of paths for the perl
2086 * binary to search for additional library files or modules.
2087 * These directories will be tacked to the end of @INC.
2088 * Perl will automatically search below each path for version-
2089 * and architecture-specific directories. See PERL_INC_VERSION_LIST
2090 * for more details.
08c92000 2091 */
b8677e3b 2092#$d_perl_otherlibdirs PERL_OTHERLIBDIRS "$otherlibdirs" /**/
08c92000 2093
b8677e3b
MB
2094/* PRIVLIB:
2095 * This symbol contains the name of the private library for this package.
2096 * The library is private in the sense that it needn't be in anyone's
2097 * execution path, but it should be accessible by the world. The program
2098 * should be prepared to do ~ expansion.
c0bacbef 2099 */
b8677e3b
MB
2100/* PRIVLIB_EXP:
2101 * This symbol contains the ~name expanded version of PRIVLIB, to be used
2102 * in programs that are not prepared to deal with ~ expansion at run-time.
2103 */
2104#define PRIVLIB "$privlib" /**/
2105#define PRIVLIB_EXP "$privlibexp" /**/
c0bacbef 2106
b8677e3b
MB
2107/* PTRSIZE:
2108 * This symbol contains the size of a pointer, so that the C preprocessor
2109 * can make decisions based on it. It will be sizeof(void *) if
2110 * the compiler supports (void *); otherwise it will be
2111 * sizeof(char *).
08c92000 2112 */
b8677e3b 2113#define PTRSIZE $ptrsize /**/
08c92000 2114
b8677e3b
MB
2115/* Drand01:
2116 * This macro is to be used to generate uniformly distributed
2117 * random numbers over the range [0., 1.[. You may have to supply
2118 * an 'extern double drand48();' in your program since SunOS 4.1.3
2119 * doesn't provide you with anything relevant in its headers.
2120 * See HAS_DRAND48_PROTO.
a33c94aa 2121 */
b8677e3b
MB
2122/* Rand_seed_t:
2123 * This symbol defines the type of the argument of the
2124 * random seed function.
49dabb45 2125 */
b8677e3b
MB
2126/* seedDrand01:
2127 * This symbol defines the macro to be used in seeding the
2128 * random number generator (see Drand01).
3813c136 2129 */
b8677e3b
MB
2130/* RANDBITS:
2131 * This symbol indicates how many bits are produced by the
2132 * function used to generate normalized random numbers.
2133 * Values include 15, 16, 31, and 48.
1acc7ade 2134 */
b8677e3b
MB
2135#define Drand01() $drand01 /**/
2136#define Rand_seed_t $randseedtype /**/
2137#define seedDrand01(x) $seedfunc((Rand_seed_t)x) /**/
2138#define RANDBITS $randbits /**/
2139
2140/* SITEARCH:
2141 * This symbol contains the name of the private library for this package.
2142 * The library is private in the sense that it needn't be in anyone's
2143 * execution path, but it should be accessible by the world. The program
2144 * should be prepared to do ~ expansion.
2145 * The standard distribution will put nothing in this directory.
2146 * After perl has been installed, users may install their own local
2147 * architecture-dependent modules in this directory with
2148 * MakeMaker Makefile.PL
2149 * or equivalent. See INSTALL for details.
a33c94aa 2150 */
b8677e3b
MB
2151/* SITEARCH_EXP:
2152 * This symbol contains the ~name expanded version of SITEARCH, to be used
2153 * in programs that are not prepared to deal with ~ expansion at run-time.
10bc17b6 2154 */
b8677e3b
MB
2155#$d_sitearch SITEARCH "$sitearch" /**/
2156#$d_sitearch SITEARCH_EXP "$sitearchexp" /**/
2157
2158/* SITELIB:
2159 * This symbol contains the name of the private library for this package.
2160 * The library is private in the sense that it needn't be in anyone's
2161 * execution path, but it should be accessible by the world. The program
2162 * should be prepared to do ~ expansion.
2163 * The standard distribution will put nothing in this directory.
2164 * After perl has been installed, users may install their own local
2165 * architecture-independent modules in this directory with
2166 * MakeMaker Makefile.PL
2167 * or equivalent. See INSTALL for details.
10bc17b6 2168 */
b8677e3b
MB
2169/* SITELIB_EXP:
2170 * This symbol contains the ~name expanded version of SITELIB, to be used
2171 * in programs that are not prepared to deal with ~ expansion at run-time.
10bc17b6 2172 */
b8677e3b
MB
2173/* SITELIB_STEM:
2174 * This define is SITELIB_EXP with any trailing version-specific component
2175 * removed. The elements in inc_version_list (inc_version_list.U) can
2176 * be tacked onto this variable to generate a list of directories to search.
10bc17b6 2177 */
b8677e3b
MB
2178#define SITELIB "$sitelib" /**/
2179#define SITELIB_EXP "$sitelibexp" /**/
2180#define SITELIB_STEM "$sitelib_stem" /**/
10bc17b6 2181
b8677e3b
MB
2182/* SSize_t:
2183 * This symbol holds the type used by functions that return
2184 * a count of bytes or an error condition. It must be a signed type.
2185 * It is usually ssize_t, but may be long or int, etc.
2186 * It may be necessary to include <sys/types.h> or <unistd.h>
2187 * to get any typedef'ed information.
2188 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
10bc17b6 2189 */
b8677e3b 2190#define SSize_t $ssizetype /* signed count of bytes */
08c92000 2191
b8677e3b
MB
2192/* USE_ITHREADS:
2193 * This symbol, if defined, indicates that Perl should be built to
2194 * use the interpreter-based threading implementation.
a33c94aa 2195 */
b8677e3b
MB
2196/* USE_5005THREADS:
2197 * This symbol, if defined, indicates that Perl should be built to
2198 * use the 5.005-based threading implementation.
2199 * Only valid up to 5.8.x.
4e0554ec 2200 */
b8677e3b
MB
2201/* OLD_PTHREADS_API:
2202 * This symbol, if defined, indicates that Perl should
2203 * be built to use the old draft POSIX threads API.
eaf812ae 2204 */
b8677e3b
MB
2205/* USE_REENTRANT_API:
2206 * This symbol, if defined, indicates that Perl should
2207 * try to use the various _r versions of library functions.
2208 * This is extremely experimental.
eaf812ae 2209 */
b8677e3b
MB
2210#$use5005threads USE_5005THREADS /**/
2211#$useithreads USE_ITHREADS /**/
2212#if defined(USE_5005THREADS) && !defined(USE_ITHREADS)
2213#define USE_THREADS /* until src is revised*/
2214#endif
2215#$d_oldpthreads OLD_PTHREADS_API /**/
2216#$usereentrant USE_REENTRANT_API /**/
eaf812ae 2217
b8677e3b
MB
2218/* PERL_VENDORARCH:
2219 * If defined, this symbol contains the name of a private library.
2220 * The library is private in the sense that it needn't be in anyone's
2221 * execution path, but it should be accessible by the world.
2222 * It may have a ~ on the front.
2223 * The standard distribution will put nothing in this directory.
2224 * Vendors who distribute perl may wish to place their own
2225 * architecture-dependent modules and extensions in this directory with
2226 * MakeMaker Makefile.PL INSTALLDIRS=vendor
2227 * or equivalent. See INSTALL for details.
36adc09b 2228 */
b8677e3b
MB
2229/* PERL_VENDORARCH_EXP:
2230 * This symbol contains the ~name expanded version of PERL_VENDORARCH, to be used
2231 * in programs that are not prepared to deal with ~ expansion at run-time.
a33c94aa 2232 */
b8677e3b
MB
2233#$d_vendorarch PERL_VENDORARCH "$vendorarch" /**/
2234#$d_vendorarch PERL_VENDORARCH_EXP "$vendorarchexp" /**/
a33c94aa 2235
b8677e3b
MB
2236/* PERL_VENDORLIB_EXP:
2237 * This symbol contains the ~name expanded version of VENDORLIB, to be used
2238 * in programs that are not prepared to deal with ~ expansion at run-time.
15b61c98 2239 */
b8677e3b
MB
2240/* PERL_VENDORLIB_STEM:
2241 * This define is PERL_VENDORLIB_EXP with any trailing version-specific component
2242 * removed. The elements in inc_version_list (inc_version_list.U) can
2243 * be tacked onto this variable to generate a list of directories to search.
a33c94aa 2244 */
b8677e3b
MB
2245#$d_vendorlib PERL_VENDORLIB_EXP "$vendorlibexp" /**/
2246#$d_vendorlib PERL_VENDORLIB_STEM "$vendorlib_stem" /**/
a33c94aa 2247
b8677e3b
MB
2248/* HAS_STATIC_INLINE:
2249 * This symbol, if defined, indicates that the C compiler supports
2250 * C99-style static inline. That is, the function can't be called
2251 * from another translation unit.
3813c136 2252 */
b8677e3b
MB
2253/* PERL_STATIC_INLINE:
2254 * This symbol gives the best-guess incantation to use for static
2255 * inline functions. If HAS_STATIC_INLINE is defined, this will
2256 * give C99-style inline. If HAS_STATIC_INLINE is not defined,
2257 * this will give a plain 'static'. It will always be defined
2258 * to something that gives static linkage.
2259 * Possibilities include
2260 * static inline (c99)
2261 * static __inline__ (gcc -ansi)
2262 * static __inline (MSVC)
2263 * static _inline (older MSVC)
2264 * static (c89 compilers)
08c92000 2265 */
b8677e3b
MB
2266#$d_static_inline HAS_STATIC_INLINE /**/
2267#define PERL_STATIC_INLINE $perl_static_inline /**/
a845a0d4 2268
b8677e3b
MB
2269/* EBCDIC:
2270 * This symbol, if defined, indicates that this system uses
2271 * EBCDIC encoding.
a33c94aa 2272 */
b8677e3b 2273#$ebcdic EBCDIC /**/
a33c94aa 2274
b8677e3b
MB
2275/* OSNAME:
2276 * This symbol contains the name of the operating system, as determined
2277 * by Configure. You shouldn't rely on it too much; the specific
2278 * feature tests from Configure are generally more reliable.
10bc17b6 2279 */
b8677e3b
MB
2280/* OSVERS:
2281 * This symbol contains the version of the operating system, as determined
2282 * by Configure. You shouldn't rely on it too much; the specific
2283 * feature tests from Configure are generally more reliable.
2284 */
2285#define OSNAME "$osname" /**/
2286#define OSVERS "$osvers" /**/
a845a0d4 2287
b8677e3b
MB
2288/* CAT2:
2289 * This macro concatenates 2 tokens together.
44b94491 2290 */
b8677e3b
MB
2291/* STRINGIFY:
2292 * This macro surrounds its token with double quotes.
2293 */
2294#if $cpp_stuff == 1
2295#define CAT2(a,b) a/**/b
2296#define STRINGIFY(a) "a"
2297#endif
2298#if $cpp_stuff == 42
2299#define PeRl_CaTiFy(a, b) a ## b
2300#define PeRl_StGiFy(a) #a
2301#define CAT2(a,b) PeRl_CaTiFy(a,b)
2302#define StGiFy(a) PeRl_StGiFy(a)
2303#define STRINGIFY(a) PeRl_StGiFy(a)
2304#endif
2305#if $cpp_stuff != 1 && $cpp_stuff != 42
2306#include "Bletch: How does this C preprocessor concatenate tokens?"
2307#endif
78a7c709 2308
b8677e3b
MB
2309/* CPPSTDIN:
2310 * This symbol contains the first part of the string which will invoke
2311 * the C preprocessor on the standard input and produce to standard
2312 * output. Typical value of "cc -E" or "/lib/cpp", but it can also
2313 * call a wrapper. See CPPRUN.
44b94491 2314 */
b8677e3b
MB
2315/* CPPMINUS:
2316 * This symbol contains the second part of the string which will invoke
2317 * the C preprocessor on the standard input and produce to standard
2318 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
2319 * to specify standard input, otherwise the value is "".
44b94491 2320 */
b8677e3b
MB
2321/* CPPRUN:
2322 * This symbol contains the string which will invoke a C preprocessor on
2323 * the standard input and produce to standard output. It needs to end
2324 * with CPPLAST, after all other preprocessor flags have been specified.
2325 * The main difference with CPPSTDIN is that this program will never be a
2326 * pointer to a shell wrapper, i.e. it will be empty if no preprocessor is
2327 * available directly to the user. Note that it may well be different from
2328 * the preprocessor used to compile the C program.
78a7c709 2329 */
b8677e3b
MB
2330/* CPPLAST:
2331 * This symbol is intended to be used along with CPPRUN in the same manner
2332 * symbol CPPMINUS is used with CPPSTDIN. It contains either "-" or "".
a33c94aa 2333 */
b8677e3b
MB
2334#define CPPSTDIN "$cppstdin"
2335#define CPPMINUS "$cppminus"
2336#define CPPRUN "$cpprun"
2337#define CPPLAST "$cpplast"
a33c94aa 2338
b8677e3b
MB
2339/* HAS_ACCESS:
2340 * This manifest constant lets the C program know that the access()
2341 * system call is available to check for accessibility using real UID/GID.
2342 * (always present on UNIX.)
a33c94aa 2343 */
b8677e3b 2344#$d_access HAS_ACCESS /**/
a33c94aa 2345
b8677e3b
MB
2346/* HASATTRIBUTE_FORMAT:
2347 * Can we handle GCC attribute for checking printf-style formats
253687a9 2348 */
b8677e3b
MB
2349/* PRINTF_FORMAT_NULL_OK:
2350 * Allows __printf__ format to be null when checking printf-style
a33c94aa 2351 */
b8677e3b
MB
2352/* HASATTRIBUTE_MALLOC:
2353 * Can we handle GCC attribute for malloc-style functions.
10bc17b6 2354 */
b8677e3b
MB
2355/* HASATTRIBUTE_NONNULL:
2356 * Can we handle GCC attribute for nonnull function parms.
2357 */
2358/* HASATTRIBUTE_NORETURN:
2359 * Can we handle GCC attribute for functions that do not return
2360 */
2361/* HASATTRIBUTE_PURE:
2362 * Can we handle GCC attribute for pure functions
2363 */
2364/* HASATTRIBUTE_UNUSED:
2365 * Can we handle GCC attribute for unused variables and arguments
2366 */
2367/* HASATTRIBUTE_DEPRECATED:
2368 * Can we handle GCC attribute for marking deprecated APIs
2369 */
2370/* HASATTRIBUTE_WARN_UNUSED_RESULT:
2371 * Can we handle GCC attribute for warning on unused results
2372 */
2373#$d_attribute_deprecated HASATTRIBUTE_DEPRECATED /**/
2374#$d_attribute_format HASATTRIBUTE_FORMAT /**/
2375#$d_printf_format_null PRINTF_FORMAT_NULL_OK /**/
2376#$d_attribute_noreturn HASATTRIBUTE_NORETURN /**/
2377#$d_attribute_malloc HASATTRIBUTE_MALLOC /**/
2378#$d_attribute_nonnull HASATTRIBUTE_NONNULL /**/
2379#$d_attribute_pure HASATTRIBUTE_PURE /**/
2380#$d_attribute_unused HASATTRIBUTE_UNUSED /**/
2381#$d_attribute_warn_unused_result HASATTRIBUTE_WARN_UNUSED_RESULT /**/
ed140128 2382
b8677e3b
MB
2383/* HASCONST:
2384 * This symbol, if defined, indicates that this C compiler knows about
2385 * the const type. There is no need to actually test for that symbol
2386 * within your programs. The mere use of the "const" keyword will
2387 * trigger the necessary tests.
10bc17b6 2388 */
b8677e3b
MB
2389#$d_const HASCONST /**/
2390#ifndef HASCONST
2391#define const
2392#endif
2393
2394/* HAS_CSH:
2395 * This symbol, if defined, indicates that the C-shell exists.
a33c94aa 2396 */
b8677e3b
MB
2397/* CSH:
2398 * This symbol, if defined, contains the full pathname of csh.
2399 */
2400#$d_csh HAS_CSH /**/
2401#ifdef HAS_CSH
2402#define CSH "$full_csh" /**/
ed140128
AD
2403#endif
2404
b8677e3b
MB
2405/* SETUID_SCRIPTS_ARE_SECURE_NOW:
2406 * This symbol, if defined, indicates that the bug that prevents
2407 * setuid scripts from being secure is not present in this kernel.
dfe9444c 2408 */
b8677e3b
MB
2409/* DOSUID:
2410 * This symbol, if defined, indicates that the C program should
2411 * check the script that it is executing for setuid/setgid bits, and
2412 * attempt to emulate setuid/setgid on systems that have disabled
2413 * setuid #! scripts because the kernel can't do it securely.
2414 * It is up to the package designer to make sure that this emulation
2415 * is done securely. Among other things, it should do an fstat on
2416 * the script it just opened to make sure it really is a setuid/setgid
2417 * script, it should make sure the arguments passed correspond exactly
2418 * to the argument on the #! line, and it should not trust any
2419 * subprocesses to which it must pass the filename rather than the
2420 * file descriptor of the script to be executed.
2421 */
2422#$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/
2423#$d_dosuid DOSUID /**/
ed140128 2424
b8677e3b
MB
2425/* HAS_ENDGRENT:
2426 * This symbol, if defined, indicates that the getgrent routine is
2427 * available for finalizing sequential access of the group database.
36adc09b 2428 */
b8677e3b 2429#$d_endgrent HAS_ENDGRENT /**/
ed140128 2430
b8677e3b
MB
2431/* HAS_ENDHOSTENT:
2432 * This symbol, if defined, indicates that the endhostent() routine is
2433 * available to close whatever was being used for host queries.
ed140128 2434 */
b8677e3b
MB
2435#$d_endhent HAS_ENDHOSTENT /**/
2436
2437/* HAS_ENDNETENT:
2438 * This symbol, if defined, indicates that the endnetent() routine is
2439 * available to close whatever was being used for network queries.
ed140128 2440 */
b8677e3b 2441#$d_endnent HAS_ENDNETENT /**/
ed140128 2442
b8677e3b
MB
2443/* HAS_ENDPROTOENT:
2444 * This symbol, if defined, indicates that the endprotoent() routine is
2445 * available to close whatever was being used for protocol queries.
ed140128 2446 */
b8677e3b
MB
2447#$d_endpent HAS_ENDPROTOENT /**/
2448
2449/* HAS_ENDPWENT:
2450 * This symbol, if defined, indicates that the getgrent routine is
2451 * available for finalizing sequential access of the passwd database.
ed140128 2452 */
b8677e3b 2453#$d_endpwent HAS_ENDPWENT /**/
ed140128 2454
b8677e3b
MB
2455/* HAS_ENDSERVENT:
2456 * This symbol, if defined, indicates that the endservent() routine is
2457 * available to close whatever was being used for service queries.
ed140128 2458 */
b8677e3b
MB
2459#$d_endsent HAS_ENDSERVENT /**/
2460
2461/* FLEXFILENAMES:
2462 * This symbol, if defined, indicates that the system supports filenames
2463 * longer than 14 characters.
ed140128 2464 */
b8677e3b
MB
2465#$d_flexfnam FLEXFILENAMES /**/
2466
2467/* HAS_GETGRENT:
2468 * This symbol, if defined, indicates that the getgrent routine is
2469 * available for sequential access of the group database.
ed140128 2470 */
b8677e3b 2471#$d_getgrent HAS_GETGRENT /**/
ed140128 2472
b8677e3b
MB
2473/* HAS_GETHOSTBYADDR:
2474 * This symbol, if defined, indicates that the gethostbyaddr() routine is
2475 * available to look up hosts by their IP addresses.
ed140128 2476 */
b8677e3b 2477#$d_gethbyaddr HAS_GETHOSTBYADDR /**/
ed140128 2478
b8677e3b
MB
2479/* HAS_GETHOSTBYNAME:
2480 * This symbol, if defined, indicates that the gethostbyname() routine is
2481 * available to look up host names in some data base or other.
ed140128 2482 */
b8677e3b 2483#$d_gethbyname HAS_GETHOSTBYNAME /**/
ed140128 2484
b8677e3b
MB
2485/* HAS_GETHOSTENT:
2486 * This symbol, if defined, indicates that the gethostent() routine is
2487 * available to look up host names in some data base or another.
ed140128 2488 */
b8677e3b 2489#$d_gethent HAS_GETHOSTENT /**/
ed140128 2490
b8677e3b
MB
2491/* HAS_GETHOSTNAME:
2492 * This symbol, if defined, indicates that the C program may use the
2493 * gethostname() routine to derive the host name. See also HAS_UNAME
2494 * and PHOSTNAME.
73e6e416 2495 */
b8677e3b
MB
2496/* HAS_UNAME:
2497 * This symbol, if defined, indicates that the C program may use the
2498 * uname() routine to derive the host name. See also HAS_GETHOSTNAME
2499 * and PHOSTNAME.
2500 */
2501/* PHOSTNAME:
2502 * This symbol, if defined, indicates the command to feed to the
2503 * popen() routine to derive the host name. See also HAS_GETHOSTNAME
2504 * and HAS_UNAME. Note that the command uses a fully qualified path,
2505 * so that it is safe even if used by a process with super-user
2506 * privileges.
2507 */
2508/* HAS_PHOSTNAME:
2509 * This symbol, if defined, indicates that the C program may use the
2510 * contents of PHOSTNAME as a command to feed to the popen() routine
2511 * to derive the host name.
2512 */
2513#$d_gethname HAS_GETHOSTNAME /**/
2514#$d_uname HAS_UNAME /**/
2515#$d_phostname HAS_PHOSTNAME /**/
2516#ifdef HAS_PHOSTNAME
2517#define PHOSTNAME "$aphostname" /* How to get the host name */
2518#endif
73e6e416 2519
b8677e3b
MB
2520/* HAS_GETNETBYADDR:
2521 * This symbol, if defined, indicates that the getnetbyaddr() routine is
2522 * available to look up networks by their IP addresses.
ed140128 2523 */
b8677e3b 2524#$d_getnbyaddr HAS_GETNETBYADDR /**/
ed140128 2525
b8677e3b
MB
2526/* HAS_GETNETBYNAME:
2527 * This symbol, if defined, indicates that the getnetbyname() routine is
2528 * available to look up networks by their names.
ed140128 2529 */
b8677e3b 2530#$d_getnbyname HAS_GETNETBYNAME /**/
ed140128 2531
b8677e3b
MB
2532/* HAS_GETNETENT:
2533 * This symbol, if defined, indicates that the getnetent() routine is
2534 * available to look up network names in some data base or another.
ed140128 2535 */
b8677e3b 2536#$d_getnent HAS_GETNETENT /**/
ed140128 2537
b8677e3b
MB
2538/* HAS_GETPROTOENT:
2539 * This symbol, if defined, indicates that the getprotoent() routine is
2540 * available to look up protocols in some data base or another.
ed140128 2541 */
b8677e3b 2542#$d_getpent HAS_GETPROTOENT /**/
ed140128 2543
b8677e3b
MB
2544/* HAS_GETPGRP:
2545 * This symbol, if defined, indicates that the getpgrp routine is
2546 * available to get the current process group.
ed140128 2547 */
b8677e3b
MB
2548/* USE_BSD_GETPGRP:
2549 * This symbol, if defined, indicates that getpgrp needs one
2550 * arguments whereas USG one needs none.
ed140128 2551 */
b8677e3b
MB
2552#$d_getpgrp HAS_GETPGRP /**/
2553#$d_bsdgetpgrp USE_BSD_GETPGRP /**/
2554
2555/* HAS_GETPROTOBYNAME:
2556 * This symbol, if defined, indicates that the getprotobyname()
2557 * routine is available to look up protocols by their name.
ed140128 2558 */
b8677e3b
MB
2559/* HAS_GETPROTOBYNUMBER:
2560 * This symbol, if defined, indicates that the getprotobynumber()
2561 * routine is available to look up protocols by their number.
ed140128 2562 */
b8677e3b
MB
2563#$d_getpbyname HAS_GETPROTOBYNAME /**/
2564#$d_getpbynumber HAS_GETPROTOBYNUMBER /**/
ed140128 2565
b8677e3b
MB
2566/* HAS_GETPWENT:
2567 * This symbol, if defined, indicates that the getpwent routine is
2568 * available for sequential access of the passwd database.
2569 * If this is not available, the older getpw() function may be available.
ed140128 2570 */
b8677e3b
MB
2571#$d_getpwent HAS_GETPWENT /**/
2572
2573/* HAS_GETSERVENT:
2574 * This symbol, if defined, indicates that the getservent() routine is
2575 * available to look up network services in some data base or another.
ed140128 2576 */
b8677e3b 2577#$d_getsent HAS_GETSERVENT /**/
ed140128 2578
b8677e3b
MB
2579/* HAS_GETSERVBYNAME:
2580 * This symbol, if defined, indicates that the getservbyname()
2581 * routine is available to look up services by their name.
ed140128 2582 */
b8677e3b
MB
2583/* HAS_GETSERVBYPORT:
2584 * This symbol, if defined, indicates that the getservbyport()
2585 * routine is available to look up services by their port.
ed140128 2586 */
b8677e3b
MB
2587#$d_getsbyname HAS_GETSERVBYNAME /**/
2588#$d_getsbyport HAS_GETSERVBYPORT /**/
ed140128 2589
b8677e3b
MB
2590/* HAS_HTONL:
2591 * This symbol, if defined, indicates that the htonl() routine (and
2592 * friends htons() ntohl() ntohs()) are available to do network
2593 * order byte swapping.
ed140128 2594 */
b8677e3b
MB
2595/* HAS_HTONS:
2596 * This symbol, if defined, indicates that the htons() routine (and
2597 * friends htonl() ntohl() ntohs()) are available to do network
2598 * order byte swapping.
ed140128 2599 */
b8677e3b
MB
2600/* HAS_NTOHL:
2601 * This symbol, if defined, indicates that the ntohl() routine (and
2602 * friends htonl() htons() ntohs()) are available to do network
2603 * order byte swapping.
ed140128 2604 */
b8677e3b
MB
2605/* HAS_NTOHS:
2606 * This symbol, if defined, indicates that the ntohs() routine (and
2607 * friends htonl() htons() ntohl()) are available to do network
2608 * order byte swapping.
2609 */
2610#$d_htonl HAS_HTONL /**/
2611#$d_htonl HAS_HTONS /**/
2612#$d_htonl HAS_NTOHL /**/
2613#$d_htonl HAS_NTOHS /**/
ed140128 2614
b8677e3b
MB
2615/* HAS_LONG_DOUBLE:
2616 * This symbol will be defined if the C compiler supports long
2617 * doubles.
ed140128 2618 */
b8677e3b
MB
2619/* LONG_DOUBLESIZE:
2620 * This symbol contains the size of a long double, so that the
2621 * C preprocessor can make decisions based on it. It is only
2622 * defined if the system supports long doubles.
2623 */
2624#$d_longdbl HAS_LONG_DOUBLE /**/
2625#ifdef HAS_LONG_DOUBLE
2626#define LONG_DOUBLESIZE $longdblsize /**/
ed140128
AD
2627#endif
2628
b8677e3b
MB
2629/* HAS_LONG_LONG:
2630 * This symbol will be defined if the C compiler supports long long.
ed140128 2631 */
b8677e3b
MB
2632/* LONGLONGSIZE:
2633 * This symbol contains the size of a long long, so that the
2634 * C preprocessor can make decisions based on it. It is only
2635 * defined if the system supports long long.
2636 */
2637#$d_longlong HAS_LONG_LONG /**/
2638#ifdef HAS_LONG_LONG
2639#define LONGLONGSIZE $longlongsize /**/
2640#endif
ed140128 2641
b8677e3b
MB
2642/* HAS_MEMCHR:
2643 * This symbol, if defined, indicates that the memchr routine is available
2644 * to locate characters within a C string.
c193ef60 2645 */
b8677e3b 2646#$d_memchr HAS_MEMCHR /**/
c193ef60 2647
b8677e3b
MB
2648/* HAS_MKSTEMP:
2649 * This symbol, if defined, indicates that the mkstemp routine is
2650 * available to exclusively create and open a uniquely named
2651 * temporary file.
ed140128 2652 */
b8677e3b 2653#$d_mkstemp HAS_MKSTEMP /**/
ed140128 2654
b8677e3b
MB
2655/* HAS_MMAP:
2656 * This symbol, if defined, indicates that the mmap system call is
2657 * available to map a file into memory.
ed140128 2658 */
b8677e3b
MB
2659/* Mmap_t:
2660 * This symbol holds the return type of the mmap() system call
2661 * (and simultaneously the type of the first argument).
2662 * Usually set to 'void *' or 'caddr_t'.
ed140128 2663 */
b8677e3b
MB
2664#$d_mmap HAS_MMAP /**/
2665#define Mmap_t $mmaptype /**/
ed140128 2666
b8677e3b
MB
2667/* HAS_MSG:
2668 * This symbol, if defined, indicates that the entire msg*(2) library is
2669 * supported (IPC mechanism based on message queues).
ed140128 2670 */
b8677e3b 2671#$d_msg HAS_MSG /**/
ed140128 2672
b8677e3b
MB
2673/* HAS_SEM:
2674 * This symbol, if defined, indicates that the entire sem*(2) library is
2675 * supported.
ed140128 2676 */
b8677e3b 2677#$d_sem HAS_SEM /**/
ed140128 2678
b8677e3b
MB
2679/* HAS_SETGRENT:
2680 * This symbol, if defined, indicates that the setgrent routine is
2681 * available for initializing sequential access of the group database.
ed140128 2682 */
b8677e3b 2683#$d_setgrent HAS_SETGRENT /**/
ed140128 2684
b8677e3b
MB
2685/* HAS_SETHOSTENT:
2686 * This symbol, if defined, indicates that the sethostent() routine is
2687 * available.
ed140128 2688 */
b8677e3b 2689#$d_sethent HAS_SETHOSTENT /**/
ed140128 2690
b8677e3b
MB
2691/* HAS_SETNETENT:
2692 * This symbol, if defined, indicates that the setnetent() routine is
2693 * available.
ed140128 2694 */
b8677e3b 2695#$d_setnent HAS_SETNETENT /**/
34f1896b 2696
b8677e3b
MB
2697/* HAS_SETPROTOENT:
2698 * This symbol, if defined, indicates that the setprotoent() routine is
2699 * available.
ed140128 2700 */
b8677e3b 2701#$d_setpent HAS_SETPROTOENT /**/
ed140128 2702
b8677e3b
MB
2703/* HAS_SETPGRP:
2704 * This symbol, if defined, indicates that the setpgrp routine is
2705 * available to set the current process group.
ed140128 2706 */
b8677e3b
MB
2707/* USE_BSD_SETPGRP:
2708 * This symbol, if defined, indicates that setpgrp needs two
2709 * arguments whereas USG one needs none. See also HAS_SETPGID
2710 * for a POSIX interface.
ed140128 2711 */
b8677e3b
MB
2712#$d_setpgrp HAS_SETPGRP /**/
2713#$d_bsdsetpgrp USE_BSD_SETPGRP /**/
ed140128 2714
b8677e3b
MB
2715/* HAS_SETPWENT:
2716 * This symbol, if defined, indicates that the setpwent routine is
2717 * available for initializing sequential access of the passwd database.
ed140128 2718 */
b8677e3b 2719#$d_setpwent HAS_SETPWENT /**/
ed140128 2720
b8677e3b
MB
2721/* HAS_SETSERVENT:
2722 * This symbol, if defined, indicates that the setservent() routine is
2723 * available.
ed140128 2724 */
b8677e3b 2725#$d_setsent HAS_SETSERVENT /**/
ed140128 2726
b8677e3b
MB
2727/* HAS_SETVBUF:
2728 * This symbol, if defined, indicates that the setvbuf routine is
2729 * available to change buffering on an open stdio stream.
2730 * to a line-buffered mode.
ed140128 2731 */
b8677e3b 2732#$d_setvbuf HAS_SETVBUF /**/
ed140128 2733
b8677e3b
MB
2734/* HAS_SHM:
2735 * This symbol, if defined, indicates that the entire shm*(2) library is
2736 * supported.
ed140128 2737 */
b8677e3b 2738#$d_shm HAS_SHM /**/
ed140128 2739
b8677e3b
MB
2740/* Shmat_t:
2741 * This symbol holds the return type of the shmat() system call.
2742 * Usually set to 'void *' or 'char *'.
17a6c8e3 2743 */
b8677e3b
MB
2744/* HAS_SHMAT_PROTOTYPE:
2745 * This symbol, if defined, indicates that the sys/shm.h includes
2746 * a prototype for shmat(). Otherwise, it is up to the program to
2747 * guess one. Shmat_t shmat(int, Shmat_t, int) is a good guess,
2748 * but not always right so it should be emitted by the program only
2749 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
17a6c8e3 2750 */
b8677e3b
MB
2751#define Shmat_t $shmattype /**/
2752#$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/
17a6c8e3 2753
b8677e3b
MB
2754/* HAS_SOCKET:
2755 * This symbol, if defined, indicates that the BSD socket interface is
2756 * supported.
ed140128 2757 */
b8677e3b
MB
2758/* HAS_SOCKETPAIR:
2759 * This symbol, if defined, indicates that the BSD socketpair() call is
2760 * supported.
ed140128 2761 */
b8677e3b
MB
2762/* HAS_MSG_CTRUNC:
2763 * This symbol, if defined, indicates that the MSG_CTRUNC is supported.
2764 * Checking just with #ifdef might not be enough because this symbol
2765 * has been known to be an enum.
ed140128 2766 */
b8677e3b
MB
2767/* HAS_MSG_DONTROUTE:
2768 * This symbol, if defined, indicates that the MSG_DONTROUTE is supported.
2769 * Checking just with #ifdef might not be enough because this symbol
2770 * has been known to be an enum.
ed140128 2771 */
b8677e3b
MB
2772/* HAS_MSG_OOB:
2773 * This symbol, if defined, indicates that the MSG_OOB is supported.
2774 * Checking just with #ifdef might not be enough because this symbol
2775 * has been known to be an enum.
ed140128 2776 */
b8677e3b
MB
2777/* HAS_MSG_PEEK:
2778 * This symbol, if defined, indicates that the MSG_PEEK is supported.
2779 * Checking just with #ifdef might not be enough because this symbol
2780 * has been known to be an enum.
ed140128 2781 */
b8677e3b
MB
2782/* HAS_MSG_PROXY:
2783 * This symbol, if defined, indicates that the MSG_PROXY is supported.
2784 * Checking just with #ifdef might not be enough because this symbol
2785 * has been known to be an enum.
ed140128 2786 */
b8677e3b
MB
2787/* HAS_SCM_RIGHTS:
2788 * This symbol, if defined, indicates that the SCM_RIGHTS is supported.
2789 * Checking just with #ifdef might not be enough because this symbol
2790 * has been known to be an enum.
ed140128 2791 */
b8677e3b
MB
2792/* HAS_SOCKADDR_SA_LEN:
2793 * This symbol, if defined, indicates that the struct sockaddr
2794 * structure has a member called sa_len, indicating the length of
2795 * the structure.
ed140128 2796 */
b8677e3b
MB
2797#$d_socket HAS_SOCKET /**/
2798#$d_sockpair HAS_SOCKETPAIR /**/
2799#$d_sockaddr_sa_len HAS_SOCKADDR_SA_LEN /**/
2800#$d_msg_ctrunc HAS_MSG_CTRUNC /**/
2801#$d_msg_dontroute HAS_MSG_DONTROUTE /**/
2802#$d_msg_oob HAS_MSG_OOB /**/
2803#$d_msg_peek HAS_MSG_PEEK /**/
2804#$d_msg_proxy HAS_MSG_PROXY /**/
2805#$d_scm_rights HAS_SCM_RIGHTS /**/
ed140128 2806
b8677e3b
MB
2807/* USE_STAT_BLOCKS:
2808 * This symbol is defined if this system has a stat structure declaring
2809 * st_blksize and st_blocks.
ed140128 2810 */
b8677e3b
MB
2811#ifndef USE_STAT_BLOCKS
2812#$d_statblks USE_STAT_BLOCKS /**/
2813#endif
ed140128 2814
b8677e3b
MB
2815/* USE_STRUCT_COPY:
2816 * This symbol, if defined, indicates that this C compiler knows how
2817 * to copy structures. If undefined, you'll need to use a block copy
2818 * routine of some sort instead.
ed140128 2819 */
b8677e3b 2820#$d_strctcpy USE_STRUCT_COPY /**/
ed140128 2821
b8677e3b
MB
2822/* HAS_STRERROR:
2823 * This symbol, if defined, indicates that the strerror routine is
2824 * available to translate error numbers to strings. See the writeup
2825 * of Strerror() in this file before you try to define your own.
ed140128 2826 */
b8677e3b
MB
2827/* HAS_SYS_ERRLIST:
2828 * This symbol, if defined, indicates that the sys_errlist array is
2829 * available to translate error numbers to strings. The extern int
2830 * sys_nerr gives the size of that table.
ed140128 2831 */
b8677e3b
MB
2832/* Strerror:
2833 * This preprocessor symbol is defined as a macro if strerror() is
2834 * not available to translate error numbers to strings but sys_errlist[]
2835 * array is there.
ed140128 2836 */
b8677e3b
MB
2837#$d_strerror HAS_STRERROR /**/
2838#$d_syserrlst HAS_SYS_ERRLIST /**/
2839#define Strerror(e) $d_strerrm
2840
2841/* HAS_STRTOUL:
2842 * This symbol, if defined, indicates that the strtoul routine is
2843 * available to provide conversion of strings to unsigned long.
ed140128 2844 */
b8677e3b
MB
2845#$d_strtoul HAS_STRTOUL /**/
2846
2847/* HAS_UNION_SEMUN:
2848 * This symbol, if defined, indicates that the union semun is
2849 * defined by including <sys/sem.h>. If not, the user code
2850 * probably needs to define it as:
2851 * union semun {
2852 * int val;
2853 * struct semid_ds *buf;
2854 * unsigned short *array;
2855 * }
ed140128 2856 */
b8677e3b
MB
2857/* USE_SEMCTL_SEMUN:
2858 * This symbol, if defined, indicates that union semun is
2859 * used for semctl IPC_STAT.
2860 */
2861/* USE_SEMCTL_SEMID_DS:
2862 * This symbol, if defined, indicates that struct semid_ds * is
2863 * used for semctl IPC_STAT.
2864 */
2865#$d_union_semun HAS_UNION_SEMUN /**/
2866#$d_semctl_semun USE_SEMCTL_SEMUN /**/
2867#$d_semctl_semid_ds USE_SEMCTL_SEMID_DS /**/
ed140128 2868
b8677e3b
MB
2869/* HAS_VFORK:
2870 * This symbol, if defined, indicates that vfork() exists.
ed140128 2871 */
b8677e3b
MB
2872#$d_vfork HAS_VFORK /**/
2873
2874/* HAS_PSEUDOFORK:
2875 * This symbol, if defined, indicates that an emulation of the
2876 * fork routine is available.
ed140128 2877 */
b8677e3b
MB
2878#$d_pseudofork HAS_PSEUDOFORK /**/
2879
2880/* Signal_t:
2881 * This symbol's value is either "void" or "int", corresponding to the
2882 * appropriate return type of a signal handler. Thus, you can declare
2883 * a signal handler using "Signal_t (*handler)()", and define the
2884 * handler using "Signal_t handler(sig)".
ed140128 2885 */
b8677e3b
MB
2886#define Signal_t $signal_t /* Signal handler's return type */
2887
2888/* HASVOLATILE:
2889 * This symbol, if defined, indicates that this C compiler knows about
2890 * the volatile declaration.
ed140128 2891 */
b8677e3b
MB
2892#$d_volatile HASVOLATILE /**/
2893#ifndef HASVOLATILE
2894#define volatile
2895#endif
ed140128 2896
b8677e3b
MB
2897/* I_DIRENT:
2898 * This symbol, if defined, indicates to the C program that it should
2899 * include <dirent.h>. Using this symbol also triggers the definition
2900 * of the Direntry_t define which ends up being 'struct dirent' or
2901 * 'struct direct' depending on the availability of <dirent.h>.
ed140128 2902 */
b8677e3b
MB
2903/* DIRNAMLEN:
2904 * This symbol, if defined, indicates to the C program that the length
2905 * of directory entry names is provided by a d_namlen field. Otherwise
2906 * you need to do strlen() on the d_name field.
2907 */
2908/* Direntry_t:
2909 * This symbol is set to 'struct direct' or 'struct dirent' depending on
2910 * whether dirent is available or not. You should use this pseudo type to
2911 * portably declare your directory entries.
2912 */
2913#$i_dirent I_DIRENT /**/
2914#$d_dirnamlen DIRNAMLEN /**/
2915#define Direntry_t $direntrytype
ed140128 2916
b8677e3b
MB
2917/* I_GRP:
2918 * This symbol, if defined, indicates to the C program that it should
2919 * include <grp.h>.
ed140128 2920 */
b8677e3b
MB
2921/* GRPASSWD:
2922 * This symbol, if defined, indicates to the C program that struct group
2923 * in <grp.h> contains gr_passwd.
ed140128 2924 */
b8677e3b
MB
2925#$i_grp I_GRP /**/
2926#$d_grpasswd GRPASSWD /**/
2927
2928/* I_NDBM:
2929 * This symbol, if defined, indicates that <ndbm.h> exists and should
2930 * be included.
2931 */
2932/* I_GDBMNDBM:
2933 * This symbol, if defined, indicates that <gdbm/ndbm.h> exists and should
2934 * be included. This was the location of the ndbm.h compatibility file
2935 * in RedHat 7.1.
2936 */
2937/* I_GDBM_NDBM:
2938 * This symbol, if defined, indicates that <gdbm-ndbm.h> exists and should
2939 * be included. This is the location of the ndbm.h compatibility file
2940 * in Debian 4.0.
2941 */
2942/* NDBM_H_USES_PROTOTYPES:
2943 * This symbol, if defined, indicates that <ndbm.h> uses real ANSI C
2944 * prototypes instead of K&R style function declarations without any
2945 * parameter information. While ANSI C prototypes are supported in C++,
2946 * K&R style function declarations will yield errors.
2947 */
2948/* GDBMNDBM_H_USES_PROTOTYPES:
2949 * This symbol, if defined, indicates that <gdbm/ndbm.h> uses real ANSI C
2950 * prototypes instead of K&R style function declarations without any
2951 * parameter information. While ANSI C prototypes are supported in C++,
2952 * K&R style function declarations will yield errors.
2953 */
2954/* GDBM_NDBM_H_USES_PROTOTYPES:
2955 * This symbol, if defined, indicates that <gdbm-ndbm.h> uses real ANSI C
2956 * prototypes instead of K&R style function declarations without any
2957 * parameter information. While ANSI C prototypes are supported in C++,
2958 * K&R style function declarations will yield errors.
2959 */
2960#$i_ndbm I_NDBM /**/
2961#$i_gdbmndbm I_GDBMNDBM /**/
2962#$i_gdbm_ndbm I_GDBM_NDBM /**/
2963#$d_ndbm_h_uses_prototypes NDBM_H_USES_PROTOTYPES /**/
2964#$d_gdbmndbm_h_uses_prototypes GDBMNDBM_H_USES_PROTOTYPES /**/
2965#$d_gdbm_ndbm_h_uses_prototypes GDBM_NDBM_H_USES_PROTOTYPES /**/
2966
2967/* I_NETDB:
2968 * This symbol, if defined, indicates that <netdb.h> exists and
2969 * should be included.
2970 */
2971#$i_netdb I_NETDB /**/
2972
2973/* I_NET_ERRNO:
2974 * This symbol, if defined, indicates that <net/errno.h> exists and
2975 * should be included.
2976 */
2977#$i_neterrno I_NET_ERRNO /**/
2978
2979/* I_PWD:
2980 * This symbol, if defined, indicates to the C program that it should
2981 * include <pwd.h>.
2982 */
2983/* PWQUOTA:
2984 * This symbol, if defined, indicates to the C program that struct passwd
2985 * contains pw_quota.
2986 */
2987/* PWAGE:
2988 * This symbol, if defined, indicates to the C program that struct passwd
2989 * contains pw_age.
2990 */
2991/* PWCHANGE:
2992 * This symbol, if defined, indicates to the C program that struct passwd
2993 * contains pw_change.
2994 */
2995/* PWCLASS:
2996 * This symbol, if defined, indicates to the C program that struct passwd
2997 * contains pw_class.
2998 */
2999/* PWEXPIRE:
3000 * This symbol, if defined, indicates to the C program that struct passwd
3001 * contains pw_expire.
3002 */
3003/* PWCOMMENT:
3004 * This symbol, if defined, indicates to the C program that struct passwd
3005 * contains pw_comment.
3006 */
3007/* PWGECOS:
3008 * This symbol, if defined, indicates to the C program that struct passwd
3009 * contains pw_gecos.
3010 */
3011/* PWPASSWD:
3012 * This symbol, if defined, indicates to the C program that struct passwd
3013 * contains pw_passwd.
3014 */
3015#$i_pwd I_PWD /**/
3016#$d_pwquota PWQUOTA /**/
3017#$d_pwage PWAGE /**/
3018#$d_pwchange PWCHANGE /**/
3019#$d_pwclass PWCLASS /**/
3020#$d_pwexpire PWEXPIRE /**/
3021#$d_pwcomment PWCOMMENT /**/
3022#$d_pwgecos PWGECOS /**/
3023#$d_pwpasswd PWPASSWD /**/
3024
3025/* I_SYSUIO:
3026 * This symbol, if defined, indicates that <sys/uio.h> exists and
3027 * should be included.
3028 */
3029#$i_sysuio I_SYSUIO /**/
3030
3031/* I_STDARG:
3032 * This symbol, if defined, indicates that <stdarg.h> exists and should
3033 * be included.
3034 */
3035/* I_VARARGS:
3036 * This symbol, if defined, indicates to the C program that it should
3037 * include <varargs.h>.
3038 */
3039#$i_stdarg I_STDARG /**/
3040#$i_varargs I_VARARGS /**/
3041
3042/* Free_t:
3043 * This variable contains the return type of free(). It is usually
3044 * void, but occasionally int.
3045 */
3046/* Malloc_t:
3047 * This symbol is the type of pointer returned by malloc and realloc.
3048 */
3049#define Malloc_t $malloctype /**/
3050#define Free_t $freetype /**/
3051
3052/* PERL_MALLOC_WRAP:
3053 * This symbol, if defined, indicates that we'd like malloc wrap checks.
3054 */
3055#$usemallocwrap PERL_MALLOC_WRAP /**/
3056
3057/* MYMALLOC:
3058 * This symbol, if defined, indicates that we're using our own malloc.
3059 */
3060#$d_mymalloc MYMALLOC /**/
3061
3062/* CAN_PROTOTYPE:
3063 * If defined, this macro indicates that the C compiler can handle
3064 * function prototypes.
3065 */
3066/* _:
3067 * This macro is used to declare function parameters for folks who want
3068 * to make declarations with prototypes using a different style than
3069 * the above macros. Use double parentheses. For example:
3070 *
3071 * int main _((int argc, char *argv[]));
3072 */
3073#$prototype CAN_PROTOTYPE /**/
3074#ifdef CAN_PROTOTYPE
3075#define _(args) args
3076#else
3077#define _(args) ()
3078#endif
3079
3080/* SH_PATH:
3081 * This symbol contains the full pathname to the shell used on this
3082 * on this system to execute Bourne shell scripts. Usually, this will be
3083 * /bin/sh, though it's possible that some systems will have /bin/ksh,
3084 * /bin/pdksh, /bin/ash, /bin/bash, or even something such as
3085 * D:/bin/sh.exe.
3086 */
3087#define SH_PATH "$sh" /**/
3088
3089/* SIG_NAME:
3090 * This symbol contains a list of signal names in order of
3091 * signal number. This is intended
3092 * to be used as a static array initialization, like this:
3093 * char *sig_name[] = { SIG_NAME };
3094 * The signals in the list are separated with commas, and each signal
3095 * is surrounded by double quotes. There is no leading SIG in the signal
3096 * name, i.e. SIGQUIT is known as "QUIT".
3097 * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
3098 * etc., where nn is the actual signal number (e.g. NUM37).
3099 * The signal number for sig_name[i] is stored in sig_num[i].
3100 * The last element is 0 to terminate the list with a NULL. This
3101 * corresponds to the 0 at the end of the sig_name_init list.
3102 * Note that this variable is initialized from the sig_name_init,
3103 * not from sig_name (which is unused).
3104 */
3105/* SIG_NUM:
3106 * This symbol contains a list of signal numbers, in the same order as the
3107 * SIG_NAME list. It is suitable for static array initialization, as in:
3108 * int sig_num[] = { SIG_NUM };
3109 * The signals in the list are separated with commas, and the indices
3110 * within that list and the SIG_NAME list match, so it's easy to compute
3111 * the signal name from a number or vice versa at the price of a small
3112 * dynamic linear lookup.
3113 * Duplicates are allowed, but are moved to the end of the list.
3114 * The signal number corresponding to sig_name[i] is sig_number[i].
3115 * if (i < NSIG) then sig_number[i] == i.
3116 * The last element is 0, corresponding to the 0 at the end of
3117 * the sig_name_init list.
3118 * Note that this variable is initialized from the sig_num_init,
3119 * not from sig_num (which is unused).
ed140128 3120 */
b8677e3b
MB
3121/* SIG_SIZE:
3122 * This variable contains the number of elements of the SIG_NAME
3123 * and SIG_NUM arrays, excluding the final NULL entry.
ed140128 3124 */
b8677e3b
MB
3125#define SIG_NAME $sig_name_init /**/
3126#define SIG_NUM $sig_num_init /**/
3127#define SIG_SIZE $sig_size /**/
ed140128 3128
b8677e3b
MB
3129/* STDCHAR:
3130 * This symbol is defined to be the type of char used in stdio.h.
3131 * It has the values "unsigned char" or "char".
ed140128 3132 */
b8677e3b 3133#define STDCHAR $stdchar /**/
ed140128 3134
b8677e3b
MB
3135/* VOIDFLAGS:
3136 * This symbol indicates how much support of the void type is given by this
3137 * compiler. What various bits mean:
3138 *
3139 * 1 = supports declaration of void
3140 * 2 = supports arrays of pointers to functions returning void
3141 * 4 = supports comparisons between pointers to void functions and
3142 * addresses of void functions
3143 * 8 = suports declaration of generic void pointers
3144 *
3145 * The package designer should define VOIDUSED to indicate the requirements
3146 * of the package. This can be done either by #defining VOIDUSED before
3147 * including config.h, or by defining defvoidused in Myinit.U. If the
3148 * latter approach is taken, only those flags will be tested. If the
3149 * level of void support necessary is not present, defines void to int.
ed140128 3150 */
b8677e3b
MB
3151#ifndef VOIDUSED
3152#define VOIDUSED $defvoidused
3153#endif
3154#define VOIDFLAGS $voidflags
3155#if (VOIDFLAGS & VOIDUSED) != VOIDUSED
3156#define void int /* is void to be avoided? */
3157#define M_VOID /* Xenix strikes again */
3158#endif
ed140128 3159
1be1b388
MB
3160/* PERL_USE_DEVEL:
3161 * This symbol, if defined, indicates that Perl was configured with
3162 * -Dusedevel, to enable development features. This should not be
3163 * done for production builds.
3164 */
3165#$usedevel PERL_USE_DEVEL /**/
3166
ed140128
AD
3167/* HAS_ATOLF:
3168 * This symbol, if defined, indicates that the atolf routine is
3169 * available to convert strings into long doubles.
3170 */
3171#$d_atolf HAS_ATOLF /**/
3172
3173/* HAS_ATOLL:
3174 * This symbol, if defined, indicates that the atoll routine is
3175 * available to convert strings into long longs.
3176 */
3177#$d_atoll HAS_ATOLL /**/
3178
3179/* HAS__FWALK:
3180 * This symbol, if defined, indicates that the _fwalk system call is
3181 * available to apply a function to all the file handles.
3182 */
3183#$d__fwalk HAS__FWALK /**/
3184
3185/* HAS_AINTL:
3186 * This symbol, if defined, indicates that the aintl routine is
3187 * available. If copysignl is also present we can emulate modfl.
3188 */
3189#$d_aintl HAS_AINTL /**/
3190
3191/* HAS_BUILTIN_CHOOSE_EXPR:
3192 * Can we handle GCC builtin for compile-time ternary-like expressions
3193 */
3194/* HAS_BUILTIN_EXPECT:
3195 * Can we handle GCC builtin for telling that certain values are more
3196 * likely
3197 */
3198#$d_builtin_expect HAS_BUILTIN_EXPECT /**/
3199#$d_builtin_choose_expr HAS_BUILTIN_CHOOSE_EXPR /**/
3200
3201/* HAS_C99_VARIADIC_MACROS:
3202 * If defined, the compiler supports C99 variadic macros.
3203 */
3204#$d_c99_variadic_macros HAS_C99_VARIADIC_MACROS /**/
3205
3206/* HAS_CLASS:
3207 * This symbol, if defined, indicates that the class routine is
3208 * available to classify doubles. Available for example in AIX.
3209 * The returned values are defined in <float.h> and are:
3210 *
3211 * FP_PLUS_NORM Positive normalized, nonzero
3212 * FP_MINUS_NORM Negative normalized, nonzero
3213 * FP_PLUS_DENORM Positive denormalized, nonzero
3214 * FP_MINUS_DENORM Negative denormalized, nonzero
3215 * FP_PLUS_ZERO +0.0
3216 * FP_MINUS_ZERO -0.0
3217 * FP_PLUS_INF +INF
3218 * FP_MINUS_INF -INF
3219 * FP_NANS Signaling Not a Number (NaNS)
3220 * FP_NANQ Quiet Not a Number (NaNQ)
3221 */
3222#$d_class HAS_CLASS /**/
3223
3224/* HAS_CLEARENV:
3225 * This symbol, if defined, indicates that the clearenv () routine is
3226 * available for use.
3227 */
3228#$d_clearenv HAS_CLEARENV /**/
3229
3230/* HAS_STRUCT_CMSGHDR:
3231 * This symbol, if defined, indicates that the struct cmsghdr
3232 * is supported.
3233 */
3234#$d_cmsghdr_s HAS_STRUCT_CMSGHDR /**/
3235
3236/* HAS_COPYSIGNL:
3237 * This symbol, if defined, indicates that the copysignl routine is
3238 * available. If aintl is also present we can emulate modfl.
3239 */
3240#$d_copysignl HAS_COPYSIGNL /**/
3241
3242/* USE_CPLUSPLUS:
3243 * This symbol, if defined, indicates that a C++ compiler was
3244 * used to compiled Perl and will be used to compile extensions.
3245 */
3246#$d_cplusplus USE_CPLUSPLUS /**/
3247
3248/* HAS_DBMINIT_PROTO:
3249 * This symbol, if defined, indicates that the system provides
3250 * a prototype for the dbminit() function. Otherwise, it is up
3251 * to the program to supply one. A good guess is
3252 * extern int dbminit(char *);
3253 */
3254#$d_dbminitproto HAS_DBMINIT_PROTO /**/
3255
3256/* HAS_DIR_DD_FD:
3257 * This symbol, if defined, indicates that the the DIR* dirstream
3258 * structure contains a member variable named dd_fd.
3259 */
3260#$d_dir_dd_fd HAS_DIR_DD_FD /**/
3261
3262/* HAS_DIRFD:
3263 * This manifest constant lets the C program know that dirfd
3264 * is available.
3265 */
3266#$d_dirfd HAS_DIRFD /**/
3267
3268/* DLSYM_NEEDS_UNDERSCORE:
3269 * This symbol, if defined, indicates that we need to prepend an
3270 * underscore to the symbol name before calling dlsym(). This only
3271 * makes sense if you *have* dlsym, which we will presume is the
3272 * case if you're using dl_dlopen.xs.
3273 */
3274#$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/
3275
3276/* HAS_FAST_STDIO:
3277 * This symbol, if defined, indicates that the "fast stdio"
3278 * is available to manipulate the stdio buffers directly.
3279 */
3280#$d_faststdio HAS_FAST_STDIO /**/
3281
3282/* HAS_FCHDIR:
3283 * This symbol, if defined, indicates that the fchdir routine is
3284 * available to change directory using a file descriptor.
3285 */
3286#$d_fchdir HAS_FCHDIR /**/
3287
3288/* FCNTL_CAN_LOCK:
3289 * This symbol, if defined, indicates that fcntl() can be used
3290 * for file locking. Normally on Unix systems this is defined.
3291 * It may be undefined on VMS.
3292 */
3293#$d_fcntl_can_lock FCNTL_CAN_LOCK /**/
3294
3295/* HAS_FINITE:
3296 * This symbol, if defined, indicates that the finite routine is
3297 * available to check whether a double is finite (non-infinity non-NaN).
3298 */
3299#$d_finite HAS_FINITE /**/
3300
3301/* HAS_FINITEL:
3302 * This symbol, if defined, indicates that the finitel routine is
3303 * available to check whether a long double is finite
3304 * (non-infinity non-NaN).
3305 */
3306#$d_finitel HAS_FINITEL /**/
3307
3308/* HAS_FLOCK_PROTO:
3309 * This symbol, if defined, indicates that the system provides
3310 * a prototype for the flock() function. Otherwise, it is up
3311 * to the program to supply one. A good guess is
3312 * extern int flock(int, int);
3313 */
3314#$d_flockproto HAS_FLOCK_PROTO /**/
3315
3316/* HAS_FP_CLASS:
3317 * This symbol, if defined, indicates that the fp_class routine is
3318 * available to classify doubles. Available for example in Digital UNIX.
3319 * The returned values are defined in <math.h> and are:
3320 *
3321 * FP_SNAN Signaling NaN (Not-a-Number)
3322 * FP_QNAN Quiet NaN (Not-a-Number)
3323 * FP_POS_INF +infinity
3324 * FP_NEG_INF -infinity
3325 * FP_POS_NORM Positive normalized
3326 * FP_NEG_NORM Negative normalized
3327 * FP_POS_DENORM Positive denormalized
3328 * FP_NEG_DENORM Negative denormalized
3329 * FP_POS_ZERO +0.0 (positive zero)
3330 * FP_NEG_ZERO -0.0 (negative zero)
3331 */
3332#$d_fp_class HAS_FP_CLASS /**/
3333
3334/* HAS_FPCLASS:
3335 * This symbol, if defined, indicates that the fpclass routine is
3336 * available to classify doubles. Available for example in Solaris/SVR4.
3337 * The returned values are defined in <ieeefp.h> and are:
3338 *
3339 * FP_SNAN signaling NaN
3340 * FP_QNAN quiet NaN
3341 * FP_NINF negative infinity
3342 * FP_PINF positive infinity
3343 * FP_NDENORM negative denormalized non-zero
3344 * FP_PDENORM positive denormalized non-zero
3345 * FP_NZERO negative zero
3346 * FP_PZERO positive zero
3347 * FP_NNORM negative normalized non-zero
3348 * FP_PNORM positive normalized non-zero
3349 */
3350#$d_fpclass HAS_FPCLASS /**/
3351
3352/* HAS_FPCLASSIFY:
3353 * This symbol, if defined, indicates that the fpclassify routine is
3354 * available to classify doubles. Available for example in HP-UX.
3355 * The returned values are defined in <math.h> and are
3356 *
3357 * FP_NORMAL Normalized
3358 * FP_ZERO Zero
3359 * FP_INFINITE Infinity
3360 * FP_SUBNORMAL Denormalized
3361 * FP_NAN NaN
3362 *
3363 */
3364#$d_fpclassify HAS_FPCLASSIFY /**/
3365
3366/* HAS_FPCLASSL:
3367 * This symbol, if defined, indicates that the fpclassl routine is
3368 * available to classify long doubles. Available for example in IRIX.
3369 * The returned values are defined in <ieeefp.h> and are:
3370 *
3371 * FP_SNAN signaling NaN
3372 * FP_QNAN quiet NaN
3373 * FP_NINF negative infinity
3374 * FP_PINF positive infinity
3375 * FP_NDENORM negative denormalized non-zero
3376 * FP_PDENORM positive denormalized non-zero
3377 * FP_NZERO negative zero
3378 * FP_PZERO positive zero
3379 * FP_NNORM negative normalized non-zero
3380 * FP_PNORM positive normalized non-zero
3381 */
3382#$d_fpclassl HAS_FPCLASSL /**/
3383
3384/* HAS_FPOS64_T:
3385 * This symbol will be defined if the C compiler supports fpos64_t.
3386 */
3387#$d_fpos64_t HAS_FPOS64_T /**/
3388
3389/* HAS_FREXPL:
3390 * This symbol, if defined, indicates that the frexpl routine is
3391 * available to break a long double floating-point number into
3392 * a normalized fraction and an integral power of 2.
3393 */
3394#$d_frexpl HAS_FREXPL /**/
3395
3396/* HAS_STRUCT_FS_DATA:
3397 * This symbol, if defined, indicates that the struct fs_data
3398 * to do statfs() is supported.
3399 */
3400#$d_fs_data_s HAS_STRUCT_FS_DATA /**/
3401
3402/* HAS_FSEEKO:
3403 * This symbol, if defined, indicates that the fseeko routine is
3404 * available to fseek beyond 32 bits (useful for ILP32 hosts).
3405 */
3406#$d_fseeko HAS_FSEEKO /**/
3407
3408/* HAS_FSTATFS:
3409 * This symbol, if defined, indicates that the fstatfs routine is
3410 * available to stat filesystems by file descriptors.
3411 */
3412#$d_fstatfs HAS_FSTATFS /**/
3413
3414/* HAS_FSYNC:
3415 * This symbol, if defined, indicates that the fsync routine is
3416 * available to write a file's modified data and attributes to
3417 * permanent storage.
3418 */
3419#$d_fsync HAS_FSYNC /**/
3420
3421/* HAS_FTELLO:
3422 * This symbol, if defined, indicates that the ftello routine is
3423 * available to ftell beyond 32 bits (useful for ILP32 hosts).
3424 */
3425#$d_ftello HAS_FTELLO /**/
3426
3427/* HAS_FUTIMES:
3428 * This symbol, if defined, indicates that the futimes routine is
3429 * available to change file descriptor time stamps with struct timevals.
3430 */
3431#$d_futimes HAS_FUTIMES /**/
3432
5086dff9
MB
3433/* HAS_GETADDRINFO:
3434 * This symbol, if defined, indicates that the getaddrinfo() function
3435 * is available for use.
3436 */
3437#$d_getaddrinfo HAS_GETADDRINFO /**/
3438
ed140128
AD
3439/* HAS_GETCWD:
3440 * This symbol, if defined, indicates that the getcwd routine is
3441 * available to get the current working directory.
3442 */
3443#$d_getcwd HAS_GETCWD /**/
3444
3445/* HAS_GETESPWNAM:
3446 * This symbol, if defined, indicates that the getespwnam system call is
3447 * available to retrieve enchanced (shadow) password entries by name.
3448 */
3449#$d_getespwnam HAS_GETESPWNAM /**/
3450
3451/* HAS_GETFSSTAT:
3452 * This symbol, if defined, indicates that the getfsstat routine is
3453 * available to stat filesystems in bulk.
3454 */
3455#$d_getfsstat HAS_GETFSSTAT /**/
3456
3457/* HAS_GETITIMER:
3458 * This symbol, if defined, indicates that the getitimer routine is
3459 * available to return interval timers.
3460 */
3461#$d_getitimer HAS_GETITIMER /**/
3462
3463/* HAS_GETMNT:
3464 * This symbol, if defined, indicates that the getmnt routine is
3465 * available to get filesystem mount info by filename.
3466 */
3467#$d_getmnt HAS_GETMNT /**/
3468
3469/* HAS_GETMNTENT:
3470 * This symbol, if defined, indicates that the getmntent routine is
3471 * available to iterate through mounted file systems to get their info.
3472 */
3473#$d_getmntent HAS_GETMNTENT /**/
3474
5086dff9
MB
3475/* HAS_GETNAMEINFO:
3476 * This symbol, if defined, indicates that the getnameinfo() function
3477 * is available for use.
3478 */
3479#$d_getnameinfo HAS_GETNAMEINFO /**/
3480
ed140128
AD
3481/* HAS_GETPRPWNAM:
3482 * This symbol, if defined, indicates that the getprpwnam system call is
3483 * available to retrieve protected (shadow) password entries by name.
3484 */
3485#$d_getprpwnam HAS_GETPRPWNAM /**/
3486
3487/* HAS_GETSPNAM:
3488 * This symbol, if defined, indicates that the getspnam system call is
3489 * available to retrieve SysV shadow password entries by name.
3490 */
3491#$d_getspnam HAS_GETSPNAM /**/
3492
3493/* HAS_HASMNTOPT:
3494 * This symbol, if defined, indicates that the hasmntopt routine is
3495 * available to query the mount options of file systems.
3496 */
3497#$d_hasmntopt HAS_HASMNTOPT /**/
3498
3499/* HAS_ILOGBL:
3500 * This symbol, if defined, indicates that the ilogbl routine is
3501 * available. If scalbnl is also present we can emulate frexpl.
3502 */
3503#$d_ilogbl HAS_ILOGBL /**/
3504
5086dff9
MB
3505/* HAS_INETNTOP:
3506 * This symbol, if defined, indicates that the inet_ntop() function
3507 * is available to parse IPv4 and IPv6 strings.
3508 */
3509#$d_inetntop HAS_INETNTOP /**/
3510
3511/* HAS_INETPTON:
3512 * This symbol, if defined, indicates that the inet_pton() function
3513 * is available to parse IPv4 and IPv6 strings.
3514 */
3515#$d_inetpton HAS_INETPTON /**/
3516
ed140128
AD
3517/* HAS_INT64_T:
3518 * This symbol will defined if the C compiler supports int64_t.
3519 * Usually the <inttypes.h> needs to be included, but sometimes
3520 * <sys/types.h> is enough.
3521 */
3522#$d_int64_t HAS_INT64_T /**/
3523
3524/* HAS_ISFINITE:
3525 * This symbol, if defined, indicates that the isfinite routine is
3526 * available to check whether a double is finite (non-infinity non-NaN).
3527 */
3528#$d_isfinite HAS_ISFINITE /**/
3529
3530/* HAS_ISINF:
3531 * This symbol, if defined, indicates that the isinf routine is
3532 * available to check whether a double is an infinity.
3533 */
3534#$d_isinf HAS_ISINF /**/
3535
3536/* HAS_ISNAN:
3537 * This symbol, if defined, indicates that the isnan routine is
3538 * available to check whether a double is a NaN.
3539 */
3540#$d_isnan HAS_ISNAN /**/
3541
3542/* HAS_ISNANL:
3543 * This symbol, if defined, indicates that the isnanl routine is
3544 * available to check whether a long double is a NaN.
3545 */
3546#$d_isnanl HAS_ISNANL /**/
3547
3548/* HAS_LDBL_DIG:
3549 * This symbol, if defined, indicates that this system's <float.h>
3550 * or <limits.h> defines the symbol LDBL_DIG, which is the number
3551 * of significant digits in a long double precision number. Unlike
3552 * for DBL_DIG, there's no good guess for LDBL_DIG if it is undefined.
3553 */
3554#$d_ldbl_dig HAS_LDBL_DIG /* */
3555
3556/* LIBM_LIB_VERSION:
3557 * This symbol, if defined, indicates that libm exports _LIB_VERSION
3558 * and that math.h defines the enum to manipulate it.
3559 */
3560#$d_libm_lib_version LIBM_LIB_VERSION /**/
3561
3562/* HAS_MADVISE:
3563 * This symbol, if defined, indicates that the madvise system call is
3564 * available to map a file into memory.
3565 */
3566#$d_madvise HAS_MADVISE /**/
3567
3568/* HAS_MALLOC_SIZE:
3569 * This symbol, if defined, indicates that the malloc_size
3570 * routine is available for use.
3571 */
3572#$d_malloc_size HAS_MALLOC_SIZE /**/
3573
3574/* HAS_MALLOC_GOOD_SIZE:
3575 * This symbol, if defined, indicates that the malloc_good_size
3576 * routine is available for use.
3577 */
3578#$d_malloc_good_size HAS_MALLOC_GOOD_SIZE /**/
3579
3580/* HAS_MKDTEMP:
3581 * This symbol, if defined, indicates that the mkdtemp routine is
3582 * available to exclusively create a uniquely named temporary directory.
3583 */
3584#$d_mkdtemp HAS_MKDTEMP /**/
3585
3586/* HAS_MKSTEMPS:
3587 * This symbol, if defined, indicates that the mkstemps routine is
3588 * available to excluslvely create and open a uniquely named
3589 * (with a suffix) temporary file.
3590 */
3591#$d_mkstemps HAS_MKSTEMPS /**/
3592
3593/* HAS_MODFL:
3594 * This symbol, if defined, indicates that the modfl routine is
3595 * available to split a long double x into a fractional part f and
3596 * an integer part i such that |f| < 1.0 and (f + i) = x.
3597 */
3598/* HAS_MODFL_PROTO:
3599 * This symbol, if defined, indicates that the system provides
3600 * a prototype for the modfl() function. Otherwise, it is up
3601 * to the program to supply one.
3602 */
3603/* HAS_MODFL_POW32_BUG:
3604 * This symbol, if defined, indicates that the modfl routine is
3605 * broken for long doubles >= pow(2, 32).
3606 * For example from 4294967303.150000 one would get 4294967302.000000
3607 * and 1.150000. The bug has been seen in certain versions of glibc,
3608 * release 2.2.2 is known to be okay.
3609 */
3610#$d_modfl HAS_MODFL /**/
3611#$d_modflproto HAS_MODFL_PROTO /**/
3612#$d_modfl_pow32_bug HAS_MODFL_POW32_BUG /**/
3613
3614/* HAS_MPROTECT:
3615 * This symbol, if defined, indicates that the mprotect system call is
3616 * available to modify the access protection of a memory mapped file.
3617 */
3618#$d_mprotect HAS_MPROTECT /**/
3619
3620/* HAS_STRUCT_MSGHDR:
3621 * This symbol, if defined, indicates that the struct msghdr
3622 * is supported.
3623 */
3624#$d_msghdr_s HAS_STRUCT_MSGHDR /**/
3625
3626/* HAS_NL_LANGINFO:
3627 * This symbol, if defined, indicates that the nl_langinfo routine is
3628 * available to return local data. You will also need <langinfo.h>
3629 * and therefore I_LANGINFO.
3630 */
3631#$d_nl_langinfo HAS_NL_LANGINFO /**/
3632
3633/* HAS_OFF64_T:
3634 * This symbol will be defined if the C compiler supports off64_t.
3635 */
3636#$d_off64_t HAS_OFF64_T /**/
3637
c796e3db
MB
3638/* HAS_PRCTL:
3639 * This symbol, if defined, indicates that the prctl routine is
3640 * available to set process title.
3641 */
3642/* HAS_PRCTL_SET_NAME:
3643 * This symbol, if defined, indicates that the prctl routine is
3644 * available to set process title and supports PR_SET_NAME.
3645 */
3646#$d_prctl HAS_PRCTL /**/
3647#$d_prctl_set_name HAS_PRCTL_SET_NAME /**/
3648
ed140128
AD
3649/* HAS_PROCSELFEXE:
3650 * This symbol is defined if PROCSELFEXE_PATH is a symlink
3651 * to the absolute pathname of the executing program.
3652 */
3653/* PROCSELFEXE_PATH:
3654 * If HAS_PROCSELFEXE is defined this symbol is the filename
3655 * of the symbolic link pointing to the absolute pathname of
3656 * the executing program.
3657 */
3658#$d_procselfexe HAS_PROCSELFEXE /**/
3659#if defined(HAS_PROCSELFEXE) && !defined(PROCSELFEXE_PATH)
3660#define PROCSELFEXE_PATH $procselfexe /**/
3661#endif
3662
3663/* HAS_PTHREAD_ATTR_SETSCOPE:
3664 * This symbol, if defined, indicates that the pthread_attr_setscope
3665 * system call is available to set the contention scope attribute of
3666 * a thread attribute object.
3667 */
3668#$d_pthread_attr_setscope HAS_PTHREAD_ATTR_SETSCOPE /**/
3669
3670/* HAS_READV:
3671 * This symbol, if defined, indicates that the readv routine is
3672 * available to do gather reads. You will also need <sys/uio.h>
3673 * and there I_SYSUIO.
3674 */
3675#$d_readv HAS_READV /**/
3676
3677/* HAS_RECVMSG:
3678 * This symbol, if defined, indicates that the recvmsg routine is
3679 * available to send structured socket messages.
3680 */
3681#$d_recvmsg HAS_RECVMSG /**/
3682
3683/* HAS_SBRK_PROTO:
3684 * This symbol, if defined, indicates that the system provides
3685 * a prototype for the sbrk() function. Otherwise, it is up
3686 * to the program to supply one. Good guesses are
3687 * extern void* sbrk(int);
3688 * extern void* sbrk(size_t);
3689 */
3690#$d_sbrkproto HAS_SBRK_PROTO /**/
3691
3692/* HAS_SCALBNL:
3693 * This symbol, if defined, indicates that the scalbnl routine is
3694 * available. If ilogbl is also present we can emulate frexpl.
3695 */
3696#$d_scalbnl HAS_SCALBNL /**/
3697
3698/* HAS_SENDMSG:
3699 * This symbol, if defined, indicates that the sendmsg routine is
3700 * available to send structured socket messages.
3701 */
3702#$d_sendmsg HAS_SENDMSG /**/
3703
3704/* HAS_SETITIMER:
3705 * This symbol, if defined, indicates that the setitimer routine is
3706 * available to set interval timers.
3707 */
3708#$d_setitimer HAS_SETITIMER /**/
3709
3710/* HAS_SETPROCTITLE:
3711 * This symbol, if defined, indicates that the setproctitle routine is
3712 * available to set process title.
3713 */
3714#$d_setproctitle HAS_SETPROCTITLE /**/
3715
3716/* USE_SFIO:
3717 * This symbol, if defined, indicates that sfio should
3718 * be used.
3719 */
3720#$d_sfio USE_SFIO /**/
3721
3722/* HAS_SIGNBIT:
3723 * This symbol, if defined, indicates that the signbit routine is
3724 * available to check if the given number has the sign bit set.
3725 * This should include correct testing of -0.0. This will only be set
3726 * if the signbit() routine is safe to use with the NV type used internally
3727 * in perl. Users should call Perl_signbit(), which will be #defined to
3728 * the system's signbit() function or macro if this symbol is defined.
3729 */
3730#$d_signbit HAS_SIGNBIT /**/
3731
3732/* HAS_SIGPROCMASK:
3733 * This symbol, if defined, indicates that the sigprocmask
3734 * system call is available to examine or change the signal mask
3735 * of the calling process.
3736 */
3737#$d_sigprocmask HAS_SIGPROCMASK /**/
3738
3739/* USE_SITECUSTOMIZE:
3740 * This symbol, if defined, indicates that sitecustomize should
3741 * be used.
3742 */
3743#ifndef USE_SITECUSTOMIZE
3744#$usesitecustomize USE_SITECUSTOMIZE /**/
3745#endif
3746
3747/* HAS_SNPRINTF:
3748 * This symbol, if defined, indicates that the snprintf () library
3749 * function is available for use.
3750 */
3751/* HAS_VSNPRINTF:
3752 * This symbol, if defined, indicates that the vsnprintf () library
3753 * function is available for use.
3754 */
3755#$d_snprintf HAS_SNPRINTF /**/
3756#$d_vsnprintf HAS_VSNPRINTF /**/
3757
3758/* HAS_SOCKATMARK:
3759 * This symbol, if defined, indicates that the sockatmark routine is
3760 * available to test whether a socket is at the out-of-band mark.
3761 */
3762#$d_sockatmark HAS_SOCKATMARK /**/
3763
3764/* HAS_SOCKATMARK_PROTO:
3765 * This symbol, if defined, indicates that the system provides
3766 * a prototype for the sockatmark() function. Otherwise, it is up
3767 * to the program to supply one. A good guess is
3768 * extern int sockatmark(int);
3769 */
3770#$d_sockatmarkproto HAS_SOCKATMARK_PROTO /**/
3771
3772/* HAS_SOCKS5_INIT:
3773 * This symbol, if defined, indicates that the socks5_init routine is
3774 * available to initialize SOCKS 5.
3775 */
3776#$d_socks5_init HAS_SOCKS5_INIT /**/
3777
3778/* SPRINTF_RETURNS_STRLEN:
3779 * This variable defines whether sprintf returns the length of the string
3780 * (as per the ANSI spec). Some C libraries retain compatibility with
3781 * pre-ANSI C and return a pointer to the passed in buffer; for these
3782 * this variable will be undef.
3783 */
3784#$d_sprintf_returns_strlen SPRINTF_RETURNS_STRLEN /**/
3785
3786/* HAS_SQRTL:
3787 * This symbol, if defined, indicates that the sqrtl routine is
3788 * available to do long double square roots.
3789 */
3790#$d_sqrtl HAS_SQRTL /**/
3791
3792/* HAS_SETRESGID_PROTO:
3793 * This symbol, if defin