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