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