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