Integrate perlio:
[p5sagit/p5-mst-13.2.git] / config_h.SH
CommitLineData
12ae5dfc 1case "$CONFIG_SH" in
2'') CONFIG_SH=config.sh ;;
3esac
4case "$CONFIG_H" in
5'') CONFIG_H=config.h ;;
6esac
8d063cd8 7case $CONFIG in
8'')
12ae5dfc 9 if test -f $CONFIG_SH; then TOP=.;
10 elif test -f ../$CONFIG_SH; then TOP=..;
11 elif test -f ../../$CONFIG_SH; then TOP=../..;
12 elif test -f ../../../$CONFIG_SH; then TOP=../../..;
13 elif test -f ../../../../$CONFIG_SH; then TOP=../../../..;
2304df62 14 else
12ae5dfc 15 echo "Can't find $CONFIG_SH."; exit 1
2304df62 16 fi
12ae5dfc 17 . $TOP/$CONFIG_SH
2304df62 18 ;;
19esac
20case "$0" in
21*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
8d063cd8 22esac
12ae5dfc 23echo "Extracting $CONFIG_H (with variable substitutions)"
24sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un-def!#undef!'
2304df62 25/*
26 * This file was produced by running the config_h.SH script, which
12ae5dfc 27 * gets its values from $CONFIG_SH, which is generally produced by
8d063cd8 28 * running Configure.
29 *
30 * Feel free to modify any of this as the need arises. Note, however,
1aef975c 31 * that running config_h.SH again will wipe out any changes you've made.
12ae5dfc 32 * For a more permanent change edit $CONFIG_SH and rerun config_h.SH.
2304df62 33 *
dfe9444c 34 * \$Id: Config_h.U,v 3.0.1.5 1997/02/28 14:57:43 ram Exp $
8d063cd8 35 */
36
dfe9444c 37/*
38 * Package name : $package
39 * Source directory : $src
40 * Configuration time: $cf_time
41 * Configured by : $cf_by
42 * Target system : $myuname
2304df62 43 */
8d063cd8 44
2304df62 45#ifndef _config_h_
46#define _config_h_
47
dfe9444c 48/* LOC_SED:
49 * This symbol holds the complete pathname to the sed program.
774d564b 50 */
dfe9444c 51#define LOC_SED "$full_sed" /**/
774d564b 52
a0d0e21e 53/* HAS_ALARM:
54 * This symbol, if defined, indicates that the alarm routine is
55 * available.
56 */
57#$d_alarm HAS_ALARM /**/
58
b4eb6b3d 59/* HASATTRIBUTE:
60 * This symbol indicates the C compiler can check for function attributes,
61 * such as printf formats. This is normally only supported by GNU cc.
62 */
63#$d_attribut HASATTRIBUTE /**/
64#ifndef HASATTRIBUTE
65#define __attribute__(_arg_)
66#endif
67
2304df62 68/* HAS_BCMP:
69 * This symbol is defined if the bcmp() routine is available to
70 * compare blocks of memory.
a687059c 71 */
2304df62 72#$d_bcmp HAS_BCMP /**/
a687059c 73
2304df62 74/* HAS_BCOPY:
75 * This symbol is defined if the bcopy() routine is available to
76 * copy blocks of memory.
c51b80d1 77 */
2304df62 78#$d_bcopy HAS_BCOPY /**/
c51b80d1 79
2304df62 80/* HAS_BZERO:
81 * This symbol is defined if the bzero() routine is available to
82 * set a memory block to 0.
0d3e774c 83 */
2304df62 84#$d_bzero HAS_BZERO /**/
0d3e774c 85
a0d0e21e 86/* HAS_CHOWN:
87 * This symbol, if defined, indicates that the chown routine is
88 * available.
89 */
90#$d_chown HAS_CHOWN /**/
91
92/* HAS_CHROOT:
93 * This symbol, if defined, indicates that the chroot routine is
94 * available.
95 */
96#$d_chroot HAS_CHROOT /**/
97
2304df62 98/* HAS_CHSIZE:
87250799 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.
101 */
fe14fcc3 102#$d_chsize HAS_CHSIZE /**/
87250799 103
b4eb6b3d 104/* HASCONST:
105 * This symbol, if defined, indicates that this C compiler knows about
106 * the const type. There is no need to actually test for that symbol
107 * within your programs. The mere use of the "const" keyword will
108 * trigger the necessary tests.
109 */
110#$d_const HASCONST /**/
111#ifndef HASCONST
112#define const
113#endif
114
2304df62 115/* HAS_CRYPT:
2e1b3b7e 116 * This symbol, if defined, indicates that the crypt routine is available
117 * to encrypt passwords and the like.
118 */
2304df62 119#$d_crypt HAS_CRYPT /**/
2e1b3b7e 120
a0d0e21e 121/* HAS_CUSERID:
122 * This symbol, if defined, indicates that the cuserid routine is
123 * available to get character login names.
13281fa4 124 */
a0d0e21e 125#$d_cuserid HAS_CUSERID /**/
126
127/* HAS_DBL_DIG:
128 * This symbol, if defined, indicates that this system's <float.h>
129 * or <limits.h> defines the symbol DBL_DIG, which is the number
130 * of significant digits in a double precision number. If this
131 * symbol is not defined, a guess of 15 is usually pretty good.
132 */
133#$d_dbl_dig HAS_DBL_DIG /* */
134
135/* HAS_DIFFTIME:
136 * This symbol, if defined, indicates that the difftime routine is
137 * available.
138 */
139#$d_difftime HAS_DIFFTIME /**/
13281fa4 140
ecfc5424 141/* HAS_DLERROR:
142 * This symbol, if defined, indicates that the dlerror routine is
143 * available to return a string describing the last error that
144 * occurred from a call to dlopen(), dlclose() or dlsym().
145 */
146#$d_dlerror HAS_DLERROR /**/
147
dfe9444c 148/* SETUID_SCRIPTS_ARE_SECURE_NOW:
149 * This symbol, if defined, indicates that the bug that prevents
150 * setuid scripts from being secure is not present in this kernel.
151 */
152/* DOSUID:
153 * This symbol, if defined, indicates that the C program should
154 * check the script that it is executing for setuid/setgid bits, and
155 * attempt to emulate setuid/setgid on systems that have disabled
156 * setuid #! scripts because the kernel can't do it securely.
157 * It is up to the package designer to make sure that this emulation
158 * is done securely. Among other things, it should do an fstat on
159 * the script it just opened to make sure it really is a setuid/setgid
160 * script, it should make sure the arguments passed correspond exactly
161 * to the argument on the #! line, and it should not trust any
162 * subprocesses to which it must pass the filename rather than the
163 * file descriptor of the script to be executed.
164 */
165#$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/
166#$d_dosuid DOSUID /**/
167
2304df62 168/* HAS_DUP2:
169 * This symbol, if defined, indicates that the dup2 routine is
170 * available to duplicate file descriptors.
a687059c 171 */
2304df62 172#$d_dup2 HAS_DUP2 /**/
a687059c 173
2304df62 174/* HAS_FCHMOD:
378cc40b 175 * This symbol, if defined, indicates that the fchmod routine is available
176 * to change mode of opened files. If unavailable, use chmod().
177 */
2304df62 178#$d_fchmod HAS_FCHMOD /**/
378cc40b 179
2304df62 180/* HAS_FCHOWN:
378cc40b 181 * This symbol, if defined, indicates that the fchown routine is available
182 * to change ownership of opened files. If unavailable, use chown().
183 */
2304df62 184#$d_fchown HAS_FCHOWN /**/
378cc40b 185
2304df62 186/* HAS_FCNTL:
fe14fcc3 187 * This symbol, if defined, indicates to the C program that
188 * the fcntl() function exists.
a687059c 189 */
2304df62 190#$d_fcntl HAS_FCNTL /**/
a687059c 191
a0d0e21e 192/* HAS_FGETPOS:
193 * This symbol, if defined, indicates that the fgetpos routine is
194 * available to get the file position indicator, similar to ftell().
195 */
196#$d_fgetpos HAS_FGETPOS /**/
197
2304df62 198/* HAS_FLOCK:
199 * This symbol, if defined, indicates that the flock routine is
a687059c 200 * available to do file locking.
201 */
2304df62 202#$d_flock HAS_FLOCK /**/
a687059c 203
a0d0e21e 204/* HAS_FORK:
205 * This symbol, if defined, indicates that the fork routine is
206 * available.
207 */
208#$d_fork HAS_FORK /**/
209
210/* HAS_FSETPOS:
211 * This symbol, if defined, indicates that the fsetpos routine is
212 * available to set the file position indicator, similar to fseek().
213 */
214#$d_fsetpos HAS_FSETPOS /**/
215
5f05dabc 216/* HAS_GETTIMEOFDAY:
217 * This symbol, if defined, indicates that the gettimeofday() system
218 * call is available for a sub-second accuracy clock. Usually, the file
219 * <sys/resource.h> needs to be included (see I_SYS_RESOURCE).
220 * The type "Timeval" should be used to refer to "struct timeval".
221 */
222#$d_gettimeod HAS_GETTIMEOFDAY /**/
b4eb6b3d 223#ifdef HAS_GETTIMEOFDAY
224#define Timeval struct timeval /* Structure used by gettimeofday() */
225#endif
5f05dabc 226
2304df62 227/* HAS_GETGROUPS:
378cc40b 228 * This symbol, if defined, indicates that the getgroups() routine is
229 * available to get the list of process groups. If unavailable, multiple
230 * groups are probably not supported.
231 */
2304df62 232#$d_getgrps HAS_GETGROUPS /**/
378cc40b 233
a0d0e21e 234/* HAS_GETLOGIN:
235 * This symbol, if defined, indicates that the getlogin routine is
236 * available to get the login name.
237 */
238#$d_getlogin HAS_GETLOGIN /**/
239
dfe9444c 240/* HAS_GETPGID:
241 * This symbol, if defined, indicates to the C program that
242 * the getpgid(pid) function is available to get the
243 * process group id.
244 */
245#$d_getpgid HAS_GETPGID /**/
246
2304df62 247/* HAS_GETPGRP2:
d8f2e4cc 248 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
249 * routine is available to get the current process group.
250 */
2304df62 251#$d_getpgrp2 HAS_GETPGRP2 /**/
d8f2e4cc 252
a0d0e21e 253/* HAS_GETPPID:
254 * This symbol, if defined, indicates that the getppid routine is
255 * available to get the parent process ID.
256 */
257#$d_getppid HAS_GETPPID /**/
258
2304df62 259/* HAS_GETPRIORITY:
260 * This symbol, if defined, indicates that the getpriority routine is
a687059c 261 * available to get a process's priority.
262 */
2304df62 263#$d_getprior HAS_GETPRIORITY /**/
a687059c 264
dfe9444c 265/* HAS_INET_ATON:
266 * This symbol, if defined, indicates to the C program that the
267 * inet_aton() function is available to parse IP address "dotted-quad"
268 * strings.
ecfc5424 269 */
dfe9444c 270#$d_inetaton HAS_INET_ATON /**/
ecfc5424 271
2304df62 272/* HAS_KILLPG:
378cc40b 273 * This symbol, if defined, indicates that the killpg routine is available
274 * to kill process groups. If unavailable, you probably should use kill
275 * with a negative process number.
276 */
2304df62 277#$d_killpg HAS_KILLPG /**/
378cc40b 278
2304df62 279/* HAS_LINK:
280 * This symbol, if defined, indicates that the link routine is
281 * available to create hard links.
0d3e774c 282 */
2304df62 283#$d_link HAS_LINK /**/
0d3e774c 284
ecfc5424 285/* HAS_LOCALECONV:
286 * This symbol, if defined, indicates that the localeconv routine is
287 * available for numeric and monetary formatting conventions.
288 */
289#$d_locconv HAS_LOCALECONV /**/
290
a0d0e21e 291/* HAS_LOCKF:
292 * This symbol, if defined, indicates that the lockf routine is
293 * available to do file locking.
294 */
295#$d_lockf HAS_LOCKF /**/
296
2304df62 297/* HAS_LSTAT:
298 * This symbol, if defined, indicates that the lstat routine is
299 * available to do file stats on symbolic links.
a687059c 300 */
2304df62 301#$d_lstat HAS_LSTAT /**/
a687059c 302
a0d0e21e 303/* HAS_MBLEN:
304 * This symbol, if defined, indicates that the mblen routine is available
305 * to find the number of bytes in a multibye character.
306 */
307#$d_mblen HAS_MBLEN /**/
308
309/* HAS_MBSTOWCS:
310 * This symbol, if defined, indicates that the mbstowcs routine is
311 * available to covert a multibyte string into a wide character string.
312 */
313#$d_mbstowcs HAS_MBSTOWCS /**/
314
315/* HAS_MBTOWC:
316 * This symbol, if defined, indicates that the mbtowc routine is available
317 * to covert a multibyte to a wide character.
318 */
319#$d_mbtowc HAS_MBTOWC /**/
320
2304df62 321/* HAS_MEMCMP:
322 * This symbol, if defined, indicates that the memcmp routine is available
323 * to compare blocks of memory.
378cc40b 324 */
2304df62 325#$d_memcmp HAS_MEMCMP /**/
326
327/* HAS_MEMCPY:
9f971974 328 * This symbol, if defined, indicates that the memcpy routine is available
2304df62 329 * to copy blocks of memory.
9f971974 330 */
2304df62 331#$d_memcpy HAS_MEMCPY /**/
9f971974 332
2304df62 333/* HAS_MEMMOVE:
9f971974 334 * This symbol, if defined, indicates that the memmove routine is available
2304df62 335 * to copy potentially overlapping blocks of memory. This should be used
336 * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
337 * own version.
9f971974 338 */
2304df62 339#$d_memmove HAS_MEMMOVE /**/
9f971974 340
2304df62 341/* HAS_MEMSET:
9f971974 342 * This symbol, if defined, indicates that the memset routine is available
2304df62 343 * to set blocks of memory.
9f971974 344 */
2304df62 345#$d_memset HAS_MEMSET /**/
378cc40b 346
2304df62 347/* HAS_MKDIR:
a687059c 348 * This symbol, if defined, indicates that the mkdir routine is available
349 * to create directories. Otherwise you should fork off a new process to
350 * exec /bin/mkdir.
351 */
2304df62 352#$d_mkdir HAS_MKDIR /**/
fe14fcc3 353
ecfc5424 354/* HAS_MKFIFO:
355 * This symbol, if defined, indicates that the mkfifo routine is
356 * available to create FIFOs. Otherwise, mknod should be able to
357 * do it for you. However, if mkfifo is there, mknod might require
358 * super-user privileges which mkfifo will not.
359 */
360#$d_mkfifo HAS_MKFIFO /**/
361
a0d0e21e 362/* HAS_MKTIME:
363 * This symbol, if defined, indicates that the mktime routine is
364 * available.
365 */
366#$d_mktime HAS_MKTIME /**/
367
fe749a9f 368/* HAS_MSYNC:
369 * This symbol, if defined, indicates that the msync system call is
370 * available to synchronize a mapped file.
371 */
372#$d_msync HAS_MSYNC /**/
373
374/* HAS_MUNMAP:
375 * This symbol, if defined, indicates that the munmap system call is
376 * available to unmap a region, usually mapped by mmap().
377 */
378#$d_munmap HAS_MUNMAP /**/
379
a0d0e21e 380/* HAS_NICE:
381 * This symbol, if defined, indicates that the nice routine is
382 * available.
fe14fcc3 383 */
a0d0e21e 384#$d_nice HAS_NICE /**/
a687059c 385
ecfc5424 386/* HAS_PATHCONF:
387 * This symbol, if defined, indicates that pathconf() is available
388 * to determine file-system related limits and options associated
389 * with a given filename.
390 */
391/* HAS_FPATHCONF:
392 * This symbol, if defined, indicates that pathconf() is available
393 * to determine file-system related limits and options associated
394 * with a given open file descriptor.
395 */
396#$d_pathconf HAS_PATHCONF /**/
397#$d_fpathconf HAS_FPATHCONF /**/
398
a0d0e21e 399/* HAS_PAUSE:
400 * This symbol, if defined, indicates that the pause routine is
401 * available to suspend a process until a signal is received.
a687059c 402 */
a0d0e21e 403#$d_pause HAS_PAUSE /**/
a687059c 404
a0d0e21e 405/* HAS_PIPE:
406 * This symbol, if defined, indicates that the pipe routine is
407 * available to create an inter-process channel.
fe14fcc3 408 */
a0d0e21e 409#$d_pipe HAS_PIPE /**/
410
8e07c86e 411/* HAS_POLL:
412 * This symbol, if defined, indicates that the poll routine is
dfe9444c 413 * available to poll active file descriptors. You may safely
414 * include <poll.h> when this symbol is defined.
8e07c86e 415 */
416#$d_poll HAS_POLL /**/
417
a0d0e21e 418/* HAS_READDIR:
419 * This symbol, if defined, indicates that the readdir routine is
420 * available to read directory entries. You may have to include
421 * <dirent.h>. See I_DIRENT.
422 */
423#$d_readdir HAS_READDIR /**/
424
425/* HAS_SEEKDIR:
426 * This symbol, if defined, indicates that the seekdir routine is
427 * available. You may have to include <dirent.h>. See I_DIRENT.
428 */
429#$d_seekdir HAS_SEEKDIR /**/
430
431/* HAS_TELLDIR:
432 * This symbol, if defined, indicates that the telldir routine is
433 * available. You may have to include <dirent.h>. See I_DIRENT.
434 */
435#$d_telldir HAS_TELLDIR /**/
436
437/* HAS_REWINDDIR:
438 * This symbol, if defined, indicates that the rewinddir routine is
439 * available. You may have to include <dirent.h>. See I_DIRENT.
440 */
441#$d_rewinddir HAS_REWINDDIR /**/
442
443/* HAS_READLINK:
444 * This symbol, if defined, indicates that the readlink routine is
445 * available to read the value of a symbolic link.
446 */
447#$d_readlink HAS_READLINK /**/
fe14fcc3 448
2304df62 449/* HAS_RENAME:
378cc40b 450 * This symbol, if defined, indicates that the rename routine is available
451 * to rename files. Otherwise you should do the unlink(), link(), unlink()
452 * trick.
453 */
2304df62 454#$d_rename HAS_RENAME /**/
378cc40b 455
2304df62 456/* HAS_RMDIR:
457 * This symbol, if defined, indicates that the rmdir routine is
458 * available to remove directories. Otherwise you should fork off a
459 * new process to exec /bin/rmdir.
9f971974 460 */
2304df62 461#$d_rmdir HAS_RMDIR /**/
9f971974 462
2304df62 463/* HAS_SELECT:
464 * This symbol, if defined, indicates that the select routine is
465 * available to select active file descriptors. If the timeout field
466 * is used, <sys/time.h> may need to be included.
fe14fcc3 467 */
2304df62 468#$d_select HAS_SELECT /**/
a687059c 469
2304df62 470/* HAS_SETEGID:
378cc40b 471 * This symbol, if defined, indicates that the setegid routine is available
472 * to change the effective gid of the current program.
473 */
2304df62 474#$d_setegid HAS_SETEGID /**/
378cc40b 475
2304df62 476/* HAS_SETEUID:
378cc40b 477 * This symbol, if defined, indicates that the seteuid routine is available
478 * to change the effective uid of the current program.
479 */
2304df62 480#$d_seteuid HAS_SETEUID /**/
481
a0d0e21e 482/* HAS_SETLINEBUF:
483 * This symbol, if defined, indicates that the setlinebuf routine is
484 * available to change stderr or stdout from block-buffered or unbuffered
485 * to a line-buffered mode.
486 */
487#$d_setlinebuf HAS_SETLINEBUF /**/
488
489/* HAS_SETLOCALE:
490 * This symbol, if defined, indicates that the setlocale routine is
491 * available to handle locale-specific ctype implementations.
492 */
493#$d_setlocale HAS_SETLOCALE /**/
494
dfe9444c 495/* HAS_SETPGID:
496 * This symbol, if defined, indicates that the setpgid(pid, gpid)
497 * routine is available to set process group ID.
498 */
499#$d_setpgid HAS_SETPGID /**/
500
2304df62 501/* HAS_SETPGRP2:
d8f2e4cc 502 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
503 * routine is available to set the current process group.
504 */
2304df62 505#$d_setpgrp2 HAS_SETPGRP2 /**/
d8f2e4cc 506
2304df62 507/* HAS_SETPRIORITY:
508 * This symbol, if defined, indicates that the setpriority routine is
a687059c 509 * available to set a process's priority.
510 */
2304df62 511#$d_setprior HAS_SETPRIORITY /**/
a687059c 512
2304df62 513/* HAS_SETREGID:
a687059c 514 * This symbol, if defined, indicates that the setregid routine is
2304df62 515 * available to change the real and effective gid of the current
516 * process.
a687059c 517 */
2304df62 518/* HAS_SETRESGID:
a687059c 519 * This symbol, if defined, indicates that the setresgid routine is
520 * available to change the real, effective and saved gid of the current
2304df62 521 * process.
a687059c 522 */
2304df62 523#$d_setregid HAS_SETREGID /**/
524#$d_setresgid HAS_SETRESGID /**/
a687059c 525
2304df62 526/* HAS_SETREUID:
a687059c 527 * This symbol, if defined, indicates that the setreuid routine is
2304df62 528 * available to change the real and effective uid of the current
529 * process.
a687059c 530 */
2304df62 531/* HAS_SETRESUID:
a687059c 532 * This symbol, if defined, indicates that the setresuid routine is
533 * available to change the real, effective and saved uid of the current
2304df62 534 * process.
a687059c 535 */
2304df62 536#$d_setreuid HAS_SETREUID /**/
537#$d_setresuid HAS_SETRESUID /**/
a687059c 538
2304df62 539/* HAS_SETRGID:
378cc40b 540 * This symbol, if defined, indicates that the setrgid routine is available
541 * to change the real gid of the current program.
542 */
2304df62 543#$d_setrgid HAS_SETRGID /**/
378cc40b 544
2304df62 545/* HAS_SETRUID:
378cc40b 546 * This symbol, if defined, indicates that the setruid routine is available
547 * to change the real uid of the current program.
548 */
2304df62 549#$d_setruid HAS_SETRUID /**/
550
551/* HAS_SETSID:
552 * This symbol, if defined, indicates that the setsid routine is
553 * available to set the process group ID.
554 */
555#$d_setsid HAS_SETSID /**/
fe14fcc3 556
a0d0e21e 557/* Shmat_t:
558 * This symbol holds the return type of the shmat() system call.
559 * Usually set to 'void *' or 'char *'.
fe14fcc3 560 */
a0d0e21e 561/* HAS_SHMAT_PROTOTYPE:
562 * This symbol, if defined, indicates that the sys/shm.h includes
563 * a prototype for shmat(). Otherwise, it is up to the program to
b0ca4213 564 * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
a0d0e21e 565 * but not always right so it should be emitted by the program only
566 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
fe14fcc3 567 */
a0d0e21e 568#define Shmat_t $shmattype /**/
569#$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/
fe14fcc3 570
dfe9444c 571/* HAS_STRCHR:
572 * This symbol is defined to indicate that the strchr()/strrchr()
573 * functions are available for string searching. If not, try the
574 * index()/rindex() pair.
16d20bd9 575 */
dfe9444c 576/* HAS_INDEX:
577 * This symbol is defined to indicate that the index()/rindex()
578 * functions are available for string searching.
c2960299 579 */
dfe9444c 580#$d_strchr HAS_STRCHR /**/
581#$d_index HAS_INDEX /**/
582
583/* HAS_STRCOLL:
584 * This symbol, if defined, indicates that the strcoll routine is
585 * available to compare strings using collating information.
16d20bd9 586 */
dfe9444c 587#$d_strcoll HAS_STRCOLL /**/
588
589/* USE_STRUCT_COPY:
590 * This symbol, if defined, indicates that this C compiler knows how
591 * to copy structures. If undefined, you'll need to use a block copy
592 * routine of some sort instead.
c2960299 593 */
dfe9444c 594#$d_strctcpy USE_STRUCT_COPY /**/
8d063cd8 595
a89d8a78 596/* HAS_STRTOD:
597 * This symbol, if defined, indicates that the strtod routine is
5f05dabc 598 * available to provide better numeric string conversion than atof().
a89d8a78 599 */
600#$d_strtod HAS_STRTOD /**/
601
602/* HAS_STRTOL:
5f05dabc 603 * This symbol, if defined, indicates that the strtol routine is available
604 * to provide better numeric string conversion than atoi() and friends.
a89d8a78 605 */
606#$d_strtol HAS_STRTOL /**/
607
a0d0e21e 608/* HAS_STRXFRM:
609 * This symbol, if defined, indicates that the strxfrm() routine is
610 * available to transform strings.
611 */
612#$d_strxfrm HAS_STRXFRM /**/
613
2304df62 614/* HAS_SYMLINK:
2e1b3b7e 615 * This symbol, if defined, indicates that the symlink routine is available
616 * to create symbolic links.
617 */
2304df62 618#$d_symlink HAS_SYMLINK /**/
2e1b3b7e 619
2304df62 620/* HAS_SYSCALL:
621 * This symbol, if defined, indicates that the syscall routine is
622 * available to call arbitrary system calls. If undefined, that's tough.
a687059c 623 */
2304df62 624#$d_syscall HAS_SYSCALL /**/
e5d73d77 625
ecfc5424 626/* HAS_SYSCONF:
627 * This symbol, if defined, indicates that sysconf() is available
628 * to determine system related limits and options.
629 */
630#$d_sysconf HAS_SYSCONF /**/
631
2304df62 632/* HAS_SYSTEM:
633 * This symbol, if defined, indicates that the system routine is
634 * available to issue a shell command.
9f971974 635 */
2304df62 636#$d_system HAS_SYSTEM /**/
9f971974 637
a0d0e21e 638/* HAS_TCGETPGRP:
639 * This symbol, if defined, indicates that the tcgetpgrp routine is
640 * available to get foreground process group ID.
85e6fe83 641 */
a0d0e21e 642#$d_tcgetpgrp HAS_TCGETPGRP /**/
643
644/* HAS_TCSETPGRP:
645 * This symbol, if defined, indicates that the tcsetpgrp routine is
646 * available to set foreground process group ID.
647 */
648#$d_tcsetpgrp HAS_TCSETPGRP /**/
85e6fe83 649
2304df62 650/* HAS_TRUNCATE:
87250799 651 * This symbol, if defined, indicates that the truncate routine is
652 * available to truncate files.
653 */
2304df62 654#$d_truncate HAS_TRUNCATE /**/
87250799 655
a0d0e21e 656/* HAS_TZNAME:
657 * This symbol, if defined, indicates that the tzname[] array is
658 * available to access timezone names.
659 */
660#$d_tzname HAS_TZNAME /**/
661
662/* HAS_UMASK:
663 * This symbol, if defined, indicates that the umask routine is
664 * available to set and get the value of the file creation mask.
665 */
666#$d_umask HAS_UMASK /**/
667
b4eb6b3d 668/* HASVOLATILE:
669 * This symbol, if defined, indicates that this C compiler knows about
670 * the volatile declaration.
671 */
672#$d_volatile HASVOLATILE /**/
673#ifndef HASVOLATILE
674#define volatile
675#endif
676
2304df62 677/* HAS_WAIT4:
bf38876a 678 * This symbol, if defined, indicates that wait4() exists.
679 */
2304df62 680#$d_wait4 HAS_WAIT4 /**/
bf38876a 681
2304df62 682/* HAS_WAITPID:
683 * This symbol, if defined, indicates that the waitpid routine is
684 * available to wait for child process.
39c3038c 685 */
2304df62 686#$d_waitpid HAS_WAITPID /**/
39c3038c 687
a0d0e21e 688/* HAS_WCSTOMBS:
689 * This symbol, if defined, indicates that the wcstombs routine is
690 * available to convert wide character strings to multibyte strings.
691 */
692#$d_wcstombs HAS_WCSTOMBS /**/
693
694/* HAS_WCTOMB:
695 * This symbol, if defined, indicates that the wctomb routine is available
696 * to covert a wide character to a multibyte.
697 */
698#$d_wctomb HAS_WCTOMB /**/
699
28e8609d 700/* I_ARPA_INET:
5ff3f7a4 701 * This symbol, if defined, indicates to the C program that it should
702 * include <arpa/inet.h> to get inet_addr and friends declarations.
28e8609d 703 */
5ff3f7a4 704#$i_arpainet I_ARPA_INET /**/
28e8609d 705
dfe9444c 706/* I_DBM:
707 * This symbol, if defined, indicates that <dbm.h> exists and should
708 * be included.
232e078e 709 */
dfe9444c 710/* I_RPCSVC_DBM:
711 * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
712 * should be included.
232e078e 713 */
dfe9444c 714#$i_dbm I_DBM /**/
715#$i_rpcsvcdbm I_RPCSVC_DBM /**/
232e078e 716
2304df62 717/* I_DIRENT:
718 * This symbol, if defined, indicates to the C program that it should
719 * include <dirent.h>. Using this symbol also triggers the definition
720 * of the Direntry_t define which ends up being 'struct dirent' or
721 * 'struct direct' depending on the availability of <dirent.h>.
1c3d792e 722 */
2304df62 723/* DIRNAMLEN:
724 * This symbol, if defined, indicates to the C program that the length
725 * of directory entry names is provided by a d_namlen field. Otherwise
726 * you need to do strlen() on the d_name field.
727 */
a0d0e21e 728/* Direntry_t:
729 * This symbol is set to 'struct direct' or 'struct dirent' depending on
730 * whether dirent is available or not. You should use this pseudo type to
731 * portably declare your directory entries.
732 */
2304df62 733#$i_dirent I_DIRENT /**/
734#$d_dirnamlen DIRNAMLEN /**/
b4eb6b3d 735#define Direntry_t $direntrytype
a0d0e21e 736
737/* I_DLFCN:
738 * This symbol, if defined, indicates that <dlfcn.h> exists and should
739 * be included.
740 */
741#$i_dlfcn I_DLFCN /**/
1c3d792e 742
2304df62 743/* I_FCNTL:
fe14fcc3 744 * This manifest constant tells the C program to include <fcntl.h>.
a687059c 745 */
2304df62 746#$i_fcntl I_FCNTL /**/
a687059c 747
a0d0e21e 748/* I_FLOAT:
749 * This symbol, if defined, indicates to the C program that it should
750 * include <float.h> to get definition of symbols like DBL_MAX or
751 * DBL_MIN, i.e. machine dependent floating point values.
a687059c 752 */
a0d0e21e 753#$i_float I_FLOAT /**/
a687059c 754
a0d0e21e 755/* I_LIMITS:
756 * This symbol, if defined, indicates to the C program that it should
757 * include <limits.h> to get definition of symbols like WORD_BIT or
758 * LONG_MAX, i.e. machine dependant limitations.
759 */
760#$i_limits I_LIMITS /**/
761
dfe9444c 762/* I_LOCALE:
763 * This symbol, if defined, indicates to the C program that it should
764 * include <locale.h>.
765 */
766#$i_locale I_LOCALE /**/
767
a0d0e21e 768/* I_MATH:
769 * This symbol, if defined, indicates to the C program that it should
770 * include <math.h>.
771 */
772#$i_math I_MATH /**/
773
774/* I_MEMORY:
775 * This symbol, if defined, indicates to the C program that it should
776 * include <memory.h>.
777 */
778#$i_memory I_MEMORY /**/
779
232e078e 780/* I_NDBM:
16d20bd9 781 * This symbol, if defined, indicates that <ndbm.h> exists and should
232e078e 782 * be included.
783 */
784#$i_ndbm I_NDBM /**/
785
ecfc5424 786/* I_NET_ERRNO:
787 * This symbol, if defined, indicates that <net/errno.h> exists and
788 * should be included.
2304df62 789 */
ecfc5424 790#$i_neterrno I_NET_ERRNO /**/
2304df62 791
792/* I_NETINET_IN:
03a14243 793 * This symbol, if defined, indicates to the C program that it should
2304df62 794 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
03a14243 795 */
2304df62 796#$i_niin I_NETINET_IN /**/
03a14243 797
dfe9444c 798/* I_SFIO:
799 * This symbol, if defined, indicates to the C program that it should
800 * include <sfio.h>.
801 */
802#$i_sfio I_SFIO /**/
803
2304df62 804/* I_STDDEF:
805 * This symbol, if defined, indicates that <stddef.h> exists and should
a687059c 806 * be included.
807 */
2304df62 808#$i_stddef I_STDDEF /**/
a687059c 809
a0d0e21e 810/* I_STDLIB:
811 * This symbol, if defined, indicates that <stdlib.h> exists and should
812 * be included.
813 */
814#$i_stdlib I_STDLIB /**/
815
816/* I_STRING:
85e6fe83 817 * This symbol, if defined, indicates to the C program that it should
818 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
819 */
820#$i_string I_STRING /**/
821
2304df62 822/* I_SYS_DIR:
823 * This symbol, if defined, indicates to the C program that it should
824 * include <sys/dir.h>.
d8f2e4cc 825 */
2304df62 826#$i_sysdir I_SYS_DIR /**/
827
828/* I_SYS_FILE:
829 * This symbol, if defined, indicates to the C program that it should
830 * include <sys/file.h> to get definition of R_OK and friends.
d8f2e4cc 831 */
2304df62 832#$i_sysfile I_SYS_FILE /**/
833
834/* I_SYS_IOCTL:
835 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
836 * be included. Otherwise, include <sgtty.h> or <termio.h>.
d8f2e4cc 837 */
49a78c82 838/* I_SYS_SOCKIO:
839 * This symbol, if defined, indicates the <sys/sockio.h> should be included
840 * to get socket ioctl options, like SIOCATMARK.
841 */
2304df62 842#$i_sysioctl I_SYS_IOCTL /**/
49a78c82 843#$i_syssockio I_SYS_SOCKIO /**/
2304df62 844
845/* I_SYS_NDIR:
846 * This symbol, if defined, indicates to the C program that it should
847 * include <sys/ndir.h>.
848 */
849#$i_sysndir I_SYS_NDIR /**/
850
a0d0e21e 851/* I_SYS_PARAM:
852 * This symbol, if defined, indicates to the C program that it should
853 * include <sys/param.h>.
854 */
855#$i_sysparam I_SYS_PARAM /**/
856
e876cf0b 857/* I_SYS_RESOURCE:
858 * This symbol, if defined, indicates to the C program that it should
859 * include <sys/resource.h>.
860 */
861#$i_sysresrc I_SYS_RESOURCE /**/
862
2304df62 863/* I_SYS_SELECT:
864 * This symbol, if defined, indicates to the C program that it should
865 * include <sys/select.h> in order to get definition of struct timeval.
866 */
867#$i_sysselct I_SYS_SELECT /**/
868
dfe9444c 869/* I_SYS_STAT:
870 * This symbol, if defined, indicates to the C program that it should
871 * include <sys/stat.h>.
872 */
873#$i_sysstat I_SYS_STAT /**/
874
a0d0e21e 875/* I_SYS_TIMES:
876 * This symbol, if defined, indicates to the C program that it should
877 * include <sys/times.h>.
878 */
879#$i_systimes I_SYS_TIMES /**/
880
bd89102f 881/* I_SYS_TYPES:
882 * This symbol, if defined, indicates to the C program that it should
883 * include <sys/types.h>.
884 */
885#$i_systypes I_SYS_TYPES /**/
886
25f94b33 887/* I_SYS_UN:
888 * This symbol, if defined, indicates to the C program that it should
889 * include <sys/un.h> to get UNIX domain socket definitions.
890 */
891#$i_sysun I_SYS_UN /**/
892
e876cf0b 893/* I_SYS_WAIT:
894 * This symbol, if defined, indicates to the C program that it should
895 * include <sys/wait.h>.
896 */
897#$i_syswait I_SYS_WAIT /**/
898
a0d0e21e 899/* I_TERMIO:
900 * This symbol, if defined, indicates that the program should include
901 * <termio.h> rather than <sgtty.h>. There are also differences in
902 * the ioctl() calls that depend on the value of this symbol.
903 */
904/* I_TERMIOS:
905 * This symbol, if defined, indicates that the program should include
906 * the POSIX termios.h rather than sgtty.h or termio.h.
907 * There are also differences in the ioctl() calls that depend on the
908 * value of this symbol.
909 */
910/* I_SGTTY:
911 * This symbol, if defined, indicates that the program should include
912 * <sgtty.h> rather than <termio.h>. There are also differences in
913 * the ioctl() calls that depend on the value of this symbol.
914 */
915#$i_termio I_TERMIO /**/
916#$i_termios I_TERMIOS /**/
917#$i_sgtty I_SGTTY /**/
918
85e6fe83 919/* I_UNISTD:
920 * This symbol, if defined, indicates to the C program that it should
921 * include <unistd.h>.
922 */
923#$i_unistd I_UNISTD /**/
d8f2e4cc 924
2304df62 925/* I_UTIME:
d8f2e4cc 926 * This symbol, if defined, indicates to the C program that it should
2304df62 927 * include <utime.h>.
d8f2e4cc 928 */
2304df62 929#$i_utime I_UTIME /**/
d8f2e4cc 930
dfe9444c 931/* I_VALUES:
932 * This symbol, if defined, indicates to the C program that it should
933 * include <values.h> to get definition of symbols like MINFLOAT or
934 * MAXLONG, i.e. machine dependant limitations. Probably, you
935 * should use <limits.h> instead, if it is available.
936 */
937#$i_values I_VALUES /**/
938
e876cf0b 939/* I_STDARG:
940 * This symbol, if defined, indicates that <stdarg.h> exists and should
941 * be included.
942 */
943/* I_VARARGS:
944 * This symbol, if defined, indicates to the C program that it should
945 * include <varargs.h>.
946 */
947#$i_stdarg I_STDARG /**/
948#$i_varargs I_VARARGS /**/
949
a0d0e21e 950/* I_VFORK:
951 * This symbol, if defined, indicates to the C program that it should
952 * include vfork.h.
953 */
954#$i_vfork I_VFORK /**/
a687059c 955
b4eb6b3d 956/* CAN_PROTOTYPE:
957 * If defined, this macro indicates that the C compiler can handle
958 * function prototypes.
959 */
a0d0e21e 960/* _:
961 * This macro is used to declare function parameters for folks who want
962 * to make declarations with prototypes using a different style than
963 * the above macros. Use double parentheses. For example:
964 *
965 * int main _((int argc, char *argv[]));
966 */
b4eb6b3d 967#$prototype CAN_PROTOTYPE /**/
968#ifdef CAN_PROTOTYPE
a0d0e21e 969#define _(args) args
b4eb6b3d 970#else
a0d0e21e 971#define _(args) ()
b4eb6b3d 972#endif
85e6fe83 973
dfe9444c 974/* SH_PATH:
975 * This symbol contains the full pathname to the shell used on this
976 * on this system to execute Bourne shell scripts. Usually, this will be
977 * /bin/sh, though it's possible that some systems will have /bin/ksh,
978 * /bin/pdksh, /bin/ash, /bin/bash, or even something such as
979 * D:/bin/sh.exe.
a0d0e21e 980 */
dfe9444c 981#define SH_PATH "$sh" /**/
a0d0e21e 982
aaacdc8b 983/* CROSSCOMPILE:
984 * This symbol, if defined, signifies that we our
985 * build process is a cross-compilation.
986 */
987#$crosscompile CROSSCOMPILE /**/
988
989/* INTSIZE:
990 * This symbol contains the value of sizeof(int) so that the C
991 * preprocessor can make decisions based on it.
992 */
993/* LONGSIZE:
994 * This symbol contains the value of sizeof(long) so that the C
995 * preprocessor can make decisions based on it.
996 */
997/* SHORTSIZE:
998 * This symbol contains the value of sizeof(short) so that the C
999 * preprocessor can make decisions based on it.
1000 */
1001#define INTSIZE $intsize /**/
1002#define LONGSIZE $longsize /**/
1003#define SHORTSIZE $shortsize /**/
1004
1005/* MULTIARCH:
1006 * This symbol, if defined, signifies that the build
1007 * process will produce some binary files that are going to be
1008 * used in a cross-platform environment. This is the case for
1009 * example with the NeXT "fat" binaries that contain executables
1010 * for several CPUs.
1011 */
1012#$multiarch MULTIARCH /**/
1013
de1c2614 1014/* HAS_QUAD:
1015 * This symbol, if defined, tells that there's a 64-bit integer type,
1b8cd678 1016 * Quad_t, and its unsigned counterpar, Uquad_t. QUADKIND will be one
1017 * of QUAD_IS_INT, QUAD_IS_LONG, QUAD_IS_LONG_LONG, or QUAD_IS_INT64_T.
a22e52b9 1018 */
de1c2614 1019#$d_quad HAS_QUAD /**/
b4eb6b3d 1020#ifdef HAS_QUAD
1021# define Quad_t $quadtype /**/
1022# define Uquad_t $uquadtype /**/
1023# define QUADKIND $quadkind /**/
1024# define QUAD_IS_INT 1
1025# define QUAD_IS_LONG 2
1026# define QUAD_IS_LONG_LONG 3
1027# define QUAD_IS_INT64_T 4
1028#endif
a22e52b9 1029
5ff3f7a4 1030/* HAS_ACCESSX:
1031 * This symbol, if defined, indicates that the accessx routine is
1032 * available to do extended access checks.
1033 */
1034#$d_accessx HAS_ACCESSX /**/
1035
1036/* HAS_EACCESS:
1037 * This symbol, if defined, indicates that the eaccess routine is
1038 * available to do extended access checks.
1039 */
1040#$d_eaccess HAS_EACCESS /**/
1041
1042/* I_SYS_ACCESS:
1043 * This symbol, if defined, indicates to the C program that it should
85ab1d1d 1044 * include <sys/access.h>.
5ff3f7a4 1045 */
1046#$i_sysaccess I_SYS_ACCESS /**/
1047
1048/* I_SYS_SECURITY:
1049 * This symbol, if defined, indicates to the C program that it should
1050 * include <sys/security.h>.
1051 */
1052#$i_syssecrt I_SYS_SECURITY /**/
1053
ff935051 1054/* OSNAME:
1055 * This symbol contains the name of the operating system, as determined
1056 * by Configure. You shouldn't rely on it too much; the specific
1057 * feature tests from Configure are generally more reliable.
1058 */
1059#define OSNAME "$osname" /**/
1060
dfe9444c 1061/* MEM_ALIGNBYTES:
68c15b6f 1062 * This symbol contains the number of bytes required to align a
87b71857 1063 * double, or a long double when applicable. Usual values are 2,
1064 * 4 and 8. The default is eight, for safety.
5f05dabc 1065 */
b4eb6b3d 1066#if defined(CROSSCOMPILE) || defined(MULTIARCH)
1067# define MEM_ALIGNBYTES 8
1068#else
1069#define MEM_ALIGNBYTES $alignbytes
1070#endif
5f05dabc 1071
ff935051 1072/* ARCHLIB:
1073 * This variable, if defined, holds the name of the directory in
1074 * which the user wants to put architecture-dependent public
1075 * library files for $package. It is most often a local directory
1076 * such as /usr/local/lib. Programs using this variable must be
1077 * prepared to deal with filename expansion. If ARCHLIB is the
1078 * same as PRIVLIB, it is not defined, since presumably the
1079 * program already searches PRIVLIB.
1080 */
1081/* ARCHLIB_EXP:
1082 * This symbol contains the ~name expanded version of ARCHLIB, to be used
1083 * in programs that are not prepared to deal with ~ expansion at run-time.
1084 */
1085#$d_archlib ARCHLIB "$archlib" /**/
1086#$d_archlib ARCHLIB_EXP "$archlibexp" /**/
1087
1088/* ARCHNAME:
1089 * This symbol holds a string representing the architecture name.
1090 * It may be used to construct an architecture-dependant pathname
1091 * where library files may be held under a private library, for
1092 * instance.
1093 */
1094#define ARCHNAME "$archname" /**/
1095
1096/* HAS_ATOLF:
1097 * This symbol, if defined, indicates that the atolf routine is
1098 * available to convert strings into long doubles.
1099 */
1100#$d_atolf HAS_ATOLF /**/
1101
1102/* HAS_ATOLL:
1103 * This symbol, if defined, indicates that the atoll routine is
1104 * available to convert strings into long longs.
1105 */
1106#$d_atoll HAS_ATOLL /**/
1107
1108/* BIN:
1109 * This symbol holds the path of the bin directory where the package will
1110 * be installed. Program must be prepared to deal with ~name substitution.
1111 */
1112/* BIN_EXP:
1113 * This symbol is the filename expanded version of the BIN symbol, for
1114 * programs that do not want to deal with that at run-time.
1115 */
1116#define BIN "$bin" /**/
1117#define BIN_EXP "$binexp" /**/
1118
1119/* PERL_BINCOMPAT_5005:
f78bfc9c 1120 * This symbol, if defined, indicates that this version of Perl should be
ff935051 1121 * binary-compatible with Perl 5.005. This is impossible for builds
1122 * that use features like threads and multiplicity it is always $undef
1123 * for those versions.
1124 */
1125#$d_bincompat5005 PERL_BINCOMPAT_5005 /**/
1126
8e07c86e 1127/* BYTEORDER:
e876cf0b 1128 * This symbol holds the hexadecimal constant defined in byteorder,
8e07c86e 1129 * i.e. 0x1234 or 0x4321, etc...
68c15b6f 1130 * If the compiler supports cross-compiling or multiple-architecture
1131 * binaries (eg. on NeXT systems), use compiler-defined macros to
1132 * determine the byte order.
7bac28a0 1133 * On NeXT 3.2 (and greater), you can build "Fat" Multiple Architecture
e876cf0b 1134 * Binaries (MAB) on either big endian or little endian machines.
1135 * The endian-ness is available at compile-time. This only matters
1136 * for perl, where the config.h can be generated and installed on
1137 * one system, and used by a different architecture to build an
1138 * extension. Older versions of NeXT that might not have
1139 * defined either *_ENDIAN__ were all on Motorola 680x0 series,
1140 * so the default case (for NeXT) is big endian to catch them.
1141 * This might matter for NeXT 3.0.
8e07c86e 1142 */
b4eb6b3d 1143#if defined(CROSSCOMPILE) || defined(MULTIARCH)
1144# ifdef __LITTLE_ENDIAN__
1145# if LONGSIZE == 4
1146# define BYTEORDER 0x1234
1147# else
1148# if LONGSIZE == 8
1149# define BYTEORDER 0x12345678
1150# endif
1151# endif
1152# else
1153# ifdef __BIG_ENDIAN__
1154# if LONGSIZE == 4
1155# define BYTEORDER 0x4321
1156# else
1157# if LONGSIZE == 8
1158# define BYTEORDER 0x87654321
1159# endif
1160# endif
1161# endif
1162# endif
1163# if !defined(BYTEORDER) && (defined(NeXT) || defined(__NeXT__))
1164# define BYTEORDER 0x4321
1165# endif
1166#else
1167#define BYTEORDER 0x$byteorder /* large digits for MSB */
1168#endif /* NeXT */
8e07c86e 1169
ff935051 1170/* CAT2:
1171 * This macro catenates 2 tokens together.
1172 */
1173/* STRINGIFY:
1174 * This macro surrounds its token with double quotes.
1175 */
b4eb6b3d 1176#if $cpp_stuff == 1
497711e7 1177#define CAT2(a,b) a/**/b
1178#define STRINGIFY(a) "a"
b4eb6b3d 1179 /* If you can get stringification with catify, tell me how! */
1180#endif
1181#if $cpp_stuff == 42
1182#define PeRl_CaTiFy(a, b) a ## b
1183#define PeRl_StGiFy(a) #a
1184/* the additional level of indirection enables these macros to be
1185 * used as arguments to other macros. See K&R 2nd ed., page 231. */
497711e7 1186#define CAT2(a,b) PeRl_CaTiFy(a,b)
b4eb6b3d 1187#define StGiFy(a) PeRl_StGiFy(a)
497711e7 1188#define STRINGIFY(a) PeRl_StGiFy(a)
b4eb6b3d 1189#endif
1190#if $cpp_stuff != 1 && $cpp_stuff != 42
1191# include "Bletch: How does this C preprocessor catenate tokens?"
1192#endif
ff935051 1193
1194/* CPPSTDIN:
1195 * This symbol contains the first part of the string which will invoke
1196 * the C preprocessor on the standard input and produce to standard
1197 * output. Typical value of "cc -E" or "/lib/cpp", but it can also
1198 * call a wrapper. See CPPRUN.
1199 */
1200/* CPPMINUS:
1201 * This symbol contains the second part of the string which will invoke
1202 * the C preprocessor on the standard input and produce to standard
1203 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
1204 * to specify standard input, otherwise the value is "".
1205 */
1206/* CPPRUN:
1207 * This symbol contains the string which will invoke a C preprocessor on
1208 * the standard input and produce to standard output. It needs to end
1209 * with CPPLAST, after all other preprocessor flags have been specified.
1210 * The main difference with CPPSTDIN is that this program will never be a
1211 * pointer to a shell wrapper, i.e. it will be empty if no preprocessor is
1212 * available directly to the user. Note that it may well be different from
1213 * the preprocessor used to compile the C program.
1214 */
c71a9cee 1215/* CPPLAST:
1216 * This symbol is intended to be used along with CPPRUN in the same manner
1217 * symbol CPPMINUS is used with CPPSTDIN. It contains either "-" or "".
1218 */
ff935051 1219#define CPPSTDIN "$cppstdin"
1220#define CPPMINUS "$cppminus"
1221#define CPPRUN "$cpprun"
c71a9cee 1222#define CPPLAST "$cpplast"
ff935051 1223
a7fea17f 1224/* HAS__FWALK:
1225 * This symbol, if defined, indicates that the _fwalk system call is
1226 * available to apply a function to all the file handles.
1227 */
1228#$d__fwalk HAS__FWALK /**/
1229
ff935051 1230/* HAS_ACCESS:
1231 * This manifest constant lets the C program know that the access()
1232 * system call is available to check for accessibility using real UID/GID.
1233 * (always present on UNIX.)
1234 */
1235#$d_access HAS_ACCESS /**/
1236
dfe9444c 1237/* CASTI32:
1238 * This symbol is defined if the C compiler can cast negative
1239 * or large floating point numbers to 32-bit ints.
1aef975c 1240 */
dfe9444c 1241#$d_casti32 CASTI32 /**/
85e6fe83 1242
dfe9444c 1243/* CASTNEGFLOAT:
1244 * This symbol is defined if the C compiler can cast negative
1245 * numbers to unsigned longs, ints and shorts.
85e6fe83 1246 */
dfe9444c 1247/* CASTFLAGS:
1248 * This symbol contains flags that say what difficulties the compiler
1249 * has casting odd floating values to unsigned long:
1250 * 0 = ok
1251 * 1 = couldn't cast < 0
1252 * 2 = couldn't cast >= 0x80000000
1253 * 4 = couldn't cast in argument expression list
bccf77a5 1254 */
dfe9444c 1255#$d_castneg CASTNEGFLOAT /**/
1256#define CASTFLAGS $castflags /**/
1257
1258/* VOID_CLOSEDIR:
1259 * This symbol, if defined, indicates that the closedir() routine
1260 * does not return a value.
bccf77a5 1261 */
dfe9444c 1262#$d_void_closedir VOID_CLOSEDIR /**/
bccf77a5 1263
ff935051 1264/* HAS_CSH:
1265 * This symbol, if defined, indicates that the C-shell exists.
1266 */
1267/* CSH:
1268 * This symbol, if defined, contains the full pathname of csh.
1269 */
b4eb6b3d 1270#$d_csh HAS_CSH /**/
1271#ifdef HAS_CSH
1272#define CSH "$full_csh" /**/
1273#endif
ff935051 1274
1275/* DLSYM_NEEDS_UNDERSCORE:
1276 * This symbol, if defined, indicates that we need to prepend an
1277 * underscore to the symbol name before calling dlsym(). This only
1278 * makes sense if you *have* dlsym, which we will presume is the
1279 * case if you're using dl_dlopen.xs.
1280 */
1281#$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/
1282
1283/* HAS_DRAND48_PROTO:
1284 * This symbol, if defined, indicates that the system provides
1285 * a prototype for the drand48() function. Otherwise, it is up
1286 * to the program to supply one. A good guess is
1287 * extern double drand48 _((void));
1288 */
1289#$d_drand48proto HAS_DRAND48_PROTO /**/
1290
1291/* HAS_ENDGRENT:
1292 * This symbol, if defined, indicates that the getgrent routine is
1293 * available for finalizing sequential access of the group database.
1294 */
1295#$d_endgrent HAS_ENDGRENT /**/
1296
1297/* HAS_ENDHOSTENT:
1298 * This symbol, if defined, indicates that the endhostent() routine is
1299 * available to close whatever was being used for host queries.
1300 */
1301#$d_endhent HAS_ENDHOSTENT /**/
1302
1303/* HAS_ENDNETENT:
1304 * This symbol, if defined, indicates that the endnetent() routine is
1305 * available to close whatever was being used for network queries.
1306 */
1307#$d_endnent HAS_ENDNETENT /**/
1308
1309/* HAS_ENDPROTOENT:
1310 * This symbol, if defined, indicates that the endprotoent() routine is
1311 * available to close whatever was being used for protocol queries.
1312 */
1313#$d_endpent HAS_ENDPROTOENT /**/
1314
1315/* HAS_ENDPWENT:
1316 * This symbol, if defined, indicates that the getgrent routine is
1317 * available for finalizing sequential access of the passwd database.
1318 */
1319#$d_endpwent HAS_ENDPWENT /**/
1320
1321/* HAS_ENDSERVENT:
1322 * This symbol, if defined, indicates that the endservent() routine is
1323 * available to close whatever was being used for service queries.
1324 */
1325#$d_endsent HAS_ENDSERVENT /**/
1326
a7fea17f 1327/* FCNTL_CAN_LOCK:
1328 * This symbol, if defined, indicates that fcntl() can be used
1329 * for file locking. Normally on Unix systems this is defined.
1330 * It may be undefined on VMS.
1331 */
1332#$d_fcntl_can_lock FCNTL_CAN_LOCK /**/
1333
921b2963 1334/* HAS_FD_SET:
1335 * This symbol, when defined, indicates presence of the fd_set typedef
1336 * in <sys/types.h>
1337 */
1338#$d_fd_set HAS_FD_SET /**/
1339
b6592ff0 1340/* FLEXFILENAMES:
1341 * This symbol, if defined, indicates that the system supports filenames
1342 * longer than 14 characters.
1343 */
1344#$d_flexfnam FLEXFILENAMES /**/
1345
c5f05a91 1346/* HAS_FPOS64_T:
1347 * This symbol will be defined if the C compiler supports fpos64_t.
1348 */
1349#$d_fpos64_t HAS_FPOS64_T /**/
1350
a3540c92 1351/* HAS_FREXPL:
1352 * This symbol, if defined, indicates that the frexpl routine is
1353 * available to break a long double floating-point number into
1354 * a normalized fraction and an integral power of 2.
1355 */
1356#$d_frexpl HAS_FREXPL /**/
1357
ff935051 1358/* HAS_STRUCT_FS_DATA:
1359 * This symbol, if defined, indicates that the struct fs_data
1360 * to do statfs() is supported.
1361 */
1362#$d_fs_data_s HAS_STRUCT_FS_DATA /**/
1363
1364/* HAS_FSEEKO:
1365 * This symbol, if defined, indicates that the fseeko routine is
1366 * available to fseek beyond 32 bits (useful for ILP32 hosts).
1367 */
1368#$d_fseeko HAS_FSEEKO /**/
1369
1370/* HAS_FSTATFS:
1371 * This symbol, if defined, indicates that the fstatfs routine is
1372 * available to stat filesystems by file descriptors.
1373 */
1374#$d_fstatfs HAS_FSTATFS /**/
c890dc6c 1375
a7fea17f 1376/* HAS_FSYNC:
1377 * This symbol, if defined, indicates that the fsync routine is
1378 * available to write a file's modified data and attributes to
1379 * permanent storage.
1380 */
1381#$d_fsync HAS_FSYNC /**/
1382
ff935051 1383/* HAS_FTELLO:
1384 * This symbol, if defined, indicates that the ftello routine is
1385 * available to ftell beyond 32 bits (useful for ILP32 hosts).
1386 */
1387#$d_ftello HAS_FTELLO /**/
1388
8e07c86e 1389/* Gconvert:
1390 * This preprocessor macro is defined to convert a floating point
1391 * number to a string without a trailing decimal point. This
1392 * emulates the behavior of sprintf("%g"), but is sometimes much more
1393 * efficient. If gconvert() is not available, but gcvt() drops the
1394 * trailing decimal point, then gcvt() is used. If all else fails,
1395 * a macro using sprintf("%g") is used. Arguments for the Gconvert
1396 * macro are: value, number of digits, whether trailing zeros should
1397 * be retained, and the output buffer.
1398 * Possible values are:
1399 * d_Gconvert='gconvert((x),(n),(t),(b))'
1400 * d_Gconvert='gcvt((x),(n),(b))'
1401 * d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1402 * The last two assume trailing zeros should not be kept.
1403 */
1404#define Gconvert(x,n,t,b) $d_Gconvert
1405
49dabb45 1406/* HAS_GETCWD:
1407 * This symbol, if defined, indicates that the getcwd routine is
1408 * available to get the current working directory.
1409 */
1410#$d_getcwd HAS_GETCWD /**/
1411
3813c136 1412/* HAS_GETESPWNAM:
1413 * This symbol, if defined, indicates that the getespwnam system call is
1414 * available to retrieve enchanced (shadow) password entries by name.
1415 */
1416#$d_getespwnam HAS_GETESPWNAM /**/
1417
1acc7ade 1418/* HAS_GETFSSTAT:
1419 * This symbol, if defined, indicates that the getfsstat routine is
1420 * available to stat filesystems in bulk.
1421 */
1422#$d_getfsstat HAS_GETFSSTAT /**/
1423
ff935051 1424/* HAS_GETGRENT:
1425 * This symbol, if defined, indicates that the getgrent routine is
1426 * available for sequential access of the group database.
c1b76f5d 1427 */
ff935051 1428#$d_getgrent HAS_GETGRENT /**/
c1b76f5d 1429
ff935051 1430/* HAS_GETHOSTBYADDR:
1431 * This symbol, if defined, indicates that the gethostbyaddr() routine is
1432 * available to look up hosts by their IP addresses.
dd64f1c3 1433 */
ff935051 1434#$d_gethbyaddr HAS_GETHOSTBYADDR /**/
dd64f1c3 1435
ff935051 1436/* HAS_GETHOSTBYNAME:
1437 * This symbol, if defined, indicates that the gethostbyname() routine is
1438 * available to look up host names in some data base or other.
774d564b 1439 */
ff935051 1440#$d_gethbyname HAS_GETHOSTBYNAME /**/
774d564b 1441
ff935051 1442/* HAS_GETHOSTENT:
1443 * This symbol, if defined, indicates that the gethostent() routine is
1444 * available to look up host names in some data base or another.
c1b76f5d 1445 */
ff935051 1446#$d_gethent HAS_GETHOSTENT /**/
c1b76f5d 1447
ff935051 1448/* HAS_GETHOSTNAME:
1449 * This symbol, if defined, indicates that the C program may use the
1450 * gethostname() routine to derive the host name. See also HAS_UNAME
1451 * and PHOSTNAME.
c1b76f5d 1452 */
ff935051 1453/* HAS_UNAME:
1454 * This symbol, if defined, indicates that the C program may use the
1455 * uname() routine to derive the host name. See also HAS_GETHOSTNAME
1456 * and PHOSTNAME.
760ac839 1457 */
ff935051 1458/* PHOSTNAME:
1459 * This symbol, if defined, indicates the command to feed to the
1460 * popen() routine to derive the host name. See also HAS_GETHOSTNAME
1461 * and HAS_UNAME. Note that the command uses a fully qualified path,
1462 * so that it is safe even if used by a process with super-user
1463 * privileges.
1464 */
c71a9cee 1465/* HAS_PHOSTNAME:
1466 * This symbol, if defined, indicates that the C program may use the
1467 * contents of PHOSTNAME as a command to feed to the popen() routine
1468 * to derive the host name.
1469 */
b4eb6b3d 1470#$d_gethname HAS_GETHOSTNAME /**/
1471#$d_uname HAS_UNAME /**/
1472#$d_phostname HAS_PHOSTNAME /**/
1473#ifdef HAS_PHOSTNAME
1474#define PHOSTNAME "$aphostname" /* How to get the host name */
1475#endif
760ac839 1476
ff935051 1477/* HAS_GETHOST_PROTOS:
1478 * This symbol, if defined, indicates that <netdb.h> includes
1479 * prototypes for gethostent(), gethostbyname(), and
1480 * gethostbyaddr(). Otherwise, it is up to the program to guess
1481 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
52e1cb5e 1482 */
ff935051 1483#$d_gethostprotos HAS_GETHOST_PROTOS /**/
52e1cb5e 1484
ff935051 1485/* HAS_GETMNT:
1486 * This symbol, if defined, indicates that the getmnt routine is
1487 * available to get filesystem mount info by filename.
921b2963 1488 */
ff935051 1489#$d_getmnt HAS_GETMNT /**/
1490
1491/* HAS_GETMNTENT:
1492 * This symbol, if defined, indicates that the getmntent routine is
1493 * available to iterate through mounted file systems to get their info.
a5f75d66 1494 */
ff935051 1495#$d_getmntent HAS_GETMNTENT /**/
1496
1497/* HAS_GETNETBYADDR:
1498 * This symbol, if defined, indicates that the getnetbyaddr() routine is
1499 * available to look up networks by their IP addresses.
a5f75d66 1500 */
ff935051 1501#$d_getnbyaddr HAS_GETNETBYADDR /**/
1502
1503/* HAS_GETNETBYNAME:
1504 * This symbol, if defined, indicates that the getnetbyname() routine is
1505 * available to look up networks by their names.
a5f75d66 1506 */
ff935051 1507#$d_getnbyname HAS_GETNETBYNAME /**/
a5f75d66 1508
ff935051 1509/* HAS_GETNETENT:
1510 * This symbol, if defined, indicates that the getnetent() routine is
1511 * available to look up network names in some data base or another.
a687059c 1512 */
ff935051 1513#$d_getnent HAS_GETNETENT /**/
1514
1515/* HAS_GETNET_PROTOS:
1516 * This symbol, if defined, indicates that <netdb.h> includes
1517 * prototypes for getnetent(), getnetbyname(), and
1518 * getnetbyaddr(). Otherwise, it is up to the program to guess
1519 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
dfe9444c 1520 */
ff935051 1521#$d_getnetprotos HAS_GETNET_PROTOS /**/
1522
0c0643d0 1523/* HAS_GETPAGESIZE:
1524 * This symbol, if defined, indicates that the getpagesize system call
1525 * is available to get system page size, which is the granularity of
1526 * many memory management calls.
1527 */
1528#$d_getpagsz HAS_GETPAGESIZE /**/
1529
ff935051 1530/* HAS_GETPROTOENT:
1531 * This symbol, if defined, indicates that the getprotoent() routine is
1532 * available to look up protocols in some data base or another.
dfe9444c 1533 */
ff935051 1534#$d_getpent HAS_GETPROTOENT /**/
1535
a7fea17f 1536/* HAS_GETPGRP:
1537 * This symbol, if defined, indicates that the getpgrp routine is
1538 * available to get the current process group.
1539 */
1540/* USE_BSD_GETPGRP:
1541 * This symbol, if defined, indicates that getpgrp needs one
1542 * arguments whereas USG one needs none.
1543 */
1544#$d_getpgrp HAS_GETPGRP /**/
1545#$d_bsdgetpgrp USE_BSD_GETPGRP /**/
1546
ff935051 1547/* HAS_GETPROTOBYNAME:
1548 * This symbol, if defined, indicates that the getprotobyname()
1549 * routine is available to look up protocols by their name.
dfe9444c 1550 */
ff935051 1551/* HAS_GETPROTOBYNUMBER:
1552 * This symbol, if defined, indicates that the getprotobynumber()
1553 * routine is available to look up protocols by their number.
dfe9444c 1554 */
ff935051 1555#$d_getpbyname HAS_GETPROTOBYNAME /**/
1556#$d_getpbynumber HAS_GETPROTOBYNUMBER /**/
a687059c 1557
ff935051 1558/* HAS_GETPROTO_PROTOS:
1559 * This symbol, if defined, indicates that <netdb.h> includes
1560 * prototypes for getprotoent(), getprotobyname(), and
1561 * getprotobyaddr(). Otherwise, it is up to the program to guess
1562 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
8e07c86e 1563 */
ff935051 1564#$d_getprotoprotos HAS_GETPROTO_PROTOS /**/
1565
3813c136 1566/* HAS_GETPRPWNAM:
1567 * This symbol, if defined, indicates that the getprpwnam system call is
1568 * available to retrieve protected (shadow) password entries by name.
1569 */
1570#$d_getprpwnam HAS_GETPRPWNAM /**/
1571
ff935051 1572/* HAS_GETPWENT:
1573 * This symbol, if defined, indicates that the getpwent routine is
1574 * available for sequential access of the passwd database.
1575 * If this is not available, the older getpw() function may be available.
dfe9444c 1576 */
ff935051 1577#$d_getpwent HAS_GETPWENT /**/
8e07c86e 1578
ff935051 1579/* HAS_GETSERVENT:
1580 * This symbol, if defined, indicates that the getservent() routine is
1581 * available to look up network services in some data base or another.
4633a7c4 1582 */
ff935051 1583#$d_getsent HAS_GETSERVENT /**/
1584
1585/* HAS_GETSERV_PROTOS:
1586 * This symbol, if defined, indicates that <netdb.h> includes
1587 * prototypes for getservent(), getservbyname(), and
1588 * getservbyaddr(). Otherwise, it is up to the program to guess
1589 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
dfe9444c 1590 */
ff935051 1591#$d_getservprotos HAS_GETSERV_PROTOS /**/
4633a7c4 1592
ff935051 1593/* HAS_GETSPNAM:
1594 * This symbol, if defined, indicates that the getspnam system call is
1595 * available to retrieve SysV shadow password entries by name.
760ac839 1596 */
ff935051 1597#$d_getspnam HAS_GETSPNAM /**/
1598
1599/* HAS_GETSERVBYNAME:
1600 * This symbol, if defined, indicates that the getservbyname()
1601 * routine is available to look up services by their name.
1aef975c 1602 */
ff935051 1603/* HAS_GETSERVBYPORT:
1604 * This symbol, if defined, indicates that the getservbyport()
1605 * routine is available to look up services by their port.
bccf77a5 1606 */
ff935051 1607#$d_getsbyname HAS_GETSERVBYNAME /**/
1608#$d_getsbyport HAS_GETSERVBYPORT /**/
8e07c86e 1609
ff935051 1610/* HAS_GNULIBC:
1611 * This symbol, if defined, indicates to the C program that
1612 * the GNU C library is being used.
85e6fe83 1613 */
ff935051 1614#$d_gnulibc HAS_GNULIBC /**/
7378db63 1615#if defined(HAS_GNULIBC) && !defined(_GNU_SOURCE)
1616# define _GNU_SOURCE
1617#endif
ff935051 1618/* HAS_HASMNTOPT:
1619 * This symbol, if defined, indicates that the hasmntopt routine is
1620 * available to query the mount options of file systems.
dfe9444c 1621 */
ff935051 1622#$d_hasmntopt HAS_HASMNTOPT /**/
1623
1624/* HAS_HTONL:
1625 * This symbol, if defined, indicates that the htonl() routine (and
1626 * friends htons() ntohl() ntohs()) are available to do network
1627 * order byte swapping.
dfe9444c 1628 */
ff935051 1629/* HAS_HTONS:
1630 * This symbol, if defined, indicates that the htons() routine (and
1631 * friends htonl() ntohl() ntohs()) are available to do network
1632 * order byte swapping.
dfe9444c 1633 */
ff935051 1634/* HAS_NTOHL:
1635 * This symbol, if defined, indicates that the ntohl() routine (and
1636 * friends htonl() htons() ntohs()) are available to do network
1637 * order byte swapping.
1638 */
1639/* HAS_NTOHS:
1640 * This symbol, if defined, indicates that the ntohs() routine (and
1641 * friends htonl() htons() ntohl()) are available to do network
1642 * order byte swapping.
1643 */
1644#$d_htonl HAS_HTONL /**/
1645#$d_htonl HAS_HTONS /**/
1646#$d_htonl HAS_NTOHL /**/
1647#$d_htonl HAS_NTOHS /**/
85e6fe83 1648
43999f95 1649/* HAS_ICONV:
1650 * This symbol, if defined, indicates that the iconv routine is
1651 * available to do character set conversions.
1652 */
1653#$d_iconv HAS_ICONV /**/
1654
fe749a9f 1655/* HAS_INT64_T:
1656 * This symbol will defined if the C compiler supports int64_t.
1657 * Usually the <inttypes.h> needs to be included, but sometimes
1658 * <sys/types.h> is enough.
1659 */
13b3f787 1660#$d_int64_t HAS_INT64_T /**/
fe749a9f 1661
ff935051 1662/* HAS_ISASCII:
1663 * This manifest constant lets the C program know that isascii
1664 * is available.
693762b4 1665 */
ff935051 1666#$d_isascii HAS_ISASCII /**/
693762b4 1667
a3540c92 1668/* HAS_ISNAN:
1669 * This symbol, if defined, indicates that the isnan routine is
1670 * available to check whether a double is a NaN.
1671 */
1672#$d_isnan HAS_ISNAN /**/
1673
1674/* HAS_ISNANL:
1675 * This symbol, if defined, indicates that the isnanl routine is
1676 * available to check whether a long double is a NaN.
1677 */
1678#$d_isnanl HAS_ISNANL /**/
1679
b6592ff0 1680/* HAS_LCHOWN:
1681 * This symbol, if defined, indicates that the lchown routine is
1682 * available to operate on a symbolic link (instead of following the
1683 * link).
1684 */
1685#$d_lchown HAS_LCHOWN /**/
1686
ff935051 1687/* HAS_LDBL_DIG:
1688 * This symbol, if defined, indicates that this system's <float.h>
1689 * or <limits.h> defines the symbol LDBL_DIG, which is the number
1690 * of significant digits in a long double precision number. Unlike
1691 * for DBL_DIG, there's no good guess for LDBL_DIG if it is undefined.
85ab1d1d 1692 */
ff935051 1693#$d_ldbl_dig HAS_LDBL_DIG /* */
1694
1695/* HAS_LONG_DOUBLE:
1696 * This symbol will be defined if the C compiler supports long
1697 * doubles.
85ab1d1d 1698 */
ff935051 1699/* LONG_DOUBLESIZE:
1700 * This symbol contains the size of a long double, so that the
1701 * C preprocessor can make decisions based on it. It is only
1702 * defined if the system supports long doubles.
dfe9444c 1703 */
ff935051 1704#$d_longdbl HAS_LONG_DOUBLE /**/
1705#ifdef HAS_LONG_DOUBLE
1706#define LONG_DOUBLESIZE $longdblsize /**/
1707#endif
dfe9444c 1708
ff935051 1709/* HAS_LONG_LONG:
1710 * This symbol will be defined if the C compiler supports long long.
dfe9444c 1711 */
ff935051 1712/* LONGLONGSIZE:
1713 * This symbol contains the size of a long long, so that the
1714 * C preprocessor can make decisions based on it. It is only
1715 * defined if the system supports long long.
5ff3f7a4 1716 */
ff935051 1717#$d_longlong HAS_LONG_LONG /**/
1718#ifdef HAS_LONG_LONG
1719#define LONGLONGSIZE $longlongsize /**/
1720#endif
5ff3f7a4 1721
1acc7ade 1722/* HAS_LSEEK_PROTO:
1723 * This symbol, if defined, indicates that the system provides
1724 * a prototype for the lseek() function. Otherwise, it is up
1725 * to the program to supply one. A good guess is
1726 * extern off_t lseek(int, off_t, int);
1727 */
1728#$d_lseekproto HAS_LSEEK_PROTO /**/
1729
1e8c3fde 1730/* HAS_MADVISE:
1731 * This symbol, if defined, indicates that the madvise system call is
1732 * available to map a file into memory.
1733 */
1734#$d_madvise HAS_MADVISE /**/
1735
ff935051 1736/* HAS_MEMCHR:
1737 * This symbol, if defined, indicates that the memchr routine is available
1738 * to locate characters within a C string.
dd4e71fd 1739 */
ff935051 1740#$d_memchr HAS_MEMCHR /**/
1741
fe749a9f 1742/* HAS_MKDTEMP:
1743 * This symbol, if defined, indicates that the mkdtemp routine is
1744 * available to exclusively create a uniquely named temporary directory.
1745 */
1746#$d_mkdtemp HAS_MKDTEMP /**/
1747
1748/* HAS_MKSTEMP:
1749 * This symbol, if defined, indicates that the mkstemp routine is
1750 * available to exclusively create and open a uniquely named
1751 * temporary file.
1752 */
1753#$d_mkstemp HAS_MKSTEMP /**/
1754
1755/* HAS_MKSTEMPS:
1756 * This symbol, if defined, indicates that the mkstemps routine is
1757 * available to excluslvely create and open a uniquely named
1758 * (with a suffix) temporary file.
1759 */
1760#$d_mkstemps HAS_MKSTEMPS /**/
1761
87b71857 1762/* HAS_MMAP:
1763 * This symbol, if defined, indicates that the mmap system call is
1764 * available to map a file into memory.
1765 */
fe749a9f 1766/* Mmap_t:
1767 * This symbol holds the return type of the mmap() system call
1768 * (and simultaneously the type of the first argument).
1769 * Usually set to 'void *' or 'cadd_t'.
1770 */
87b71857 1771#$d_mmap HAS_MMAP /**/
fe749a9f 1772#define Mmap_t $mmaptype /**/
1773
3813c136 1774/* HAS_MODFL:
1775 * This symbol, if defined, indicates that the modfl routine is
1776 * available to split a long double x into a fractional part f and
1777 * an integer part i such that |f| < 1.0 and (f + i) = x.
1778 */
1779#$d_modfl HAS_MODFL /**/
1780
fe749a9f 1781/* HAS_MPROTECT:
1782 * This symbol, if defined, indicates that the mprotect system call is
1783 * available to modify the access protection of a memory mapped file.
1784 */
1785#$d_mprotect HAS_MPROTECT /**/
1786
ff935051 1787/* HAS_MSG:
1788 * This symbol, if defined, indicates that the entire msg*(2) library is
1789 * supported (IPC mechanism based on message queues).
dd4e71fd 1790 */
ff935051 1791#$d_msg HAS_MSG /**/
dd4e71fd 1792
c5f05a91 1793/* HAS_OFF64_T:
1794 * This symbol will be defined if the C compiler supports off64_t.
1795 */
1796#$d_off64_t HAS_OFF64_T /**/
1797
ff935051 1798/* HAS_OPEN3:
1799 * This manifest constant lets the C program know that the three
1800 * argument form of open(2) is available.
dd4e71fd 1801 */
ff935051 1802#$d_open3 HAS_OPEN3 /**/
1803
1804/* OLD_PTHREAD_CREATE_JOINABLE:
1805 * This symbol, if defined, indicates how to create pthread
1806 * in joinable (aka undetached) state. NOTE: not defined
1807 * if pthread.h already has defined PTHREAD_CREATE_JOINABLE
1808 * (the new version of the constant).
1809 * If defined, known values are PTHREAD_CREATE_UNDETACHED
1810 * and __UNDETACHED.
dd4e71fd 1811 */
ff935051 1812#$d_old_pthread_create_joinable OLD_PTHREAD_CREATE_JOINABLE $old_pthread_create_joinable /**/
dd4e71fd 1813
ff935051 1814/* HAS_PTHREAD_YIELD:
1815 * This symbol, if defined, indicates that the pthread_yield
1816 * routine is available to yield the execution of the current
1817 * thread. sched_yield is preferable to pthread_yield.
1818 */
1819/* SCHED_YIELD:
1820 * This symbol defines the way to yield the execution of
1821 * the current thread. Known ways are sched_yield,
1822 * pthread_yield, and pthread_yield with NULL.
1823 */
1824/* HAS_SCHED_YIELD:
1825 * This symbol, if defined, indicates that the sched_yield
1826 * routine is available to yield the execution of the current
1827 * thread. sched_yield is preferable to pthread_yield.
dd4e71fd 1828 */
ff935051 1829#$d_pthread_yield HAS_PTHREAD_YIELD /**/
1830#define SCHED_YIELD $sched_yield /**/
1831#$d_sched_yield HAS_SCHED_YIELD /**/
dd4e71fd 1832
ff935051 1833/* HAS_SAFE_BCOPY:
1834 * This symbol, if defined, indicates that the bcopy routine is available
1835 * to copy potentially overlapping memory blocks. Otherwise you should
1836 * probably use memmove() or memcpy(). If neither is defined, roll your
1837 * own version.
dd4e71fd 1838 */
ff935051 1839#$d_safebcpy HAS_SAFE_BCOPY /**/
1840
1841/* HAS_SAFE_MEMCPY:
1842 * This symbol, if defined, indicates that the memcpy routine is available
1843 * to copy potentially overlapping memory blocks. Otherwise you should
1844 * probably use memmove() or memcpy(). If neither is defined, roll your
1845 * own version.
dd4e71fd 1846 */
ff935051 1847#$d_safemcpy HAS_SAFE_MEMCPY /**/
dd4e71fd 1848
ff935051 1849/* HAS_SANE_MEMCMP:
1850 * This symbol, if defined, indicates that the memcmp routine is available
1851 * and can be used to compare relative magnitudes of chars with their high
1852 * bits set. If it is not defined, roll your own version.
dd4e71fd 1853 */
ff935051 1854#$d_sanemcmp HAS_SANE_MEMCMP /**/
1855
a7fea17f 1856/* HAS_SBRK_PROTO:
1857 * This symbol, if defined, indicates that the system provides
1858 * a prototype for the sbrk() function. Otherwise, it is up
1859 * to the program to supply one. Good guesses are
1860 * extern void* sbrk _((int));
1861 * extern void* sbrk _((size_t));
1862 */
1863#$d_sbrkproto HAS_SBRK_PROTO /**/
1864
ff935051 1865/* HAS_SEM:
1866 * This symbol, if defined, indicates that the entire sem*(2) library is
1867 * supported.
dd4e71fd 1868 */
ff935051 1869#$d_sem HAS_SEM /**/
dd4e71fd 1870
ff935051 1871/* HAS_SETGRENT:
1872 * This symbol, if defined, indicates that the setgrent routine is
1873 * available for initializing sequential access of the group database.
dd4e71fd 1874 */
ff935051 1875#$d_setgrent HAS_SETGRENT /**/
1876
1877/* HAS_SETGROUPS:
1878 * This symbol, if defined, indicates that the setgroups() routine is
1879 * available to set the list of process groups. If unavailable, multiple
1880 * groups are probably not supported.
dd4e71fd 1881 */
ff935051 1882#$d_setgrps HAS_SETGROUPS /**/
dd4e71fd 1883
ff935051 1884/* HAS_SETHOSTENT:
1885 * This symbol, if defined, indicates that the sethostent() routine is
1886 * available.
a3635516 1887 */
ff935051 1888#$d_sethent HAS_SETHOSTENT /**/
a3635516 1889
ff935051 1890/* HAS_SETNETENT:
1891 * This symbol, if defined, indicates that the setnetent() routine is
1892 * available.
dfe9444c 1893 */
ff935051 1894#$d_setnent HAS_SETNETENT /**/
dfe9444c 1895
ff935051 1896/* HAS_SETPROTOENT:
1897 * This symbol, if defined, indicates that the setprotoent() routine is
1898 * available.
dfe9444c 1899 */
ff935051 1900#$d_setpent HAS_SETPROTOENT /**/
1901
a7fea17f 1902/* HAS_SETPGRP:
1903 * This symbol, if defined, indicates that the setpgrp routine is
1904 * available to set the current process group.
1905 */
1906/* USE_BSD_SETPGRP:
1907 * This symbol, if defined, indicates that setpgrp needs two
1908 * arguments whereas USG one needs none. See also HAS_SETPGID
1909 * for a POSIX interface.
1910 */
1911#$d_setpgrp HAS_SETPGRP /**/
1912#$d_bsdsetpgrp USE_BSD_SETPGRP /**/
1913
0c9177ab 1914/* HAS_SETPROCTITLE:
1915 * This symbol, if defined, indicates that the setproctitle routine is
1916 * available to set process title.
1917 */
1918#$d_setproctitle HAS_SETPROCTITLE /**/
1919
ff935051 1920/* HAS_SETPWENT:
1921 * This symbol, if defined, indicates that the setpwent routine is
1922 * available for initializing sequential access of the passwd database.
dfe9444c 1923 */
ff935051 1924#$d_setpwent HAS_SETPWENT /**/
dfe9444c 1925
ff935051 1926/* HAS_SETSERVENT:
1927 * This symbol, if defined, indicates that the setservent() routine is
1928 * available.
48159a0c 1929 */
ff935051 1930#$d_setsent HAS_SETSERVENT /**/
1cfa4ec7 1931
ff935051 1932/* HAS_SETVBUF:
1933 * This symbol, if defined, indicates that the setvbuf routine is
1934 * available to change buffering on an open stdio stream.
1935 * to a line-buffered mode.
dfe9444c 1936 */
ff935051 1937#$d_setvbuf HAS_SETVBUF /**/
e5c9fcd0 1938
ff935051 1939/* USE_SFIO:
1940 * This symbol, if defined, indicates that sfio should
1941 * be used.
5ff3f7a4 1942 */
ff935051 1943#$d_sfio USE_SFIO /**/
5ff3f7a4 1944
ff935051 1945/* HAS_SHM:
1946 * This symbol, if defined, indicates that the entire shm*(2) library is
1947 * supported.
e5c9fcd0 1948 */
ff935051 1949#$d_shm HAS_SHM /**/
e5c9fcd0 1950
ff935051 1951/* HAS_SIGACTION:
1952 * This symbol, if defined, indicates that Vr4's sigaction() routine
1953 * is available.
e5c9fcd0 1954 */
ff935051 1955#$d_sigaction HAS_SIGACTION /**/
e5c9fcd0 1956
ff935051 1957/* HAS_SIGSETJMP:
1958 * This variable indicates to the C program that the sigsetjmp()
1959 * routine is available to save the calling process's registers
1960 * and stack environment for later use by siglongjmp(), and
1961 * to optionally save the process's signal mask. See
1962 * Sigjmp_buf, Sigsetjmp, and Siglongjmp.
e5c9fcd0 1963 */
ff935051 1964/* Sigjmp_buf:
1965 * This is the buffer type to be used with Sigsetjmp and Siglongjmp.
5ff3f7a4 1966 */
ff935051 1967/* Sigsetjmp:
1968 * This macro is used in the same way as sigsetjmp(), but will invoke
1969 * traditional setjmp() if sigsetjmp isn't available.
1970 * See HAS_SIGSETJMP.
e5c9fcd0 1971 */
ff935051 1972/* Siglongjmp:
1973 * This macro is used in the same way as siglongjmp(), but will invoke
1974 * traditional longjmp() if siglongjmp isn't available.
1975 * See HAS_SIGSETJMP.
5ff3f7a4 1976 */
b4eb6b3d 1977#$d_sigsetjmp HAS_SIGSETJMP /**/
1978#ifdef HAS_SIGSETJMP
1979#define Sigjmp_buf sigjmp_buf
1980#define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask))
1981#define Siglongjmp(buf,retval) siglongjmp((buf),(retval))
1982#else
1983#define Sigjmp_buf jmp_buf
1984#define Sigsetjmp(buf,save_mask) setjmp((buf))
1985#define Siglongjmp(buf,retval) longjmp((buf),(retval))
1986#endif
5ff3f7a4 1987
ff935051 1988/* HAS_SOCKET:
1989 * This symbol, if defined, indicates that the BSD socket interface is
1990 * supported.
693762b4 1991 */
ff935051 1992/* HAS_SOCKETPAIR:
1993 * This symbol, if defined, indicates that the BSD socketpair() call is
1994 * supported.
693762b4 1995 */
ff935051 1996/* HAS_MSG_CTRUNC:
1997 * This symbol, if defined, indicates that the MSG_CTRUNC is supported.
1998 * Checking just with #ifdef might not be enough because this symbol
1999 * has been known to be an enum.
693762b4 2000 */
ff935051 2001/* HAS_MSG_DONTROUTE:
2002 * This symbol, if defined, indicates that the MSG_DONTROUTE is supported.
2003 * Checking just with #ifdef might not be enough because this symbol
2004 * has been known to be an enum.
a12fb911 2005 */
ff935051 2006/* HAS_MSG_OOB:
2007 * This symbol, if defined, indicates that the MSG_OOB is supported.
2008 * Checking just with #ifdef might not be enough because this symbol
2009 * has been known to be an enum.
a12fb911 2010 */
ff935051 2011/* HAS_MSG_PEEK:
2012 * This symbol, if defined, indicates that the MSG_PEEK is supported.
2013 * Checking just with #ifdef might not be enough because this symbol
2014 * has been known to be an enum.
a12fb911 2015 */
ff935051 2016/* HAS_MSG_PROXY:
2017 * This symbol, if defined, indicates that the MSG_PROXY is supported.
2018 * Checking just with #ifdef might not be enough because this symbol
2019 * has been known to be an enum.
48159a0c 2020 */
ff935051 2021/* HAS_SCM_RIGHTS:
2022 * This symbol, if defined, indicates that the SCM_RIGHTS is supported.
2023 * Checking just with #ifdef might not be enough because this symbol
2024 * has been known to be an enum.
2025 */
2026#$d_socket HAS_SOCKET /**/
2027#$d_sockpair HAS_SOCKETPAIR /**/
2028#$d_msg_ctrunc HAS_MSG_CTRUNC /**/
2029#$d_msg_dontroute HAS_MSG_DONTROUTE /**/
2030#$d_msg_oob HAS_MSG_OOB /**/
2031#$d_msg_peek HAS_MSG_PEEK /**/
2032#$d_msg_proxy HAS_MSG_PROXY /**/
2033#$d_scm_rights HAS_SCM_RIGHTS /**/
a12fb911 2034
1b9c9cf5 2035/* HAS_SOCKS5_INIT:
2036 * This symbol, if defined, indicates that the socks5_init routine is
2037 * available to initialize SOCKS 5.
2038 */
2039#$d_socks5_init HAS_SOCKS5_INIT /**/
2040
ff935051 2041/* HAS_SQRTL:
2042 * This symbol, if defined, indicates that the sqrtl routine is
2043 * available to do long double square roots.
693762b4 2044 */
ff935051 2045#$d_sqrtl HAS_SQRTL /**/
693762b4 2046
ff935051 2047/* USE_STAT_BLOCKS:
2048 * This symbol is defined if this system has a stat structure declaring
2049 * st_blksize and st_blocks.
693762b4 2050 */
b4eb6b3d 2051#ifndef USE_STAT_BLOCKS
2052#$d_statblks USE_STAT_BLOCKS /**/
2053#endif
693762b4 2054
ff935051 2055/* HAS_STRUCT_STATFS_F_FLAGS:
2056 * This symbol, if defined, indicates that the struct statfs
2057 * does have the f_flags member containing the mount flags of
2058 * the filesystem containing the file.
2059 * This kind of struct statfs is coming from <sys/mount.h> (BSD 4.3),
2060 * not from <sys/statfs.h> (SYSV). Older BSDs (like Ultrix) do not
2061 * have statfs() and struct statfs, they have ustat() and getmnt()
2062 * with struct ustat and struct fs_data.
e5c9fcd0 2063 */
ff935051 2064#$d_statfs_f_flags HAS_STRUCT_STATFS_F_FLAGS /**/
e5c9fcd0 2065
ff935051 2066/* HAS_STRUCT_STATFS:
2067 * This symbol, if defined, indicates that the struct statfs
2068 * to do statfs() is supported.
e5c9fcd0 2069 */
ff935051 2070#$d_statfs_s HAS_STRUCT_STATFS /**/
e5c9fcd0 2071
ff935051 2072/* HAS_FSTATVFS:
2073 * This symbol, if defined, indicates that the fstatvfs routine is
2074 * available to stat filesystems by file descriptors.
693762b4 2075 */
ff935051 2076#$d_fstatvfs HAS_FSTATVFS /**/
de4597cb 2077
b4eb6b3d 2078/* USE_STDIO_PTR:
2079 * This symbol is defined if the _ptr and _cnt fields (or similar)
2080 * of the stdio FILE structure can be used to access the stdio buffer
2081 * for a file handle. If this is defined, then the FILE_ptr(fp)
2082 * and FILE_cnt(fp) macros will also be defined and should be used
2083 * to access these fields.
2084 */
ff935051 2085/* FILE_ptr:
2086 * This macro is used to access the _ptr field (or equivalent) of the
2087 * FILE structure pointed to by its argument. This macro will always be
2088 * defined if USE_STDIO_PTR is defined.
bfb7748a 2089 */
ff935051 2090/* STDIO_PTR_LVALUE:
2091 * This symbol is defined if the FILE_ptr macro can be used as an
2092 * lvalue.
c4f23d77 2093 */
ff935051 2094/* FILE_cnt:
2095 * This macro is used to access the _cnt field (or equivalent) of the
2096 * FILE structure pointed to by its argument. This macro will always be
2097 * defined if USE_STDIO_PTR is defined.
c4f23d77 2098 */
ff935051 2099/* STDIO_CNT_LVALUE:
2100 * This symbol is defined if the FILE_cnt macro can be used as an
2101 * lvalue.
16d20bd9 2102 */
a7ffa9b9 2103/* STDIO_PTR_LVAL_SETS_CNT:
2104 * This symbol is defined if using the FILE_ptr macro as an lvalue
2105 * to increase the pointer by n has the side effect of decreasing the
2106 * value of File_cnt(fp) by n.
2107 */
2108/* STDIO_PTR_LVAL_NOCHANGE_CNT:
2109 * This symbol is defined if using the FILE_ptr macro as an lvalue
2110 * to increase the pointer by n leaves File_cnt(fp) unchanged.
2111 */
b4eb6b3d 2112#$d_stdstdio USE_STDIO_PTR /**/
2113#ifdef USE_STDIO_PTR
ff935051 2114#define FILE_ptr(fp) $stdio_ptr
2115#$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/
2116#define FILE_cnt(fp) $stdio_cnt
2117#$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/
a7ffa9b9 2118#$d_stdio_ptr_lval_sets_cnt STDIO_PTR_LVAL_SETS_CNT /**/
2119#$d_stdio_ptr_lval_nochange_cnt STDIO_PTR_LVAL_NOCHANGE_CNT /**/
b4eb6b3d 2120#endif
16d20bd9 2121
b4eb6b3d 2122/* USE_STDIO_BASE:
2123 * This symbol is defined if the _base field (or similar) of the
2124 * stdio FILE structure can be used to access the stdio buffer for
2125 * a file handle. If this is defined, then the FILE_base(fp) macro
2126 * will also be defined and should be used to access this field.
2127 * Also, the FILE_bufsiz(fp) macro will be defined and should be used
2128 * to determine the number of bytes in the buffer. USE_STDIO_BASE
2129 * will never be defined unless USE_STDIO_PTR is.
2130 */
ff935051 2131/* FILE_base:
2132 * This macro is used to access the _base field (or equivalent) of the
2133 * FILE structure pointed to by its argument. This macro will always be
2134 * defined if USE_STDIO_BASE is defined.
6b8eaf93 2135 */
ff935051 2136/* FILE_bufsiz:
2137 * This macro is used to determine the number of bytes in the I/O
2138 * buffer pointed to by _base field (or equivalent) of the FILE
2139 * structure pointed to its argument. This macro will always be defined
2140 * if USE_STDIO_BASE is defined.
2d4389e4 2141 */
b4eb6b3d 2142#$d_stdiobase USE_STDIO_BASE /**/
2143#ifdef USE_STDIO_BASE
ff935051 2144#define FILE_base(fp) $stdio_base
2145#define FILE_bufsiz(fp) $stdio_bufsiz
b4eb6b3d 2146#endif
2d4389e4 2147
ff935051 2148/* HAS_STRERROR:
2149 * This symbol, if defined, indicates that the strerror routine is
2150 * available to translate error numbers to strings. See the writeup
2151 * of Strerror() in this file before you try to define your own.
f1066039 2152 */
ff935051 2153/* HAS_SYS_ERRLIST:
2154 * This symbol, if defined, indicates that the sys_errlist array is
2155 * available to translate error numbers to strings. The extern int
2156 * sys_nerr gives the size of that table.
dfe9444c 2157 */
ff935051 2158/* Strerror:
2159 * This preprocessor symbol is defined as a macro if strerror() is
2160 * not available to translate error numbers to strings but sys_errlist[]
2161 * array is there.
68d4903c 2162 */
ff935051 2163#$d_strerror HAS_STRERROR /**/
2164#$d_syserrlst HAS_SYS_ERRLIST /**/
2165#define Strerror(e) $d_strerrm
68d4903c 2166
ff935051 2167/* HAS_STRTOLD:
2168 * This symbol, if defined, indicates that the strtold routine is
2169 * available to convert strings to long doubles.
104d25b7 2170 */
ff935051 2171#$d_strtold HAS_STRTOLD /**/
104d25b7 2172
76d49b1c 2173/* HAS_STRTOLL:
2174 * This symbol, if defined, indicates that the strtoll routine is
2175 * available to convert strings to long longs.
2176 */
2177#$d_strtoll HAS_STRTOLL /**/
2178
28e5dec8 2179/* HAS_STRTOQ:
2180 * This symbol, if defined, indicates that the strtoq routine is
2181 * available to convert strings to long longs (quads).
2182 */
2183#$d_strtoq HAS_STRTOQ /**/
2184
a7fea17f 2185/* HAS_STRTOUL:
2186 * This symbol, if defined, indicates that the strtoul routine is
2187 * available to provide conversion of strings to unsigned long.
2188 */
2189#$d_strtoul HAS_STRTOUL /**/
2190
ff935051 2191/* HAS_STRTOULL:
2192 * This symbol, if defined, indicates that the strtoull routine is
2193 * available to convert strings to unsigned long longs.
ad27e871 2194 */
ff935051 2195#$d_strtoull HAS_STRTOULL /**/
ad27e871 2196
ff935051 2197/* HAS_STRTOUQ:
2198 * This symbol, if defined, indicates that the strtouq routine is
2199 * available to convert strings to unsigned long longs (quads).
104d25b7 2200 */
ff935051 2201#$d_strtouq HAS_STRTOUQ /**/
104d25b7 2202
cb86ce0e 2203/* HAS_TELLDIR_PROTO:
2204 * This symbol, if defined, indicates that the system provides
2205 * a prototype for the telldir() function. Otherwise, it is up
2206 * to the program to supply one. A good guess is
b0ca4213 2207 * extern long telldir _((DIR*));
cb86ce0e 2208 */
2209#$d_telldirproto HAS_TELLDIR_PROTO /**/
2210
ff935051 2211/* Time_t:
2212 * This symbol holds the type returned by time(). It can be long,
2213 * or time_t on BSD sites (in which case <sys/types.h> should be
2214 * included).
2215 */
2216#define Time_t $timetype /* Time type */
2217
2218/* HAS_TIMES:
2219 * This symbol, if defined, indicates that the times() routine exists.
2220 * Note that this became obsolete on some systems (SUNOS), which now
2221 * use getrusage(). It may be necessary to include <sys/times.h>.
2222 */
2223#$d_times HAS_TIMES /**/
2224
2225/* HAS_UNION_SEMUN:
2226 * This symbol, if defined, indicates that the union semun is
2227 * defined by including <sys/sem.h>. If not, the user code
2228 * probably needs to define it as:
2229 * union semun {
2230 * int val;
2231 * struct semid_ds *buf;
2232 * unsigned short *array;
2233 * }
2234 */
2235/* USE_SEMCTL_SEMUN:
2236 * This symbol, if defined, indicates that union semun is
2237 * used for semctl IPC_STAT.
2238 */
2239/* USE_SEMCTL_SEMID_DS:
2240 * This symbol, if defined, indicates that struct semid_ds * is
2241 * used for semctl IPC_STAT.
2242 */
2243#$d_union_semun HAS_UNION_SEMUN /**/
2244#$d_semctl_semun USE_SEMCTL_SEMUN /**/
2245#$d_semctl_semid_ds USE_SEMCTL_SEMID_DS /**/
2246
0545a864 2247/* HAS_USTAT:
2248 * This symbol, if defined, indicates that the ustat system call is
2249 * available to query file system statistics by dev_t.
2250 */
2251#$d_ustat HAS_USTAT /**/
2252
ff935051 2253/* HAS_VFORK:
2254 * This symbol, if defined, indicates that vfork() exists.
2255 */
2256#$d_vfork HAS_VFORK /**/
2257
2258/* Signal_t:
2259 * This symbol's value is either "void" or "int", corresponding to the
2260 * appropriate return type of a signal handler. Thus, you can declare
2261 * a signal handler using "Signal_t (*handler)()", and define the
2262 * handler using "Signal_t handler(sig)".
2263 */
2264#define Signal_t $signal_t /* Signal handler's return type */
2265
2266/* HAS_VPRINTF:
2267 * This symbol, if defined, indicates that the vprintf routine is available
2268 * to printf with a pointer to an argument list. If unavailable, you
2269 * may need to write your own, probably in terms of _doprnt().
2270 */
2271/* USE_CHAR_VSPRINTF:
2272 * This symbol is defined if this system has vsprintf() returning type
2273 * (char*). The trend seems to be to declare it as "int vsprintf()". It
2274 * is up to the package author to declare vsprintf correctly based on the
2275 * symbol.
2276 */
2277#$d_vprintf HAS_VPRINTF /**/
2278#$d_charvspr USE_CHAR_VSPRINTF /**/
2279
dfe9444c 2280/* USE_DYNAMIC_LOADING:
2281 * This symbol, if defined, indicates that dynamic loading of
2282 * some sort is available.
2283 */
2284#$usedl USE_DYNAMIC_LOADING /**/
2285
ff935051 2286/* DOUBLESIZE:
2287 * This symbol contains the size of a double, so that the C preprocessor
2288 * can make decisions based on it.
2289 */
2290#define DOUBLESIZE $doublesize /**/
2291
2292/* EBCDIC:
2293 * This symbol, if defined, indicates that this system uses
2294 * EBCDIC encoding.
2295 */
2296#$ebcdic EBCDIC /**/
2297
66fe083f 2298/* FFLUSH_NULL:
2299 * This symbol, if defined, tells that fflush(NULL) does flush
2300 * all pending stdio output.
2301 */
767df6a1 2302/* FFLUSH_ALL:
2303 * This symbol, if defined, tells that to flush
2304 * all pending stdio output one must loop through all
a71cd7cd 2305 * the stdio file handles stored in an array and fflush them.
a32a45b6 2306 * Note that if fflushNULL is defined, fflushall will not
2307 * even be probed for and will be left undefined.
767df6a1 2308 */
2309#$fflushNULL FFLUSH_NULL /**/
2310#$fflushall FFLUSH_ALL /**/
66fe083f 2311
ff935051 2312/* Fpos_t:
2313 * This symbol holds the type used to declare file positions in libc.
2314 * It can be fpos_t, long, uint, etc... It may be necessary to include
2315 * <sys/types.h> to get any typedef'ed information.
2316 */
2317#define Fpos_t $fpostype /* File position type */
2318
2319/* Gid_t_f:
2320 * This symbol defines the format string used for printing a Gid_t.
2321 */
2322#define Gid_t_f $gidformat /**/
2323
23dcd6c8 2324/* Gid_t_sign:
2325 * This symbol holds the signedess of a Gid_t.
2326 * 1 for unsigned, -1 for signed.
2327 */
2328#define Gid_t_sign $gidsign /* GID sign */
2329
ff935051 2330/* Gid_t_size:
2331 * This symbol holds the size of a Gid_t in bytes.
2332 */
2333#define Gid_t_size $gidsize /* GID size */
2334
2335/* Gid_t:
2336 * This symbol holds the return type of getgid() and the type of
2337 * argument to setrgid() and related functions. Typically,
2338 * it is the type of group ids in the kernel. It can be int, ushort,
23dcd6c8 2339 * gid_t, etc... It may be necessary to include <sys/types.h> to get
ff935051 2340 * any typedef'ed information.
2341 */
2342#define Gid_t $gidtype /* Type for getgid(), etc... */
2343
2344/* Groups_t:
2345 * This symbol holds the type used for the second argument to
23dcd6c8 2346 * getgroups() and setgroups(). Usually, this is the same as
ff935051 2347 * gidtype (gid_t) , but sometimes it isn't.
23dcd6c8 2348 * It can be int, ushort, gid_t, etc...
ff935051 2349 * It may be necessary to include <sys/types.h> to get any
2350 * typedef'ed information. This is only required if you have
6e78e524 2351 * getgroups() or setgroups()..
ff935051 2352 */
b4eb6b3d 2353#if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS)
2354#define Groups_t $groupstype /* Type for 2nd arg to [sg]etgroups() */
2355#endif
ff935051 2356
dfe9444c 2357/* DB_Prefix_t:
2358 * This symbol contains the type of the prefix structure element
2359 * in the <db.h> header file. In older versions of DB, it was
2360 * int, while in newer ones it is u_int32_t.
2361 */
2362/* DB_Hash_t:
2363 * This symbol contains the type of the prefix structure element
2364 * in the <db.h> header file. In older versions of DB, it was
2365 * int, while in newer ones it is size_t.
2366 */
2367#define DB_Hash_t $db_hashtype /**/
2368#define DB_Prefix_t $db_prefixtype /**/
2369
ff935051 2370/* I_GRP:
2371 * This symbol, if defined, indicates to the C program that it should
2372 * include <grp.h>.
2373 */
2374/* GRPASSWD:
2375 * This symbol, if defined, indicates to the C program that struct group
2376 * in <grp.h> contains gr_passwd.
2377 */
2378#$i_grp I_GRP /**/
2379#$d_grpasswd GRPASSWD /**/
2380
43999f95 2381/* I_ICONV:
2382 * This symbol, if defined, indicates that <iconv.h> exists and
2383 * should be included.
2384 */
2385#$i_iconv I_ICONV /**/
2386
1acc7ade 2387/* I_IEEEFP:
2388 * This symbol, if defined, indicates that <ieeefp.h> exists and
2389 * should be included.
2390 */
2391#$i_ieeefp I_IEEEFP /**/
2392
5ff3f7a4 2393/* I_INTTYPES:
2394 * This symbol, if defined, indicates to the C program that it should
2395 * include <inttypes.h>.
2396 */
5ff3f7a4 2397#$i_inttypes I_INTTYPES /**/
5ff3f7a4 2398
1b9c9cf5 2399/* I_LIBUTIL:
2400 * This symbol, if defined, indicates that <libutil.h> exists and
2401 * should be included.
2402 */
2403#$i_libutil I_LIBUTIL /**/
2404
ff935051 2405/* I_MACH_CTHREADS:
2406 * This symbol, if defined, indicates to the C program that it should
2407 * include <mach/cthreads.h>.
2408 */
2409#$i_machcthr I_MACH_CTHREADS /**/
2410
e7fb4fcc 2411/* I_MNTENT:
2412 * This symbol, if defined, indicates that <mntent.h> exists and
2413 * should be included.
2414 */
2415#$i_mntent I_MNTENT /**/
2416
ff935051 2417/* I_NETDB:
2418 * This symbol, if defined, indicates that <netdb.h> exists and
2419 * should be included.
2420 */
2421#$i_netdb I_NETDB /**/
2422
9cc6feab 2423/* I_NETINET_TCP:
2424 * This symbol, if defined, indicates to the C program that it should
2425 * include <netinet/tcp.h>.
2426 */
2427#$i_netinettcp I_NETINET_TCP /**/
2428
5b34fd99 2429/* I_POLL:
2430 * This symbol, if defined, indicates that <poll.h> exists and
2431 * should be included.
2432 */
2433#$i_poll I_POLL /**/
2434
3813c136 2435/* I_PROT:
2436 * This symbol, if defined, indicates that <prot.h> exists and
2437 * should be included.
2438 */
2439#$i_prot I_PROT /**/
2440
ff935051 2441/* I_PTHREAD:
2442 * This symbol, if defined, indicates to the C program that it should
2443 * include <pthread.h>.
2444 */
2445#$i_pthread I_PTHREAD /**/
2446
2447/* I_PWD:
2448 * This symbol, if defined, indicates to the C program that it should
2449 * include <pwd.h>.
2450 */
2451/* PWQUOTA:
2452 * This symbol, if defined, indicates to the C program that struct passwd
2453 * contains pw_quota.
2454 */
2455/* PWAGE:
2456 * This symbol, if defined, indicates to the C program that struct passwd
2457 * contains pw_age.
2458 */
2459/* PWCHANGE:
2460 * This symbol, if defined, indicates to the C program that struct passwd
2461 * contains pw_change.
2462 */
2463/* PWCLASS:
2464 * This symbol, if defined, indicates to the C program that struct passwd
2465 * contains pw_class.
2466 */
2467/* PWEXPIRE:
2468 * This symbol, if defined, indicates to the C program that struct passwd
2469 * contains pw_expire.
2470 */
2471/* PWCOMMENT:
2472 * This symbol, if defined, indicates to the C program that struct passwd
2473 * contains pw_comment.
2474 */
2475/* PWGECOS:
2476 * This symbol, if defined, indicates to the C program that struct passwd
2477 * contains pw_gecos.
2478 */
2479/* PWPASSWD:
2480 * This symbol, if defined, indicates to the C program that struct passwd
2481 * contains pw_passwd.
2482 */
2483#$i_pwd I_PWD /**/
2484#$d_pwquota PWQUOTA /**/
2485#$d_pwage PWAGE /**/
2486#$d_pwchange PWCHANGE /**/
2487#$d_pwclass PWCLASS /**/
2488#$d_pwexpire PWEXPIRE /**/
2489#$d_pwcomment PWCOMMENT /**/
2490#$d_pwgecos PWGECOS /**/
2491#$d_pwpasswd PWPASSWD /**/
2492
f1066039 2493/* I_SHADOW:
2494 * This symbol, if defined, indicates that <shadow.h> exists and
2495 * should be included.
2496 */
2497#$i_shadow I_SHADOW /**/
2498
86959918 2499/* I_SOCKS:
2500 * This symbol, if defined, indicates that <socks.h> exists and
2501 * should be included.
2502 */
2503#$i_socks I_SOCKS /**/
2504
923fc586 2505/* I_SUNMATH:
2506 * This symbol, if defined, indicates that <sunmath.h> exists and
2507 * should be included.
2508 */
2509#$i_sunmath I_SUNMATH /**/
2510
ca52efda 2511/* I_SYSLOG:
2512 * This symbol, if defined, indicates that <syslog.h> exists and
2513 * should be included.
2514 */
2515#$i_syslog I_SYSLOG /**/
2516
13b3f787 2517/* I_SYSMODE:
2518 * This symbol, if defined, indicates that <sys/mode.h> exists and
2519 * should be included.
2520 */
2521#$i_sysmode I_SYSMODE /**/
2522
104d25b7 2523/* I_SYS_MOUNT:
2524 * This symbol, if defined, indicates that <sys/mount.h> exists and
2525 * should be included.
2526 */
2527#$i_sysmount I_SYS_MOUNT /**/
2528
0545a864 2529/* I_SYS_STATFS:
2530 * This symbol, if defined, indicates that <sys/statfs.h> exists.
2531 */
2532#$i_sysstatfs I_SYS_STATFS /**/
2533
104d25b7 2534/* I_SYS_STATVFS:
2535 * This symbol, if defined, indicates that <sys/statvfs.h> exists and
2536 * should be included.
2537 */
2538#$i_sysstatvfs I_SYS_STATVFS /**/
2539
ff935051 2540/* I_SYSUIO:
2541 * This symbol, if defined, indicates that <sys/uio.h> exists and
2542 * should be included.
2543 */
2544#$i_sysuio I_SYSUIO /**/
2545
13b3f787 2546/* I_SYSUTSNAME:
2547 * This symbol, if defined, indicates that <sys/utsname.h> exists and
2548 * should be included.
2549 */
2550#$i_sysutsname I_SYSUTSNAME /**/
2551
0545a864 2552/* I_SYS_VFS:
2553 * This symbol, if defined, indicates that <sys/vfs.h> exists and
2554 * should be included.
2555 */
2556#$i_sysvfs I_SYS_VFS /**/
2557
ff935051 2558/* I_TIME:
2559 * This symbol, if defined, indicates to the C program that it should
2560 * include <time.h>.
2561 */
2562/* I_SYS_TIME:
2563 * This symbol, if defined, indicates to the C program that it should
2564 * include <sys/time.h>.
2565 */
2566/* I_SYS_TIME_KERNEL:
2567 * This symbol, if defined, indicates to the C program that it should
2568 * include <sys/time.h> with KERNEL defined.
2569 */
2570#$i_time I_TIME /**/
2571#$i_systime I_SYS_TIME /**/
2572#$i_systimek I_SYS_TIME_KERNEL /**/
2573
0545a864 2574/* I_USTAT:
2575 * This symbol, if defined, indicates that <ustat.h> exists and
2576 * should be included.
2577 */
2578#$i_ustat I_USTAT /**/
2579
ff935051 2580/* PERL_INC_VERSION_LIST:
2581 * This variable specifies the list of subdirectories in over
2582 * which perl.c:incpush() and lib/lib.pm will automatically
2583 * search when adding directories to @INC, in a format suitable
2584 * for a C initialization string. See the inc_version_list entry
2585 * in Porting/Glossary for more details.
2586 */
3a096bf3 2587#define PERL_INC_VERSION_LIST $inc_version_list_init /**/
ff935051 2588
fe749a9f 2589/* INSTALL_USR_BIN_PERL:
2590 * This symbol, if defined, indicates that Perl is to be installed
2591 * also as /usr/bin/perl.
2592 */
2593#$installusrbinperl INSTALL_USR_BIN_PERL /**/
2594
cf2093f6 2595/* PERL_PRIfldbl:
2596 * This symbol, if defined, contains the string used by stdio to
2597 * format long doubles (format 'f') for output.
2598 */
2599/* PERL_PRIgldbl:
2600 * This symbol, if defined, contains the string used by stdio to
2601 * format long doubles (format 'g') for output.
2602 */
c1a7f87b 2603/* PERL_PRIeldbl:
2604 * This symbol, if defined, contains the string used by stdio to
2605 * format long doubles (format 'e') for output.
2606 */
ebd4816b 2607/* PERL_SCNfldbl:
2608 * This symbol, if defined, contains the string used by stdio to
2609 * format long doubles (format 'f') for input.
2610 */
cf2093f6 2611#$d_PRIfldbl PERL_PRIfldbl $sPRIfldbl /**/
2612#$d_PRIgldbl PERL_PRIgldbl $sPRIgldbl /**/
c1a7f87b 2613#$d_PRIeldbl PERL_PRIeldbl $sPRIeldbl /**/
ebd4816b 2614#$d_SCNfldbl PERL_SCNfldbl $sSCNfldbl /**/
cf2093f6 2615
ff935051 2616/* Off_t:
2617 * This symbol holds the type used to declare offsets in the kernel.
2618 * It can be int, long, off_t, etc... It may be necessary to include
2619 * <sys/types.h> to get any typedef'ed information.
2620 */
2621/* LSEEKSIZE:
2622 * This symbol holds the number of bytes used by the Off_t.
2623 */
2624/* Off_t_size:
2625 * This symbol holds the number of bytes used by the Off_t.
2626 */
2627#define Off_t $lseektype /* <offset> type */
2628#define LSEEKSIZE $lseeksize /* <offset> size */
2629#define Off_t_size $lseeksize /* <offset> size */
2630
2631/* Free_t:
2632 * This variable contains the return type of free(). It is usually
2633 * void, but occasionally int.
2634 */
2635/* Malloc_t:
2636 * This symbol is the type of pointer returned by malloc and realloc.
2637 */
2638#define Malloc_t $malloctype /**/
2639#define Free_t $freetype /**/
2640
2641/* MYMALLOC:
2642 * This symbol, if defined, indicates that we're using our own malloc.
2643 */
2644#$d_mymalloc MYMALLOC /**/
2645
2646/* Mode_t:
2647 * This symbol holds the type used to declare file modes
2648 * for systems calls. It is usually mode_t, but may be
2649 * int or unsigned short. It may be necessary to include <sys/types.h>
2650 * to get any typedef'ed information.
2651 */
2652#define Mode_t $modetype /* file mode parameter for system calls */
2653
2654/* VAL_O_NONBLOCK:
2655 * This symbol is to be used during open() or fcntl(F_SETFL) to turn on
2656 * non-blocking I/O for the file descriptor. Note that there is no way
2657 * back, i.e. you cannot turn it blocking again this way. If you wish to
2658 * alternatively switch between blocking and non-blocking, use the
2659 * ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
2660 */
2661/* VAL_EAGAIN:
2662 * This symbol holds the errno error code set by read() when no data was
2663 * present on the non-blocking file descriptor.
2664 */
2665/* RD_NODATA:
2666 * This symbol holds the return code from read() when no data is present
2667 * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
2668 * not defined, then you can't distinguish between no data and EOF by
2669 * issuing a read(). You'll have to find another way to tell for sure!
2670 */
2671/* EOF_NONBLOCK:
2672 * This symbol, if defined, indicates to the C program that a read() on
2673 * a non-blocking file descriptor will return 0 on EOF, and not the value
2674 * held in RD_NODATA (-1 usually, in that case!).
2675 */
2676#define VAL_O_NONBLOCK $o_nonblock
2677#define VAL_EAGAIN $eagain
2678#define RD_NODATA $rd_nodata
2679#$d_eofnblk EOF_NONBLOCK
2680
a7fea17f 2681/* NEED_VA_COPY:
2682 * This symbol, if defined, indicates that the system stores
2683 * the variable argument list datatype, va_list, in a format
2684 * that cannot be copied by simple assignment, so that some
2685 * other means must be used when copying is required.
2686 * As such systems vary in their provision (or non-provision)
2687 * of copying mechanisms, handy.h defines a platform-
2688 * independent macro, Perl_va_copy(src, dst), to do the job.
2689 */
2690#$need_va_copy NEED_VA_COPY /**/
2691
ff935051 2692/* Netdb_host_t:
2693 * This symbol holds the type used for the 1st argument
2694 * to gethostbyaddr().
2695 */
2696/* Netdb_hlen_t:
2697 * This symbol holds the type used for the 2nd argument
2698 * to gethostbyaddr().
2699 */
2700/* Netdb_name_t:
2701 * This symbol holds the type used for the argument to
2702 * gethostbyname().
2703 */
2704/* Netdb_net_t:
2705 * This symbol holds the type used for the 1st argument to
2706 * getnetbyaddr().
2707 */
2708#define Netdb_host_t $netdb_host_type /**/
2709#define Netdb_hlen_t $netdb_hlen_type /**/
2710#define Netdb_name_t $netdb_name_type /**/
2711#define Netdb_net_t $netdb_net_type /**/
2712
7cedd6f8 2713/* PERL_OTHERLIBDIRS:
2714 * This variable contains a colon-separated set of paths for the perl
2715 * binary to search for additional library files or modules.
2716 * These directories will be tacked to the end of @INC.
2717 * Perl will automatically search below each path for version-
2718 * and architecture-specific directories. See PERL_INC_VERSION_LIST
2719 * for more details.
2720 */
2721#$d_perl_otherlibdirs PERL_OTHERLIBDIRS "$otherlibdirs" /**/
2722
8175356b 2723/* IVTYPE:
2724 * This symbol defines the C type used for Perl's IV.
cf2093f6 2725 */
8175356b 2726/* UVTYPE:
2727 * This symbol defines the C type used for Perl's UV.
cf2093f6 2728 */
8175356b 2729/* I8TYPE:
2730 * This symbol defines the C type used for Perl's I8.
0f4b6630 2731 */
8175356b 2732/* U8TYPE:
2733 * This symbol defines the C type used for Perl's U8.
2734 */
2735/* I16TYPE:
2736 * This symbol defines the C type used for Perl's I16.
2737 */
2738/* U16TYPE:
2739 * This symbol defines the C type used for Perl's U16.
2740 */
2741/* I32TYPE:
2742 * This symbol defines the C type used for Perl's I32.
2743 */
2744/* U32TYPE:
2745 * This symbol defines the C type used for Perl's U32.
2746 */
2747/* I64TYPE:
2748 * This symbol defines the C type used for Perl's I64.
2749 */
2750/* U64TYPE:
2751 * This symbol defines the C type used for Perl's U64.
2752 */
2753/* NVTYPE:
2754 * This symbol defines the C type used for Perl's NV.
2755 */
2756/* IVSIZE:
2757 * This symbol contains the sizeof(IV).
2758 */
2759/* UVSIZE:
2760 * This symbol contains the sizeof(UV).
2761 */
a22e52b9 2762/* I8SIZE:
2763 * This symbol contains the sizeof(I8).
2764 */
2765/* U8SIZE:
2766 * This symbol contains the sizeof(U8).
2767 */
2768/* I16SIZE:
2769 * This symbol contains the sizeof(I16).
2770 */
2771/* U16SIZE:
2772 * This symbol contains the sizeof(U16).
2773 */
2774/* I32SIZE:
2775 * This symbol contains the sizeof(I32).
2776 */
2777/* U32SIZE:
2778 * This symbol contains the sizeof(U32).
2779 */
2780/* I64SIZE:
2781 * This symbol contains the sizeof(I64).
2782 */
2783/* U64SIZE:
2784 * This symbol contains the sizeof(U64).
2785 */
b6592ff0 2786/* NVSIZE:
2787 * This symbol contains the sizeof(NV).
2788 */
cce08f5b 2789/* NV_PRESERVES_UV:
2790 * This symbol, if defined, indicates that a variable of type NVTYPE
bd026c32 2791 * can preserve all the bits of a variable of type UVTYPE.
cce08f5b 2792 */
d6c14000 2793/* NV_PRESERVES_UV_BITS:
2794 * This symbol contains the number of bits a variable of type NVTYPE
2795 * can preserve of a variable of type UVTYPE.
2796 */
8175356b 2797#define IVTYPE $ivtype /**/
2798#define UVTYPE $uvtype /**/
2799#define I8TYPE $i8type /**/
2800#define U8TYPE $u8type /**/
2801#define I16TYPE $i16type /**/
2802#define U16TYPE $u16type /**/
2803#define I32TYPE $i32type /**/
2804#define U32TYPE $u32type /**/
b4eb6b3d 2805#ifdef HAS_QUAD
2806#define I64TYPE $i64type /**/
2807#define U64TYPE $u64type /**/
2808#endif
8175356b 2809#define NVTYPE $nvtype /**/
2810#define IVSIZE $ivsize /**/
2811#define UVSIZE $uvsize /**/
a22e52b9 2812#define I8SIZE $i8size /**/
2813#define U8SIZE $u8size /**/
2814#define I16SIZE $i16size /**/
2815#define U16SIZE $u16size /**/
2816#define I32SIZE $i32size /**/
2817#define U32SIZE $u32size /**/
b4eb6b3d 2818#ifdef HAS_QUAD
2819#define I64SIZE $i64size /**/
2820#define U64SIZE $u64size /**/
2821#endif
b6592ff0 2822#define NVSIZE $nvsize /**/
78691af5 2823#$d_nv_preserves_uv NV_PRESERVES_UV
d6c14000 2824#define NV_PRESERVES_UV_BITS $d_nv_preserves_uv_bits
8175356b 2825
2826/* IVdf:
2827 * This symbol defines the format string used for printing a Perl IV
2828 * as a signed decimal integer.
2829 */
2830/* UVuf:
2831 * This symbol defines the format string used for printing a Perl UV
2832 * as an unsigned decimal integer.
2833 */
2834/* UVof:
2835 * This symbol defines the format string used for printing a Perl UV
2836 * as an unsigned octal integer.
2837 */
2838/* UVxf:
2839 * This symbol defines the format string used for printing a Perl UV
6b4667fc 2840 * as an unsigned hexadecimal integer in lowercase abcdef.
2841 */
159fae86 2842/* UVXf:
2843 * This symbol defines the format string used for printing a Perl UV
2844 * as an unsigned hexadecimal integer in uppercase ABCDEF.
2845 */
6b4667fc 2846/* NVef:
2847 * This symbol defines the format string used for printing a Perl NV
2848 * using %e-ish floating point format.
2849 */
2850/* NVff:
2851 * This symbol defines the format string used for printing a Perl NV
2852 * using %f-ish floating point format.
2853 */
2854/* NVgf:
2855 * This symbol defines the format string used for printing a Perl NV
2856 * using %g-ish floating point format.
cf2093f6 2857 */
8175356b 2858#define IVdf $ivdformat /**/
2859#define UVuf $uvuformat /**/
2860#define UVof $uvoformat /**/
2861#define UVxf $uvxformat /**/
159fae86 2862#define UVXf $uvXUformat /**/
6b4667fc 2863#define NVef $nveformat /**/
2864#define NVff $nvfformat /**/
2865#define NVgf $nvgformat /**/
cf2093f6 2866
ff935051 2867/* Pid_t:
2868 * This symbol holds the type used to declare process ids in the kernel.
2869 * It can be int, uint, pid_t, etc... It may be necessary to include
2870 * <sys/types.h> to get any typedef'ed information.
2871 */
2872#define Pid_t $pidtype /* PID type */
2873
2874/* PRIVLIB:
2875 * This symbol contains the name of the private library for this package.
2876 * The library is private in the sense that it needn't be in anyone's
2877 * execution path, but it should be accessible by the world. The program
2878 * should be prepared to do ~ expansion.
2879 */
2880/* PRIVLIB_EXP:
2881 * This symbol contains the ~name expanded version of PRIVLIB, to be used
2882 * in programs that are not prepared to deal with ~ expansion at run-time.
2883 */
2884#define PRIVLIB "$privlib" /**/
2885#define PRIVLIB_EXP "$privlibexp" /**/
2886
2887/* PTRSIZE:
2888 * This symbol contains the size of a pointer, so that the C preprocessor
2889 * can make decisions based on it. It will be sizeof(void *) if
2890 * the compiler supports (void *); otherwise it will be
2891 * sizeof(char *).
2892 */
2893#define PTRSIZE $ptrsize /**/
2894
2895/* Drand01:
2896 * This macro is to be used to generate uniformly distributed
2897 * random numbers over the range [0., 1.[. You may have to supply
2898 * an 'extern double drand48();' in your program since SunOS 4.1.3
2899 * doesn't provide you with anything relevant in it's headers.
2900 * See HAS_DRAND48_PROTO.
2901 */
2902/* Rand_seed_t:
2903 * This symbol defines the type of the argument of the
2904 * random seed function.
2905 */
2906/* seedDrand01:
2907 * This symbol defines the macro to be used in seeding the
2908 * random number generator (see Drand01).
2909 */
2910/* RANDBITS:
2911 * This symbol indicates how many bits are produced by the
2912 * function used to generate normalized random numbers.
2913 * Values include 15, 16, 31, and 48.
2914 */
2915#define Drand01() $drand01 /**/
2916#define Rand_seed_t $randseedtype /**/
2917#define seedDrand01(x) $seedfunc((Rand_seed_t)x) /**/
2918#define RANDBITS $randbits /**/
2919
5ff3f7a4 2920/* SELECT_MIN_BITS:
2921 * This symbol holds the minimum number of bits operated by select.
2922 * That is, if you do select(n, ...), how many bits at least will be
2923 * cleared in the masks if some activity is detected. Usually this
2924 * is either n or 32*ceil(n/32), especially many little-endians do
2925 * the latter. This is only useful if you have select(), naturally.
2926 */
ff935051 2927#define SELECT_MIN_BITS $selectminbits /**/
2928
2929/* Select_fd_set_t:
2930 * This symbol holds the type used for the 2nd, 3rd, and 4th
2931 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
2932 * is defined, and 'int *' otherwise. This is only useful if you
2933 * have select(), of course.
2934 */
2935#define Select_fd_set_t $selecttype /**/
2936
2937/* SIG_NAME:
2938 * This symbol contains a list of signal names in order of
2939 * signal number. This is intended
2940 * to be used as a static array initialization, like this:
2941 * char *sig_name[] = { SIG_NAME };
2942 * The signals in the list are separated with commas, and each signal
2943 * is surrounded by double quotes. There is no leading SIG in the signal
2944 * name, i.e. SIGQUIT is known as "QUIT".
2945 * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
2946 * etc., where nn is the actual signal number (e.g. NUM37).
2947 * The signal number for sig_name[i] is stored in sig_num[i].
2948 * The last element is 0 to terminate the list with a NULL. This
2949 * corresponds to the 0 at the end of the sig_num list.
2950 */
2951/* SIG_NUM:
2952 * This symbol contains a list of signal numbers, in the same order as the
2953 * SIG_NAME list. It is suitable for static array initialization, as in:
2954 * int sig_num[] = { SIG_NUM };
2955 * The signals in the list are separated with commas, and the indices
2956 * within that list and the SIG_NAME list match, so it's easy to compute
2957 * the signal name from a number or vice versa at the price of a small
2958 * dynamic linear lookup.
2959 * Duplicates are allowed, but are moved to the end of the list.
2960 * The signal number corresponding to sig_name[i] is sig_number[i].
2961 * if (i < NSIG) then sig_number[i] == i.
2962 * The last element is 0, corresponding to the 0 at the end of
2963 * the sig_name list.
2964 */
76d3c696 2965/* SIG_SIZE:
2966 * This variable contains the number of elements of the sig_name
bbbf5d77 2967 * and sig_num arrays, excluding the final NULL entry.
76d3c696 2968 */
ff935051 2969#define SIG_NAME $sig_name_init /**/
2970#define SIG_NUM $sig_num_init /**/
76d3c696 2971#define SIG_SIZE $sig_size /**/
ff935051 2972
2973/* SITEARCH:
2974 * This symbol contains the name of the private library for this package.
2975 * The library is private in the sense that it needn't be in anyone's
2976 * execution path, but it should be accessible by the world. The program
2977 * should be prepared to do ~ expansion.
2978 * The standard distribution will put nothing in this directory.
2979 * After perl has been installed, users may install their own local
2980 * architecture-dependent modules in this directory with
2981 * MakeMaker Makefile.PL
2982 * or equivalent. See INSTALL for details.
2983 */
2984/* SITEARCH_EXP:
2985 * This symbol contains the ~name expanded version of SITEARCH, to be used
2986 * in programs that are not prepared to deal with ~ expansion at run-time.
2987 */
2988#define SITEARCH "$sitearch" /**/
2989#define SITEARCH_EXP "$sitearchexp" /**/
2990
2991/* SITELIB:
2992 * This symbol contains the name of the private library for this package.
2993 * The library is private in the sense that it needn't be in anyone's
2994 * execution path, but it should be accessible by the world. The program
2995 * should be prepared to do ~ expansion.
2996 * The standard distribution will put nothing in this directory.
2997 * After perl has been installed, users may install their own local
2998 * architecture-independent modules in this directory with
2999 * MakeMaker Makefile.PL
3000 * or equivalent. See INSTALL for details.
3001 */
3002/* SITELIB_EXP:
3003 * This symbol contains the ~name expanded version of SITELIB, to be used
3004 * in programs that are not prepared to deal with ~ expansion at run-time.
3005 */
526fdc24 3006/* SITELIB_STEM:
3007 * This define is SITELIB_EXP with any trailing version-specific component
3008 * removed. The elements in inc_version_list (inc_version_list.U) can
3009 * be tacked onto this variable to generate a list of directories to search.
3010 */
ff935051 3011#define SITELIB "$sitelib" /**/
3012#define SITELIB_EXP "$sitelibexp" /**/
526fdc24 3013#define SITELIB_STEM "$sitelib_stem" /**/
ff935051 3014
a13ea748 3015/* Size_t_size:
3016 * This symbol holds the size of a Size_t in bytes.
3017 */
3018#define Size_t_size $sizesize /* */
3019
ff935051 3020/* Size_t:
3021 * This symbol holds the type used to declare length parameters
3022 * for string functions. It is usually size_t, but may be
3023 * unsigned long, int, etc. It may be necessary to include
3024 * <sys/types.h> to get any typedef'ed information.
3025 */
3026#define Size_t $sizetype /* length paramater for string functions */
3027
1acc7ade 3028/* Sock_size_t:
3029 * This symbol holds the type used for the size argument of
3030 * various socket calls (just the base type, not the pointer-to).
3031 */
3032#define Sock_size_t $socksizetype /**/
3033
ff935051 3034/* SSize_t:
3035 * This symbol holds the type used by functions that return
3036 * a count of bytes or an error condition. It must be a signed type.
3037 * It is usually ssize_t, but may be long or int, etc.
3038 * It may be necessary to include <sys/types.h> or <unistd.h>
3039 * to get any typedef'ed information.
3040 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
3041 */
3042#define SSize_t $ssizetype /* signed count of bytes */
5ff3f7a4 3043
568ef1f6 3044/* STARTPERL:
3045 * This variable contains the string to put in front of a perl
3046 * script to make sure (one hopes) that it runs with perl and not
3047 * some shell.
3048 */
3049#define STARTPERL "$startperl" /**/
3050
a7fea17f 3051/* STDCHAR:
3052 * This symbol is defined to be the type of char used in stdio.h.
3053 * It has the values "unsigned char" or "char".
3054 */
3055#define STDCHAR $stdchar /**/
3056
ed39a0f2 3057/* HAS_STDIO_STREAM_ARRAY:
3058 * This symbol, if defined, tells that there is an array
3059 * holding the stdio streams.
3060 */
767df6a1 3061/* STDIO_STREAM_ARRAY:
ed39a0f2 3062 * This symbol tells the name of the array holding the stdio streams.
3063 * Usual values include _iob, __iob, and __sF.
767df6a1 3064 */
ed39a0f2 3065#$d_stdio_stream_array HAS_STDIO_STREAM_ARRAY /**/
767df6a1 3066#define STDIO_STREAM_ARRAY $stdio_stream_array
3067
ff935051 3068/* Uid_t_f:
3069 * This symbol defines the format string used for printing a Uid_t.
cf2093f6 3070 */
ff935051 3071#define Uid_t_f $uidformat /**/
3072
23dcd6c8 3073/* Uid_t_sign:
3074 * This symbol holds the signedess of a Uid_t.
3075 * 1 for unsigned, -1 for signed.
3076 */
3077#define Uid_t_sign $uidsign /* UID sign */
3078
ff935051 3079/* Uid_t_size:
3080 * This symbol holds the size of a Uid_t in bytes.
3081 */
3082#define Uid_t_size $uidsize /* UID size */
3083
3084/* Uid_t:
3085 * This symbol holds the type used to declare user ids in the kernel.
3086 * It can be int, ushort, uid_t, etc... It may be necessary to include
3087 * <sys/types.h> to get any typedef'ed information.
3088 */
3089#define Uid_t $uidtype /* UID type */
cf2093f6 3090
10cc9d2a 3091/* USE_64_BIT_INT:
bd9b35c9 3092 * This symbol, if defined, indicates that 64-bit integers should
3093 * be used when available. If not defined, the native integers
49c10eea 3094 * will be employed (be they 32 or 64 bits). The minimal possible
3095 * 64-bitness is used, just enough to get 64-bit integers into Perl.
3096 * This may mean using for example "long longs", while your memory
3097 * may still be limited to 2 gigabytes.
5ff3f7a4 3098 */
10cc9d2a 3099/* USE_64_BIT_ALL:
3100 * This symbol, if defined, indicates that 64-bit integers should
3101 * be used when available. If not defined, the native integers
3102 * will be used (be they 32 or 64 bits). The maximal possible
3103 * 64-bitness is employed: LP64 or ILP64, meaning that you will
3104 * be able to use more than 2 gigabytes of memory. This mode is
3105 * even more binary incompatible than USE_64_BIT_INT. You may not
3106 * be able to run the resulting executable in a 32-bit CPU at all or
3107 * you may need at least to reboot your OS to 64-bit mode.
3108 */
b4eb6b3d 3109#ifndef USE_64_BIT_INT
3110#$use64bitint USE_64_BIT_INT /**/
3111#endif
3112
3113#ifndef USE_64_BIT_ALL
3114#$use64bitall USE_64_BIT_ALL /**/
3115#endif
49c10eea 3116
09458382 3117/* USE_LARGE_FILES:
3118 * This symbol, if defined, indicates that large file support
c890dc6c 3119 * should be used when available.
09458382 3120 */
b4eb6b3d 3121#ifndef USE_LARGE_FILES
3122#$uselargefiles USE_LARGE_FILES /**/
3123#endif
09458382 3124
b0ce926a 3125/* USE_LONG_DOUBLE:
3126 * This symbol, if defined, indicates that long doubles should
3127 * be used when available.
3128 */
b4eb6b3d 3129#ifndef USE_LONG_DOUBLE
3130#$uselongdouble USE_LONG_DOUBLE /**/
3131#endif
d7d93a81 3132
c71a9cee 3133/* USE_MORE_BITS:
3134 * This symbol, if defined, indicates that 64-bit interfaces and
3135 * long doubles should be used when available.
3136 */
b4eb6b3d 3137#ifndef USE_MORE_BITS
3138#$usemorebits USE_MORE_BITS /**/
3139#endif
b0ce926a 3140
104d25b7 3141/* MULTIPLICITY:
3142 * This symbol, if defined, indicates that Perl should
3143 * be built to use multiplicity.
3144 */
b4eb6b3d 3145#ifndef MULTIPLICITY
3146#$usemultiplicity MULTIPLICITY /**/
3147#endif
104d25b7 3148
e876cf0b 3149/* USE_PERLIO:
3150 * This symbol, if defined, indicates that the PerlIO abstraction should
3151 * be used throughout. If not defined, stdio should be
3152 * used in a fully backward compatible manner.
3153 */
b4eb6b3d 3154#ifndef USE_PERLIO
3155#$useperlio USE_PERLIO /**/
3156#endif
e876cf0b 3157
29209bc5 3158/* USE_SOCKS:
3159 * This symbol, if defined, indicates that Perl should
3160 * be built to use socks.
3161 */
d7d93a81 3162#ifndef USE_SOCKS
29209bc5 3163#$usesocks USE_SOCKS /**/
d7d93a81 3164#endif
29209bc5 3165
aaacdc8b 3166/* USE_ITHREADS:
3167 * This symbol, if defined, indicates that Perl should be built to
3168 * use the interpreter-based threading implementation.
3169 */
3170/* USE_5005THREADS:
3171 * This symbol, if defined, indicates that Perl should be built to
3172 * use the 5.005-based threading implementation.
dfe9444c 3173 */
693762b4 3174/* OLD_PTHREADS_API:
3175 * This symbol, if defined, indicates that Perl should
3176 * be built to use the old draft POSIX threads API.
3177 */
aaacdc8b 3178#$use5005threads USE_5005THREADS /**/
3179#$useithreads USE_ITHREADS /**/
b4eb6b3d 3180#if defined(USE_5005THREADS) && !defined(USE_ITHREADS)
3181#define USE_THREADS /* until src is revised*/
3182#endif
693762b4 3183#$d_oldpthreads OLD_PTHREADS_API /**/
8e07c86e 3184
1acc7ade 3185/* PERL_VENDORARCH:
3186 * If defined, this symbol contains the name of a private library.
3187 * The library is private in the sense that it needn't be in anyone's
3188 * execution path, but it should be accessible by the world.
3189 * It may have a ~ on the front.
3190 * The standard distribution will put nothing in this directory.
3191 * Vendors who distribute perl may wish to place their own
3192 * architecture-dependent modules and extensions in this directory with
3193 * MakeMaker Makefile.PL INSTALLDIRS=vendor
3194 * or equivalent. See INSTALL for details.
3195 */
526fdc24 3196/* PERL_VENDORARCH_EXP:
3197 * This symbol contains the ~name expanded version of PERL_VENDORARCH, to be used
3198 * in programs that are not prepared to deal with ~ expansion at run-time.
3199 */
1acc7ade 3200#$d_vendorarch PERL_VENDORARCH "$vendorarch" /**/
526fdc24 3201#$d_vendorarch PERL_VENDORARCH_EXP "$vendorarchexp" /**/
3202
ff935051 3203/* PERL_VENDORLIB_EXP:
3204 * This symbol contains the ~name expanded version of VENDORLIB, to be used
3205 * in programs that are not prepared to deal with ~ expansion at run-time.
887d2938 3206 */
526fdc24 3207/* PERL_VENDORLIB_STEM:
3208 * This define is PERL_VENDORLIB_EXP with any trailing version-specific component
3209 * removed. The elements in inc_version_list (inc_version_list.U) can
3210 * be tacked onto this variable to generate a list of directories to search.
3211 */
ff935051 3212#$d_vendorlib PERL_VENDORLIB_EXP "$vendorlibexp" /**/
526fdc24 3213#$d_vendorlib PERL_VENDORLIB_STEM "$vendorlib_stem" /**/
887d2938 3214
b4eb6b3d 3215/* VOIDFLAGS:
3216 * This symbol indicates how much support of the void type is given by this
3217 * compiler. What various bits mean:
3218 *
3219 * 1 = supports declaration of void
3220 * 2 = supports arrays of pointers to functions returning void
3221 * 4 = supports comparisons between pointers to void functions and
3222 * addresses of void functions
3223 * 8 = suports declaration of generic void pointers
3224 *
3225 * The package designer should define VOIDUSED to indicate the requirements
3226 * of the package. This can be done either by #defining VOIDUSED before
3227 * including config.h, or by defining defvoidused in Myinit.U. If the
3228 * latter approach is taken, only those flags will be tested. If the
3229 * level of void support necessary is not present, defines void to int.
3230 */
3231#ifndef VOIDUSED
3232#define VOIDUSED $defvoidused
3233#endif
3234#define VOIDFLAGS $voidflags
3235#if (VOIDFLAGS & VOIDUSED) != VOIDUSED
3236#define void int /* is void to be avoided? */
3237#define M_VOID /* Xenix strikes again */
3238#endif
3239
fe749a9f 3240/* PERL_XS_APIVERSION:
3241 * This variable contains the version of the oldest perl binary
3242 * compatible with the present perl. perl.c:incpush() and
3243 * lib/lib.pm will automatically search in $sitearch for older
3244 * directories across major versions back to xs_apiversion.
3245 * This is only useful if you have a perl library directory tree
3246 * structured like the default one.
3247 * See INSTALL for how this works.
3248 * The versioned site_perl directory was introduced in 5.005,
3249 * so that is the lowest possible value.
3250 * Since this can depend on compile time options (such as
3251 * bincompat) it is set by Configure. Other non-default sources
3252 * of potential incompatibility, such as multiplicity, threads,
3253 * debugging, 64bits, sfio, etc., are not checked for currently,
3254 * though in principle we could go snooping around in old
3255 * Config.pm files.
3256 */
3257/* PERL_PM_APIVERSION:
3258 * This variable contains the version of the oldest perl
3259 * compatible with the present perl. (That is, pure perl modules
3260 * written for pm_apiversion will still work for the current
3261 * version). perl.c:incpush() and lib/lib.pm will automatically
3262 * search in $sitelib for older directories across major versions
3263 * back to pm_apiversion. This is only useful if you have a perl
3264 * library directory tree structured like the default one. The
3265 * versioned site_perl library was introduced in 5.005, so that's
3266 * the default setting for this variable. It's hard to imagine
3267 * it changing before Perl6. It is included here for symmetry
3268 * with xs_apiveprsion -- the searching algorithms will
3269 * (presumably) be similar.
3270 * See the INSTALL file for how this works.
3271 */
3272#define PERL_XS_APIVERSION "$xs_apiversion"
3273#define PERL_PM_APIVERSION "$pm_apiversion"
3274
983dbef6 3275/* HAS_SIGPROCMASK:
3276 * This symbol, if defined, indicates that the sigprocmask
3277 * system call is available to examine or change the signal mask
3278 * of the calling process.
3279 */
3280#$d_sigprocmask HAS_SIGPROCMASK /**/
3281
49a78c82 3282/* HAS_SOCKATMARK:
3283 * This symbol, if defined, indicates that the sockatmark routine is
3284 * available to test whether a socket is at the out-of-band mark.
3285 */
3286#$d_sockatmark HAS_SOCKATMARK /**/
3287
fe14fcc3 3288#endif
8d063cd8 3289!GROK!THIS!