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