Also posix-bc wants to reyacc.
[p5sagit/p5-mst-13.2.git] / config_h.SH
CommitLineData
8d063cd8 1case $CONFIG in
2'')
2304df62 3 if test -f config.sh; then TOP=.;
4 elif test -f ../config.sh; then TOP=..;
5 elif test -f ../../config.sh; then TOP=../..;
6 elif test -f ../../../config.sh; then TOP=../../..;
7 elif test -f ../../../../config.sh; then TOP=../../../..;
8 else
9 echo "Can't find config.sh."; exit 1
10 fi
11 . $TOP/config.sh
12 ;;
13esac
14case "$0" in
15*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
8d063cd8 16esac
17echo "Extracting config.h (with variable substitutions)"
a26b0745 18sed <<!GROK!THIS! >config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un-def!#undef!'
2304df62 19/*
20 * This file was produced by running the config_h.SH script, which
8d063cd8 21 * gets its values from config.sh, which is generally produced by
22 * running Configure.
23 *
24 * Feel free to modify any of this as the need arises. Note, however,
1aef975c 25 * that running config_h.SH again will wipe out any changes you've made.
26 * For a more permanent change edit config.sh and rerun config_h.SH.
2304df62 27 *
dfe9444c 28 * \$Id: Config_h.U,v 3.0.1.5 1997/02/28 14:57:43 ram Exp $
8d063cd8 29 */
30
dfe9444c 31/*
32 * Package name : $package
33 * Source directory : $src
34 * Configuration time: $cf_time
35 * Configured by : $cf_by
36 * Target system : $myuname
2304df62 37 */
8d063cd8 38
2304df62 39#ifndef _config_h_
40#define _config_h_
41
dfe9444c 42/* LOC_SED:
43 * This symbol holds the complete pathname to the sed program.
774d564b 44 */
dfe9444c 45#define LOC_SED "$full_sed" /**/
774d564b 46
2304df62 47/* BIN:
48 * This symbol holds the path of the bin directory where the package will
49 * be installed. Program must be prepared to deal with ~name substitution.
a687059c 50 */
2ae324a7 51/* BIN_EXP:
52 * This symbol is the filename expanded version of the BIN symbol, for
53 * programs that do not want to deal with that at run-time.
54 */
2304df62 55#define BIN "$bin" /**/
2ae324a7 56#define BIN_EXP "$binexp" /**/
a687059c 57
a0d0e21e 58/* HAS_ALARM:
59 * This symbol, if defined, indicates that the alarm routine is
60 * available.
61 */
62#$d_alarm HAS_ALARM /**/
63
ecfc5424 64/* HASATTRIBUTE:
65 * This symbol indicates the C compiler can check for function attributes,
66 * such as printf formats. This is normally only supported by GNU cc.
67 */
68#$d_attribut HASATTRIBUTE /**/
69#ifndef HASATTRIBUTE
70#define __attribute__(_arg_)
71#endif
72
2304df62 73/* HAS_BCMP:
74 * This symbol is defined if the bcmp() routine is available to
75 * compare blocks of memory.
a687059c 76 */
2304df62 77#$d_bcmp HAS_BCMP /**/
a687059c 78
2304df62 79/* HAS_BCOPY:
80 * This symbol is defined if the bcopy() routine is available to
81 * copy blocks of memory.
c51b80d1 82 */
2304df62 83#$d_bcopy HAS_BCOPY /**/
c51b80d1 84
2304df62 85/* HAS_BZERO:
86 * This symbol is defined if the bzero() routine is available to
87 * set a memory block to 0.
0d3e774c 88 */
2304df62 89#$d_bzero HAS_BZERO /**/
0d3e774c 90
a0d0e21e 91/* HAS_CHOWN:
92 * This symbol, if defined, indicates that the chown routine is
93 * available.
94 */
95#$d_chown HAS_CHOWN /**/
96
97/* HAS_CHROOT:
98 * This symbol, if defined, indicates that the chroot routine is
99 * available.
100 */
101#$d_chroot HAS_CHROOT /**/
102
2304df62 103/* HAS_CHSIZE:
87250799 104 * This symbol, if defined, indicates that the chsize routine is available
105 * to truncate files. You might need a -lx to get this routine.
106 */
fe14fcc3 107#$d_chsize HAS_CHSIZE /**/
87250799 108
2304df62 109/* HASCONST:
110 * This symbol, if defined, indicates that this C compiler knows about
111 * the const type. There is no need to actually test for that symbol
112 * within your programs. The mere use of the "const" keyword will
113 * trigger the necessary tests.
114 */
115#$d_const HASCONST /**/
116#ifndef HASCONST
117#define const
118#endif
119
120/* HAS_CRYPT:
2e1b3b7e 121 * This symbol, if defined, indicates that the crypt routine is available
122 * to encrypt passwords and the like.
123 */
2304df62 124#$d_crypt HAS_CRYPT /**/
2e1b3b7e 125
a0d0e21e 126/* HAS_CUSERID:
127 * This symbol, if defined, indicates that the cuserid routine is
128 * available to get character login names.
13281fa4 129 */
a0d0e21e 130#$d_cuserid HAS_CUSERID /**/
131
132/* HAS_DBL_DIG:
133 * This symbol, if defined, indicates that this system's <float.h>
134 * or <limits.h> defines the symbol DBL_DIG, which is the number
135 * of significant digits in a double precision number. If this
136 * symbol is not defined, a guess of 15 is usually pretty good.
137 */
138#$d_dbl_dig HAS_DBL_DIG /* */
139
140/* HAS_DIFFTIME:
141 * This symbol, if defined, indicates that the difftime routine is
142 * available.
143 */
144#$d_difftime HAS_DIFFTIME /**/
13281fa4 145
ecfc5424 146/* HAS_DLERROR:
147 * This symbol, if defined, indicates that the dlerror routine is
148 * available to return a string describing the last error that
149 * occurred from a call to dlopen(), dlclose() or dlsym().
150 */
151#$d_dlerror HAS_DLERROR /**/
152
dfe9444c 153/* SETUID_SCRIPTS_ARE_SECURE_NOW:
154 * This symbol, if defined, indicates that the bug that prevents
155 * setuid scripts from being secure is not present in this kernel.
156 */
157/* DOSUID:
158 * This symbol, if defined, indicates that the C program should
159 * check the script that it is executing for setuid/setgid bits, and
160 * attempt to emulate setuid/setgid on systems that have disabled
161 * setuid #! scripts because the kernel can't do it securely.
162 * It is up to the package designer to make sure that this emulation
163 * is done securely. Among other things, it should do an fstat on
164 * the script it just opened to make sure it really is a setuid/setgid
165 * script, it should make sure the arguments passed correspond exactly
166 * to the argument on the #! line, and it should not trust any
167 * subprocesses to which it must pass the filename rather than the
168 * file descriptor of the script to be executed.
169 */
170#$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/
171#$d_dosuid DOSUID /**/
172
2304df62 173/* HAS_DUP2:
174 * This symbol, if defined, indicates that the dup2 routine is
175 * available to duplicate file descriptors.
a687059c 176 */
2304df62 177#$d_dup2 HAS_DUP2 /**/
a687059c 178
2304df62 179/* HAS_FCHMOD:
378cc40b 180 * This symbol, if defined, indicates that the fchmod routine is available
181 * to change mode of opened files. If unavailable, use chmod().
182 */
2304df62 183#$d_fchmod HAS_FCHMOD /**/
378cc40b 184
2304df62 185/* HAS_FCHOWN:
378cc40b 186 * This symbol, if defined, indicates that the fchown routine is available
187 * to change ownership of opened files. If unavailable, use chown().
188 */
2304df62 189#$d_fchown HAS_FCHOWN /**/
378cc40b 190
2304df62 191/* HAS_FCNTL:
fe14fcc3 192 * This symbol, if defined, indicates to the C program that
193 * the fcntl() function exists.
a687059c 194 */
2304df62 195#$d_fcntl HAS_FCNTL /**/
a687059c 196
a0d0e21e 197/* HAS_FGETPOS:
198 * This symbol, if defined, indicates that the fgetpos routine is
199 * available to get the file position indicator, similar to ftell().
200 */
201#$d_fgetpos HAS_FGETPOS /**/
202
2304df62 203/* FLEXFILENAMES:
7e1cf235 204 * This symbol, if defined, indicates that the system supports filenames
205 * longer than 14 characters.
206 */
207#$d_flexfnam FLEXFILENAMES /**/
208
2304df62 209/* HAS_FLOCK:
210 * This symbol, if defined, indicates that the flock routine is
a687059c 211 * available to do file locking.
212 */
2304df62 213#$d_flock HAS_FLOCK /**/
a687059c 214
a0d0e21e 215/* HAS_FORK:
216 * This symbol, if defined, indicates that the fork routine is
217 * available.
218 */
219#$d_fork HAS_FORK /**/
220
221/* HAS_FSETPOS:
222 * This symbol, if defined, indicates that the fsetpos routine is
223 * available to set the file position indicator, similar to fseek().
224 */
225#$d_fsetpos HAS_FSETPOS /**/
226
5f05dabc 227/* HAS_GETTIMEOFDAY:
228 * This symbol, if defined, indicates that the gettimeofday() system
229 * call is available for a sub-second accuracy clock. Usually, the file
230 * <sys/resource.h> needs to be included (see I_SYS_RESOURCE).
231 * The type "Timeval" should be used to refer to "struct timeval".
232 */
233#$d_gettimeod HAS_GETTIMEOFDAY /**/
234#ifdef HAS_GETTIMEOFDAY
235#define Timeval struct timeval /* Structure used by gettimeofday() */
236#endif
237
2304df62 238/* HAS_GETGROUPS:
378cc40b 239 * This symbol, if defined, indicates that the getgroups() routine is
240 * available to get the list of process groups. If unavailable, multiple
241 * groups are probably not supported.
242 */
2304df62 243#$d_getgrps HAS_GETGROUPS /**/
378cc40b 244
2304df62 245/* HAS_UNAME:
246 * This symbol, if defined, indicates that the C program may use the
247 * uname() routine to derive the host name. See also HAS_GETHOSTNAME
248 * and PHOSTNAME.
249 */
250#$d_uname HAS_UNAME /**/
a687059c 251
a0d0e21e 252/* HAS_GETLOGIN:
253 * This symbol, if defined, indicates that the getlogin routine is
254 * available to get the login name.
255 */
256#$d_getlogin HAS_GETLOGIN /**/
257
dfe9444c 258/* HAS_GETPGID:
259 * This symbol, if defined, indicates to the C program that
260 * the getpgid(pid) function is available to get the
261 * process group id.
262 */
263#$d_getpgid HAS_GETPGID /**/
264
265/* HAS_GETPGRP:
266 * This symbol, if defined, indicates that the getpgrp routine is
267 * available to get the current process group.
268 */
269/* USE_BSD_GETPGRP:
270 * This symbol, if defined, indicates that getpgrp needs one
271 * arguments whereas USG one needs none.
272 */
273#$d_getpgrp HAS_GETPGRP /**/
274#$d_bsdgetpgrp USE_BSD_GETPGRP /**/
275
2304df62 276/* HAS_GETPGRP2:
d8f2e4cc 277 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
278 * routine is available to get the current process group.
279 */
2304df62 280#$d_getpgrp2 HAS_GETPGRP2 /**/
d8f2e4cc 281
a0d0e21e 282/* HAS_GETPPID:
283 * This symbol, if defined, indicates that the getppid routine is
284 * available to get the parent process ID.
285 */
286#$d_getppid HAS_GETPPID /**/
287
2304df62 288/* HAS_GETPRIORITY:
289 * This symbol, if defined, indicates that the getpriority routine is
a687059c 290 * available to get a process's priority.
291 */
2304df62 292#$d_getprior HAS_GETPRIORITY /**/
a687059c 293
dfe9444c 294/* HAS_INET_ATON:
295 * This symbol, if defined, indicates to the C program that the
296 * inet_aton() function is available to parse IP address "dotted-quad"
297 * strings.
ecfc5424 298 */
dfe9444c 299#$d_inetaton HAS_INET_ATON /**/
ecfc5424 300
2304df62 301/* HAS_KILLPG:
378cc40b 302 * This symbol, if defined, indicates that the killpg routine is available
303 * to kill process groups. If unavailable, you probably should use kill
304 * with a negative process number.
305 */
2304df62 306#$d_killpg HAS_KILLPG /**/
378cc40b 307
2304df62 308/* HAS_LINK:
309 * This symbol, if defined, indicates that the link routine is
310 * available to create hard links.
0d3e774c 311 */
2304df62 312#$d_link HAS_LINK /**/
0d3e774c 313
ecfc5424 314/* HAS_LOCALECONV:
315 * This symbol, if defined, indicates that the localeconv routine is
316 * available for numeric and monetary formatting conventions.
317 */
318#$d_locconv HAS_LOCALECONV /**/
319
a0d0e21e 320/* HAS_LOCKF:
321 * This symbol, if defined, indicates that the lockf routine is
322 * available to do file locking.
323 */
324#$d_lockf HAS_LOCKF /**/
325
2304df62 326/* HAS_LSTAT:
327 * This symbol, if defined, indicates that the lstat routine is
328 * available to do file stats on symbolic links.
a687059c 329 */
2304df62 330#$d_lstat HAS_LSTAT /**/
a687059c 331
a0d0e21e 332/* HAS_MBLEN:
333 * This symbol, if defined, indicates that the mblen routine is available
334 * to find the number of bytes in a multibye character.
335 */
336#$d_mblen HAS_MBLEN /**/
337
338/* HAS_MBSTOWCS:
339 * This symbol, if defined, indicates that the mbstowcs routine is
340 * available to covert a multibyte string into a wide character string.
341 */
342#$d_mbstowcs HAS_MBSTOWCS /**/
343
344/* HAS_MBTOWC:
345 * This symbol, if defined, indicates that the mbtowc routine is available
346 * to covert a multibyte to a wide character.
347 */
348#$d_mbtowc HAS_MBTOWC /**/
349
2304df62 350/* HAS_MEMCMP:
351 * This symbol, if defined, indicates that the memcmp routine is available
352 * to compare blocks of memory.
378cc40b 353 */
2304df62 354#$d_memcmp HAS_MEMCMP /**/
355
356/* HAS_MEMCPY:
9f971974 357 * This symbol, if defined, indicates that the memcpy routine is available
2304df62 358 * to copy blocks of memory.
9f971974 359 */
2304df62 360#$d_memcpy HAS_MEMCPY /**/
9f971974 361
2304df62 362/* HAS_MEMMOVE:
9f971974 363 * This symbol, if defined, indicates that the memmove routine is available
2304df62 364 * to copy potentially overlapping blocks of memory. This should be used
365 * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
366 * own version.
9f971974 367 */
2304df62 368#$d_memmove HAS_MEMMOVE /**/
9f971974 369
2304df62 370/* HAS_MEMSET:
9f971974 371 * This symbol, if defined, indicates that the memset routine is available
2304df62 372 * to set blocks of memory.
9f971974 373 */
2304df62 374#$d_memset HAS_MEMSET /**/
378cc40b 375
2304df62 376/* HAS_MKDIR:
a687059c 377 * This symbol, if defined, indicates that the mkdir routine is available
378 * to create directories. Otherwise you should fork off a new process to
379 * exec /bin/mkdir.
380 */
2304df62 381#$d_mkdir HAS_MKDIR /**/
fe14fcc3 382
ecfc5424 383/* HAS_MKFIFO:
384 * This symbol, if defined, indicates that the mkfifo routine is
385 * available to create FIFOs. Otherwise, mknod should be able to
386 * do it for you. However, if mkfifo is there, mknod might require
387 * super-user privileges which mkfifo will not.
388 */
389#$d_mkfifo HAS_MKFIFO /**/
390
a0d0e21e 391/* HAS_MKTIME:
392 * This symbol, if defined, indicates that the mktime routine is
393 * available.
394 */
395#$d_mktime HAS_MKTIME /**/
396
a0d0e21e 397/* HAS_NICE:
398 * This symbol, if defined, indicates that the nice routine is
399 * available.
fe14fcc3 400 */
a0d0e21e 401#$d_nice HAS_NICE /**/
a687059c 402
ecfc5424 403/* HAS_PATHCONF:
404 * This symbol, if defined, indicates that pathconf() is available
405 * to determine file-system related limits and options associated
406 * with a given filename.
407 */
408/* HAS_FPATHCONF:
409 * This symbol, if defined, indicates that pathconf() is available
410 * to determine file-system related limits and options associated
411 * with a given open file descriptor.
412 */
413#$d_pathconf HAS_PATHCONF /**/
414#$d_fpathconf HAS_FPATHCONF /**/
415
a0d0e21e 416/* HAS_PAUSE:
417 * This symbol, if defined, indicates that the pause routine is
418 * available to suspend a process until a signal is received.
a687059c 419 */
a0d0e21e 420#$d_pause HAS_PAUSE /**/
a687059c 421
a0d0e21e 422/* HAS_PIPE:
423 * This symbol, if defined, indicates that the pipe routine is
424 * available to create an inter-process channel.
fe14fcc3 425 */
a0d0e21e 426#$d_pipe HAS_PIPE /**/
427
8e07c86e 428/* HAS_POLL:
429 * This symbol, if defined, indicates that the poll routine is
dfe9444c 430 * available to poll active file descriptors. You may safely
431 * include <poll.h> when this symbol is defined.
8e07c86e 432 */
433#$d_poll HAS_POLL /**/
434
a0d0e21e 435/* HAS_READDIR:
436 * This symbol, if defined, indicates that the readdir routine is
437 * available to read directory entries. You may have to include
438 * <dirent.h>. See I_DIRENT.
439 */
440#$d_readdir HAS_READDIR /**/
441
442/* HAS_SEEKDIR:
443 * This symbol, if defined, indicates that the seekdir routine is
444 * available. You may have to include <dirent.h>. See I_DIRENT.
445 */
446#$d_seekdir HAS_SEEKDIR /**/
447
448/* HAS_TELLDIR:
449 * This symbol, if defined, indicates that the telldir routine is
450 * available. You may have to include <dirent.h>. See I_DIRENT.
451 */
452#$d_telldir HAS_TELLDIR /**/
453
454/* HAS_REWINDDIR:
455 * This symbol, if defined, indicates that the rewinddir routine is
456 * available. You may have to include <dirent.h>. See I_DIRENT.
457 */
458#$d_rewinddir HAS_REWINDDIR /**/
459
460/* HAS_READLINK:
461 * This symbol, if defined, indicates that the readlink routine is
462 * available to read the value of a symbolic link.
463 */
464#$d_readlink HAS_READLINK /**/
fe14fcc3 465
2304df62 466/* HAS_RENAME:
378cc40b 467 * This symbol, if defined, indicates that the rename routine is available
468 * to rename files. Otherwise you should do the unlink(), link(), unlink()
469 * trick.
470 */
2304df62 471#$d_rename HAS_RENAME /**/
378cc40b 472
2304df62 473/* HAS_RMDIR:
474 * This symbol, if defined, indicates that the rmdir routine is
475 * available to remove directories. Otherwise you should fork off a
476 * new process to exec /bin/rmdir.
9f971974 477 */
2304df62 478#$d_rmdir HAS_RMDIR /**/
9f971974 479
2304df62 480/* HAS_SELECT:
481 * This symbol, if defined, indicates that the select routine is
482 * available to select active file descriptors. If the timeout field
483 * is used, <sys/time.h> may need to be included.
fe14fcc3 484 */
2304df62 485#$d_select HAS_SELECT /**/
a687059c 486
2304df62 487/* HAS_SETEGID:
378cc40b 488 * This symbol, if defined, indicates that the setegid routine is available
489 * to change the effective gid of the current program.
490 */
2304df62 491#$d_setegid HAS_SETEGID /**/
378cc40b 492
2304df62 493/* HAS_SETEUID:
378cc40b 494 * This symbol, if defined, indicates that the seteuid routine is available
495 * to change the effective uid of the current program.
496 */
2304df62 497#$d_seteuid HAS_SETEUID /**/
498
a0d0e21e 499/* HAS_SETLINEBUF:
500 * This symbol, if defined, indicates that the setlinebuf routine is
501 * available to change stderr or stdout from block-buffered or unbuffered
502 * to a line-buffered mode.
503 */
504#$d_setlinebuf HAS_SETLINEBUF /**/
505
506/* HAS_SETLOCALE:
507 * This symbol, if defined, indicates that the setlocale routine is
508 * available to handle locale-specific ctype implementations.
509 */
510#$d_setlocale HAS_SETLOCALE /**/
511
dfe9444c 512/* HAS_SETPGID:
513 * This symbol, if defined, indicates that the setpgid(pid, gpid)
514 * routine is available to set process group ID.
515 */
516#$d_setpgid HAS_SETPGID /**/
517
518/* HAS_SETPGRP:
519 * This symbol, if defined, indicates that the setpgrp routine is
520 * available to set the current process group.
521 */
522/* USE_BSD_SETPGRP:
523 * This symbol, if defined, indicates that setpgrp needs two
524 * arguments whereas USG one needs none. See also HAS_SETPGID
525 * for a POSIX interface.
526 */
527#$d_setpgrp HAS_SETPGRP /**/
528#$d_bsdsetpgrp USE_BSD_SETPGRP /**/
529
2304df62 530/* HAS_SETPGRP2:
d8f2e4cc 531 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
532 * routine is available to set the current process group.
533 */
2304df62 534#$d_setpgrp2 HAS_SETPGRP2 /**/
d8f2e4cc 535
2304df62 536/* HAS_SETPRIORITY:
537 * This symbol, if defined, indicates that the setpriority routine is
a687059c 538 * available to set a process's priority.
539 */
2304df62 540#$d_setprior HAS_SETPRIORITY /**/
a687059c 541
2304df62 542/* HAS_SETREGID:
a687059c 543 * This symbol, if defined, indicates that the setregid routine is
2304df62 544 * available to change the real and effective gid of the current
545 * process.
a687059c 546 */
2304df62 547/* HAS_SETRESGID:
a687059c 548 * This symbol, if defined, indicates that the setresgid routine is
549 * available to change the real, effective and saved gid of the current
2304df62 550 * process.
a687059c 551 */
2304df62 552#$d_setregid HAS_SETREGID /**/
553#$d_setresgid HAS_SETRESGID /**/
a687059c 554
2304df62 555/* HAS_SETREUID:
a687059c 556 * This symbol, if defined, indicates that the setreuid routine is
2304df62 557 * available to change the real and effective uid of the current
558 * process.
a687059c 559 */
2304df62 560/* HAS_SETRESUID:
a687059c 561 * This symbol, if defined, indicates that the setresuid routine is
562 * available to change the real, effective and saved uid of the current
2304df62 563 * process.
a687059c 564 */
2304df62 565#$d_setreuid HAS_SETREUID /**/
566#$d_setresuid HAS_SETRESUID /**/
a687059c 567
2304df62 568/* HAS_SETRGID:
378cc40b 569 * This symbol, if defined, indicates that the setrgid routine is available
570 * to change the real gid of the current program.
571 */
2304df62 572#$d_setrgid HAS_SETRGID /**/
378cc40b 573
2304df62 574/* HAS_SETRUID:
378cc40b 575 * This symbol, if defined, indicates that the setruid routine is available
576 * to change the real uid of the current program.
577 */
2304df62 578#$d_setruid HAS_SETRUID /**/
579
580/* HAS_SETSID:
581 * This symbol, if defined, indicates that the setsid routine is
582 * available to set the process group ID.
583 */
584#$d_setsid HAS_SETSID /**/
fe14fcc3 585
a0d0e21e 586/* Shmat_t:
587 * This symbol holds the return type of the shmat() system call.
588 * Usually set to 'void *' or 'char *'.
fe14fcc3 589 */
a0d0e21e 590/* HAS_SHMAT_PROTOTYPE:
591 * This symbol, if defined, indicates that the sys/shm.h includes
592 * a prototype for shmat(). Otherwise, it is up to the program to
593 * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
594 * but not always right so it should be emitted by the program only
595 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
fe14fcc3 596 */
a0d0e21e 597#define Shmat_t $shmattype /**/
598#$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/
fe14fcc3 599
dfe9444c 600/* HAS_STRCHR:
601 * This symbol is defined to indicate that the strchr()/strrchr()
602 * functions are available for string searching. If not, try the
603 * index()/rindex() pair.
16d20bd9 604 */
dfe9444c 605/* HAS_INDEX:
606 * This symbol is defined to indicate that the index()/rindex()
607 * functions are available for string searching.
c2960299 608 */
dfe9444c 609#$d_strchr HAS_STRCHR /**/
610#$d_index HAS_INDEX /**/
611
612/* HAS_STRCOLL:
613 * This symbol, if defined, indicates that the strcoll routine is
614 * available to compare strings using collating information.
16d20bd9 615 */
dfe9444c 616#$d_strcoll HAS_STRCOLL /**/
617
618/* USE_STRUCT_COPY:
619 * This symbol, if defined, indicates that this C compiler knows how
620 * to copy structures. If undefined, you'll need to use a block copy
621 * routine of some sort instead.
c2960299 622 */
dfe9444c 623#$d_strctcpy USE_STRUCT_COPY /**/
8d063cd8 624
a89d8a78 625/* HAS_STRTOD:
626 * This symbol, if defined, indicates that the strtod routine is
5f05dabc 627 * available to provide better numeric string conversion than atof().
a89d8a78 628 */
629#$d_strtod HAS_STRTOD /**/
630
631/* HAS_STRTOL:
5f05dabc 632 * This symbol, if defined, indicates that the strtol routine is available
633 * to provide better numeric string conversion than atoi() and friends.
a89d8a78 634 */
635#$d_strtol HAS_STRTOL /**/
636
637/* HAS_STRTOUL:
638 * This symbol, if defined, indicates that the strtoul routine is
5f05dabc 639 * available to provide conversion of strings to unsigned long.
a89d8a78 640 */
641#$d_strtoul HAS_STRTOUL /**/
642
a0d0e21e 643/* HAS_STRXFRM:
644 * This symbol, if defined, indicates that the strxfrm() routine is
645 * available to transform strings.
646 */
647#$d_strxfrm HAS_STRXFRM /**/
648
2304df62 649/* HAS_SYMLINK:
2e1b3b7e 650 * This symbol, if defined, indicates that the symlink routine is available
651 * to create symbolic links.
652 */
2304df62 653#$d_symlink HAS_SYMLINK /**/
2e1b3b7e 654
2304df62 655/* HAS_SYSCALL:
656 * This symbol, if defined, indicates that the syscall routine is
657 * available to call arbitrary system calls. If undefined, that's tough.
a687059c 658 */
2304df62 659#$d_syscall HAS_SYSCALL /**/
e5d73d77 660
ecfc5424 661/* HAS_SYSCONF:
662 * This symbol, if defined, indicates that sysconf() is available
663 * to determine system related limits and options.
664 */
665#$d_sysconf HAS_SYSCONF /**/
666
2304df62 667/* HAS_SYSTEM:
668 * This symbol, if defined, indicates that the system routine is
669 * available to issue a shell command.
9f971974 670 */
2304df62 671#$d_system HAS_SYSTEM /**/
9f971974 672
a0d0e21e 673/* HAS_TCGETPGRP:
674 * This symbol, if defined, indicates that the tcgetpgrp routine is
675 * available to get foreground process group ID.
85e6fe83 676 */
a0d0e21e 677#$d_tcgetpgrp HAS_TCGETPGRP /**/
678
679/* HAS_TCSETPGRP:
680 * This symbol, if defined, indicates that the tcsetpgrp routine is
681 * available to set foreground process group ID.
682 */
683#$d_tcsetpgrp HAS_TCSETPGRP /**/
85e6fe83 684
2304df62 685/* HAS_TRUNCATE:
87250799 686 * This symbol, if defined, indicates that the truncate routine is
687 * available to truncate files.
688 */
2304df62 689#$d_truncate HAS_TRUNCATE /**/
87250799 690
a0d0e21e 691/* HAS_TZNAME:
692 * This symbol, if defined, indicates that the tzname[] array is
693 * available to access timezone names.
694 */
695#$d_tzname HAS_TZNAME /**/
696
697/* HAS_UMASK:
698 * This symbol, if defined, indicates that the umask routine is
699 * available to set and get the value of the file creation mask.
700 */
701#$d_umask HAS_UMASK /**/
702
703/* HAS_VFORK:
704 * This symbol, if defined, indicates that vfork() exists.
2304df62 705 */
a0d0e21e 706#$d_vfork HAS_VFORK /**/
2304df62 707
2304df62 708/* HASVOLATILE:
afd9f252 709 * This symbol, if defined, indicates that this C compiler knows about
710 * the volatile declaration.
711 */
712#$d_volatile HASVOLATILE /**/
2304df62 713#ifndef HASVOLATILE
714#define volatile
715#endif
afd9f252 716
2304df62 717/* HAS_WAIT4:
bf38876a 718 * This symbol, if defined, indicates that wait4() exists.
719 */
2304df62 720#$d_wait4 HAS_WAIT4 /**/
bf38876a 721
2304df62 722/* HAS_WAITPID:
723 * This symbol, if defined, indicates that the waitpid routine is
724 * available to wait for child process.
39c3038c 725 */
2304df62 726#$d_waitpid HAS_WAITPID /**/
39c3038c 727
a0d0e21e 728/* HAS_WCSTOMBS:
729 * This symbol, if defined, indicates that the wcstombs routine is
730 * available to convert wide character strings to multibyte strings.
731 */
732#$d_wcstombs HAS_WCSTOMBS /**/
733
734/* HAS_WCTOMB:
735 * This symbol, if defined, indicates that the wctomb routine is available
736 * to covert a wide character to a multibyte.
737 */
738#$d_wctomb HAS_WCTOMB /**/
739
28e8609d 740/* I_ARPA_INET:
5ff3f7a4 741 * This symbol, if defined, indicates to the C program that it should
742 * include <arpa/inet.h> to get inet_addr and friends declarations.
28e8609d 743 */
5ff3f7a4 744#$i_arpainet I_ARPA_INET /**/
28e8609d 745
dfe9444c 746/* I_DBM:
747 * This symbol, if defined, indicates that <dbm.h> exists and should
748 * be included.
232e078e 749 */
dfe9444c 750/* I_RPCSVC_DBM:
751 * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
752 * should be included.
232e078e 753 */
dfe9444c 754#$i_dbm I_DBM /**/
755#$i_rpcsvcdbm I_RPCSVC_DBM /**/
232e078e 756
2304df62 757/* I_DIRENT:
758 * This symbol, if defined, indicates to the C program that it should
759 * include <dirent.h>. Using this symbol also triggers the definition
760 * of the Direntry_t define which ends up being 'struct dirent' or
761 * 'struct direct' depending on the availability of <dirent.h>.
1c3d792e 762 */
2304df62 763/* DIRNAMLEN:
764 * This symbol, if defined, indicates to the C program that the length
765 * of directory entry names is provided by a d_namlen field. Otherwise
766 * you need to do strlen() on the d_name field.
767 */
a0d0e21e 768/* Direntry_t:
769 * This symbol is set to 'struct direct' or 'struct dirent' depending on
770 * whether dirent is available or not. You should use this pseudo type to
771 * portably declare your directory entries.
772 */
2304df62 773#$i_dirent I_DIRENT /**/
774#$d_dirnamlen DIRNAMLEN /**/
a0d0e21e 775#define Direntry_t $direntrytype
776
777/* I_DLFCN:
778 * This symbol, if defined, indicates that <dlfcn.h> exists and should
779 * be included.
780 */
781#$i_dlfcn I_DLFCN /**/
1c3d792e 782
2304df62 783/* I_FCNTL:
fe14fcc3 784 * This manifest constant tells the C program to include <fcntl.h>.
a687059c 785 */
2304df62 786#$i_fcntl I_FCNTL /**/
a687059c 787
a0d0e21e 788/* I_FLOAT:
789 * This symbol, if defined, indicates to the C program that it should
790 * include <float.h> to get definition of symbols like DBL_MAX or
791 * DBL_MIN, i.e. machine dependent floating point values.
a687059c 792 */
a0d0e21e 793#$i_float I_FLOAT /**/
a687059c 794
a0d0e21e 795/* I_LIMITS:
796 * This symbol, if defined, indicates to the C program that it should
797 * include <limits.h> to get definition of symbols like WORD_BIT or
798 * LONG_MAX, i.e. machine dependant limitations.
799 */
800#$i_limits I_LIMITS /**/
801
dfe9444c 802/* I_LOCALE:
803 * This symbol, if defined, indicates to the C program that it should
804 * include <locale.h>.
805 */
806#$i_locale I_LOCALE /**/
807
a0d0e21e 808/* I_MATH:
809 * This symbol, if defined, indicates to the C program that it should
810 * include <math.h>.
811 */
812#$i_math I_MATH /**/
813
814/* I_MEMORY:
815 * This symbol, if defined, indicates to the C program that it should
816 * include <memory.h>.
817 */
818#$i_memory I_MEMORY /**/
819
232e078e 820/* I_NDBM:
16d20bd9 821 * This symbol, if defined, indicates that <ndbm.h> exists and should
232e078e 822 * be included.
823 */
824#$i_ndbm I_NDBM /**/
825
ecfc5424 826/* I_NET_ERRNO:
827 * This symbol, if defined, indicates that <net/errno.h> exists and
828 * should be included.
2304df62 829 */
ecfc5424 830#$i_neterrno I_NET_ERRNO /**/
2304df62 831
832/* I_NETINET_IN:
03a14243 833 * This symbol, if defined, indicates to the C program that it should
2304df62 834 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
03a14243 835 */
2304df62 836#$i_niin I_NETINET_IN /**/
03a14243 837
dfe9444c 838/* I_SFIO:
839 * This symbol, if defined, indicates to the C program that it should
840 * include <sfio.h>.
841 */
842#$i_sfio I_SFIO /**/
843
2304df62 844/* I_STDDEF:
845 * This symbol, if defined, indicates that <stddef.h> exists and should
a687059c 846 * be included.
847 */
2304df62 848#$i_stddef I_STDDEF /**/
a687059c 849
a0d0e21e 850/* I_STDLIB:
851 * This symbol, if defined, indicates that <stdlib.h> exists and should
852 * be included.
853 */
854#$i_stdlib I_STDLIB /**/
855
856/* I_STRING:
85e6fe83 857 * This symbol, if defined, indicates to the C program that it should
858 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
859 */
860#$i_string I_STRING /**/
861
2304df62 862/* I_SYS_DIR:
863 * This symbol, if defined, indicates to the C program that it should
864 * include <sys/dir.h>.
d8f2e4cc 865 */
2304df62 866#$i_sysdir I_SYS_DIR /**/
867
868/* I_SYS_FILE:
869 * This symbol, if defined, indicates to the C program that it should
870 * include <sys/file.h> to get definition of R_OK and friends.
d8f2e4cc 871 */
2304df62 872#$i_sysfile I_SYS_FILE /**/
873
874/* I_SYS_IOCTL:
875 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
876 * be included. Otherwise, include <sgtty.h> or <termio.h>.
d8f2e4cc 877 */
2304df62 878#$i_sysioctl I_SYS_IOCTL /**/
879
880/* I_SYS_NDIR:
881 * This symbol, if defined, indicates to the C program that it should
882 * include <sys/ndir.h>.
883 */
884#$i_sysndir I_SYS_NDIR /**/
885
a0d0e21e 886/* I_SYS_PARAM:
887 * This symbol, if defined, indicates to the C program that it should
888 * include <sys/param.h>.
889 */
890#$i_sysparam I_SYS_PARAM /**/
891
e876cf0b 892/* I_SYS_RESOURCE:
893 * This symbol, if defined, indicates to the C program that it should
894 * include <sys/resource.h>.
895 */
896#$i_sysresrc I_SYS_RESOURCE /**/
897
2304df62 898/* I_SYS_SELECT:
899 * This symbol, if defined, indicates to the C program that it should
900 * include <sys/select.h> in order to get definition of struct timeval.
901 */
902#$i_sysselct I_SYS_SELECT /**/
903
dfe9444c 904/* I_SYS_STAT:
905 * This symbol, if defined, indicates to the C program that it should
906 * include <sys/stat.h>.
907 */
908#$i_sysstat I_SYS_STAT /**/
909
a0d0e21e 910/* I_SYS_TIMES:
911 * This symbol, if defined, indicates to the C program that it should
912 * include <sys/times.h>.
913 */
914#$i_systimes I_SYS_TIMES /**/
915
bd89102f 916/* I_SYS_TYPES:
917 * This symbol, if defined, indicates to the C program that it should
918 * include <sys/types.h>.
919 */
920#$i_systypes I_SYS_TYPES /**/
921
25f94b33 922/* I_SYS_UN:
923 * This symbol, if defined, indicates to the C program that it should
924 * include <sys/un.h> to get UNIX domain socket definitions.
925 */
926#$i_sysun I_SYS_UN /**/
927
e876cf0b 928/* I_SYS_WAIT:
929 * This symbol, if defined, indicates to the C program that it should
930 * include <sys/wait.h>.
931 */
932#$i_syswait I_SYS_WAIT /**/
933
a0d0e21e 934/* I_TERMIO:
935 * This symbol, if defined, indicates that the program should include
936 * <termio.h> rather than <sgtty.h>. There are also differences in
937 * the ioctl() calls that depend on the value of this symbol.
938 */
939/* I_TERMIOS:
940 * This symbol, if defined, indicates that the program should include
941 * the POSIX termios.h rather than sgtty.h or termio.h.
942 * There are also differences in the ioctl() calls that depend on the
943 * value of this symbol.
944 */
945/* I_SGTTY:
946 * This symbol, if defined, indicates that the program should include
947 * <sgtty.h> rather than <termio.h>. There are also differences in
948 * the ioctl() calls that depend on the value of this symbol.
949 */
950#$i_termio I_TERMIO /**/
951#$i_termios I_TERMIOS /**/
952#$i_sgtty I_SGTTY /**/
953
85e6fe83 954/* I_UNISTD:
955 * This symbol, if defined, indicates to the C program that it should
956 * include <unistd.h>.
957 */
958#$i_unistd I_UNISTD /**/
d8f2e4cc 959
2304df62 960/* I_UTIME:
d8f2e4cc 961 * This symbol, if defined, indicates to the C program that it should
2304df62 962 * include <utime.h>.
d8f2e4cc 963 */
2304df62 964#$i_utime I_UTIME /**/
d8f2e4cc 965
dfe9444c 966/* I_VALUES:
967 * This symbol, if defined, indicates to the C program that it should
968 * include <values.h> to get definition of symbols like MINFLOAT or
969 * MAXLONG, i.e. machine dependant limitations. Probably, you
970 * should use <limits.h> instead, if it is available.
971 */
972#$i_values I_VALUES /**/
973
e876cf0b 974/* I_STDARG:
975 * This symbol, if defined, indicates that <stdarg.h> exists and should
976 * be included.
977 */
978/* I_VARARGS:
979 * This symbol, if defined, indicates to the C program that it should
980 * include <varargs.h>.
981 */
982#$i_stdarg I_STDARG /**/
983#$i_varargs I_VARARGS /**/
984
a0d0e21e 985/* I_VFORK:
986 * This symbol, if defined, indicates to the C program that it should
987 * include vfork.h.
988 */
989#$i_vfork I_VFORK /**/
a687059c 990
a0d0e21e 991/* CAN_PROTOTYPE:
992 * If defined, this macro indicates that the C compiler can handle
993 * function prototypes.
85e6fe83 994 */
a0d0e21e 995/* _:
996 * This macro is used to declare function parameters for folks who want
997 * to make declarations with prototypes using a different style than
998 * the above macros. Use double parentheses. For example:
999 *
1000 * int main _((int argc, char *argv[]));
1001 */
1002#$prototype CAN_PROTOTYPE /**/
1003#ifdef CAN_PROTOTYPE
1004#define _(args) args
1005#else
1006#define _(args) ()
1007#endif
85e6fe83 1008
dfe9444c 1009/* SH_PATH:
1010 * This symbol contains the full pathname to the shell used on this
1011 * on this system to execute Bourne shell scripts. Usually, this will be
1012 * /bin/sh, though it's possible that some systems will have /bin/ksh,
1013 * /bin/pdksh, /bin/ash, /bin/bash, or even something such as
1014 * D:/bin/sh.exe.
a0d0e21e 1015 */
dfe9444c 1016#define SH_PATH "$sh" /**/
a0d0e21e 1017
2304df62 1018/* STDCHAR:
1019 * This symbol is defined to be the type of char used in stdio.h.
1020 * It has the values "unsigned char" or "char".
fe14fcc3 1021 */
2304df62 1022#define STDCHAR $stdchar /**/
1023
5ff3f7a4 1024/* HAS_ACCESSX:
1025 * This symbol, if defined, indicates that the accessx routine is
1026 * available to do extended access checks.
1027 */
1028#$d_accessx HAS_ACCESSX /**/
1029
1030/* HAS_EACCESS:
1031 * This symbol, if defined, indicates that the eaccess routine is
1032 * available to do extended access checks.
1033 */
1034#$d_eaccess HAS_EACCESS /**/
1035
1036/* I_SYS_ACCESS:
1037 * This symbol, if defined, indicates to the C program that it should
85ab1d1d 1038 * include <sys/access.h>.
5ff3f7a4 1039 */
1040#$i_sysaccess I_SYS_ACCESS /**/
1041
1042/* I_SYS_SECURITY:
1043 * This symbol, if defined, indicates to the C program that it should
1044 * include <sys/security.h>.
1045 */
1046#$i_syssecrt I_SYS_SECURITY /**/
1047
dfe9444c 1048/* MEM_ALIGNBYTES:
1049 * This symbol contains the number of bytes required to align a
1050 * double. Usual values are 2, 4 and 8.
1051 * On NeXT starting with 3.2, you can build "Fat" Multiple Architecture
1052 * Binaries (MAB) for targets with varying alignment. This only matters
1053 * for perl, where the config.h can be generated and installed on one
1054 * system, and used by a different architecture to build an extension.
1055 * The default is eight, for safety.
5f05dabc 1056 */
dfe9444c 1057#define MEM_ALIGNBYTES $alignbytes /**/
5f05dabc 1058
8e07c86e 1059/* BYTEORDER:
e876cf0b 1060 * This symbol holds the hexadecimal constant defined in byteorder,
8e07c86e 1061 * i.e. 0x1234 or 0x4321, etc...
7bac28a0 1062 * On NeXT 3.2 (and greater), you can build "Fat" Multiple Architecture
e876cf0b 1063 * Binaries (MAB) on either big endian or little endian machines.
1064 * The endian-ness is available at compile-time. This only matters
1065 * for perl, where the config.h can be generated and installed on
1066 * one system, and used by a different architecture to build an
1067 * extension. Older versions of NeXT that might not have
1068 * defined either *_ENDIAN__ were all on Motorola 680x0 series,
1069 * so the default case (for NeXT) is big endian to catch them.
1070 * This might matter for NeXT 3.0.
8e07c86e 1071 */
40750cc0 1072#ifndef NeXT
8e07c86e 1073#define BYTEORDER 0x$byteorder /* large digits for MSB */
760ac839 1074#else /* NeXT */
1075#ifdef __LITTLE_ENDIAN__
40750cc0 1076#define BYTEORDER 0x1234
760ac839 1077#else /* __BIG_ENDIAN__ */
1078#define BYTEORDER 0x4321
40750cc0 1079#endif /* ENDIAN CHECK */
760ac839 1080#endif /* NeXT */
8e07c86e 1081
dfe9444c 1082/* CASTI32:
1083 * This symbol is defined if the C compiler can cast negative
1084 * or large floating point numbers to 32-bit ints.
1aef975c 1085 */
dfe9444c 1086#$d_casti32 CASTI32 /**/
85e6fe83 1087
dfe9444c 1088/* CASTNEGFLOAT:
1089 * This symbol is defined if the C compiler can cast negative
1090 * numbers to unsigned longs, ints and shorts.
85e6fe83 1091 */
dfe9444c 1092/* CASTFLAGS:
1093 * This symbol contains flags that say what difficulties the compiler
1094 * has casting odd floating values to unsigned long:
1095 * 0 = ok
1096 * 1 = couldn't cast < 0
1097 * 2 = couldn't cast >= 0x80000000
1098 * 4 = couldn't cast in argument expression list
bccf77a5 1099 */
dfe9444c 1100#$d_castneg CASTNEGFLOAT /**/
1101#define CASTFLAGS $castflags /**/
1102
1103/* VOID_CLOSEDIR:
1104 * This symbol, if defined, indicates that the closedir() routine
1105 * does not return a value.
bccf77a5 1106 */
dfe9444c 1107#$d_void_closedir VOID_CLOSEDIR /**/
bccf77a5 1108
8e07c86e 1109/* Gconvert:
1110 * This preprocessor macro is defined to convert a floating point
1111 * number to a string without a trailing decimal point. This
1112 * emulates the behavior of sprintf("%g"), but is sometimes much more
1113 * efficient. If gconvert() is not available, but gcvt() drops the
1114 * trailing decimal point, then gcvt() is used. If all else fails,
1115 * a macro using sprintf("%g") is used. Arguments for the Gconvert
1116 * macro are: value, number of digits, whether trailing zeros should
1117 * be retained, and the output buffer.
1118 * Possible values are:
1119 * d_Gconvert='gconvert((x),(n),(t),(b))'
1120 * d_Gconvert='gcvt((x),(n),(b))'
1121 * d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1122 * The last two assume trailing zeros should not be kept.
1123 */
1124#define Gconvert(x,n,t,b) $d_Gconvert
1125
dfe9444c 1126/* HAS_GNULIBC:
c1b76f5d 1127 * This symbol, if defined, indicates to the C program that
dfe9444c 1128 * the GNU C library is being used.
c1b76f5d 1129 */
dfe9444c 1130#$d_gnulibc HAS_GNULIBC /**/
1131/* HAS_ISASCII:
1132 * This manifest constant lets the C program know that isascii
1133 * is available.
c1b76f5d 1134 */
dfe9444c 1135#$d_isascii HAS_ISASCII /**/
c1b76f5d 1136
dd64f1c3 1137/* HAS_LCHOWN:
1138 * This symbol, if defined, indicates that the lchown routine is
1139 * available to operate on a symbolic link (instead of following the
1140 * link).
1141 */
1142#$d_lchown HAS_LCHOWN /**/
1143
dfe9444c 1144/* HAS_OPEN3:
1145 * This manifest constant lets the C program know that the three
1146 * argument form of open(2) is available.
774d564b 1147 */
dfe9444c 1148#$d_open3 HAS_OPEN3 /**/
774d564b 1149
dfe9444c 1150/* HAS_SAFE_BCOPY:
1151 * This symbol, if defined, indicates that the bcopy routine is available
1152 * to copy potentially overlapping memory blocks. Otherwise you should
1153 * probably use memmove() or memcpy(). If neither is defined, roll your
1154 * own version.
c1b76f5d 1155 */
dfe9444c 1156#$d_safebcpy HAS_SAFE_BCOPY /**/
c1b76f5d 1157
dfe9444c 1158/* HAS_SAFE_MEMCPY:
1159 * This symbol, if defined, indicates that the memcpy routine is available
1160 * to copy potentially overlapping memory blocks. Otherwise you should
1161 * probably use memmove() or memcpy(). If neither is defined, roll your
1162 * own version.
c1b76f5d 1163 */
dfe9444c 1164#$d_safemcpy HAS_SAFE_MEMCPY /**/
c1b76f5d 1165
dfe9444c 1166/* HAS_SANE_MEMCMP:
1167 * This symbol, if defined, indicates that the memcmp routine is available
1168 * and can be used to compare relative magnitudes of chars with their high
1169 * bits set. If it is not defined, roll your own version.
760ac839 1170 */
dfe9444c 1171#$d_sanemcmp HAS_SANE_MEMCMP /**/
760ac839 1172
dfe9444c 1173/* HAS_SIGACTION:
1174 * This symbol, if defined, indicates that Vr4's sigaction() routine
1175 * is available.
52e1cb5e 1176 */
dfe9444c 1177#$d_sigaction HAS_SIGACTION /**/
52e1cb5e 1178
a5f75d66 1179/* Sigjmp_buf:
760ac839 1180 * This is the buffer type to be used with Sigsetjmp and Siglongjmp.
a5f75d66 1181 */
1182/* Sigsetjmp:
760ac839 1183 * This macro is used in the same way as sigsetjmp(), but will invoke
1184 * traditional setjmp() if sigsetjmp isn't available.
1185 * See HAS_SIGSETJMP.
a5f75d66 1186 */
1187/* Siglongjmp:
760ac839 1188 * This macro is used in the same way as siglongjmp(), but will invoke
1189 * traditional longjmp() if siglongjmp isn't available.
1190 * See HAS_SIGSETJMP.
a5f75d66 1191 */
1192#$d_sigsetjmp HAS_SIGSETJMP /**/
1193#ifdef HAS_SIGSETJMP
1194#define Sigjmp_buf sigjmp_buf
760ac839 1195#define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask))
1196#define Siglongjmp(buf,retval) siglongjmp((buf),(retval))
a5f75d66 1197#else
1198#define Sigjmp_buf jmp_buf
760ac839 1199#define Sigsetjmp(buf,save_mask) setjmp((buf))
1200#define Siglongjmp(buf,retval) longjmp((buf),(retval))
a5f75d66 1201#endif
1202
dfe9444c 1203/* USE_STDIO_PTR:
1204 * This symbol is defined if the _ptr and _cnt fields (or similar)
1205 * of the stdio FILE structure can be used to access the stdio buffer
1206 * for a file handle. If this is defined, then the FILE_ptr(fp)
1207 * and FILE_cnt(fp) macros will also be defined and should be used
1208 * to access these fields.
a687059c 1209 */
dfe9444c 1210/* FILE_ptr:
1211 * This macro is used to access the _ptr field (or equivalent) of the
1212 * FILE structure pointed to by its argument. This macro will always be
1213 * defined if USE_STDIO_PTR is defined.
1214 */
1215/* STDIO_PTR_LVALUE:
1216 * This symbol is defined if the FILE_ptr macro can be used as an
1217 * lvalue.
1218 */
1219/* FILE_cnt:
1220 * This macro is used to access the _cnt field (or equivalent) of the
1221 * FILE structure pointed to by its argument. This macro will always be
1222 * defined if USE_STDIO_PTR is defined.
1223 */
1224/* STDIO_CNT_LVALUE:
1225 * This symbol is defined if the FILE_cnt macro can be used as an
1226 * lvalue.
1227 */
1228#$d_stdstdio USE_STDIO_PTR /**/
1229#ifdef USE_STDIO_PTR
1230#define FILE_ptr(fp) $stdio_ptr
1231#$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/
1232#define FILE_cnt(fp) $stdio_cnt
1233#$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/
1234#endif
a687059c 1235
dfe9444c 1236/* USE_STDIO_BASE:
1237 * This symbol is defined if the _base field (or similar) of the
1238 * stdio FILE structure can be used to access the stdio buffer for
1239 * a file handle. If this is defined, then the FILE_base(fp) macro
1240 * will also be defined and should be used to access this field.
1241 * Also, the FILE_bufsiz(fp) macro will be defined and should be used
1242 * to determine the number of bytes in the buffer. USE_STDIO_BASE
1243 * will never be defined unless USE_STDIO_PTR is.
8e07c86e 1244 */
dfe9444c 1245/* FILE_base:
1246 * This macro is used to access the _base field (or equivalent) of the
1247 * FILE structure pointed to by its argument. This macro will always be
1248 * defined if USE_STDIO_BASE is defined.
8e07c86e 1249 */
dfe9444c 1250/* FILE_bufsiz:
1251 * This macro is used to determine the number of bytes in the I/O
1252 * buffer pointed to by _base field (or equivalent) of the FILE
1253 * structure pointed to its argument. This macro will always be defined
1254 * if USE_STDIO_BASE is defined.
1255 */
1256#$d_stdiobase USE_STDIO_BASE /**/
1257#ifdef USE_STDIO_BASE
1258#define FILE_base(fp) $stdio_base
1259#define FILE_bufsiz(fp) $stdio_bufsiz
1260#endif
8e07c86e 1261
dfe9444c 1262/* HAS_VPRINTF:
1263 * This symbol, if defined, indicates that the vprintf routine is available
1264 * to printf with a pointer to an argument list. If unavailable, you
1265 * may need to write your own, probably in terms of _doprnt().
4633a7c4 1266 */
dfe9444c 1267/* USE_CHAR_VSPRINTF:
1268 * This symbol is defined if this system has vsprintf() returning type
1269 * (char*). The trend seems to be to declare it as "int vsprintf()". It
1270 * is up to the package author to declare vsprintf correctly based on the
1271 * symbol.
1272 */
1273#$d_vprintf HAS_VPRINTF /**/
1274#$d_charvspr USE_CHAR_VSPRINTF /**/
4633a7c4 1275
693762b4 1276/* DOUBLESIZE:
1277 * This symbol contains the size of a double, so that the C preprocessor
1278 * can make decisions based on it.
1279 */
1280#define DOUBLESIZE $doublesize /**/
1281
dfe9444c 1282/* I_TIME:
760ac839 1283 * This symbol, if defined, indicates to the C program that it should
dfe9444c 1284 * include <time.h>.
760ac839 1285 */
dfe9444c 1286/* I_SYS_TIME:
1aef975c 1287 * This symbol, if defined, indicates to the C program that it should
dfe9444c 1288 * include <sys/time.h>.
1aef975c 1289 */
dfe9444c 1290/* I_SYS_TIME_KERNEL:
bccf77a5 1291 * This symbol, if defined, indicates to the C program that it should
dfe9444c 1292 * include <sys/time.h> with KERNEL defined.
bccf77a5 1293 */
dfe9444c 1294#$i_time I_TIME /**/
1295#$i_systime I_SYS_TIME /**/
1296#$i_systimek I_SYS_TIME_KERNEL /**/
8e07c86e 1297
dfe9444c 1298/* INTSIZE:
1299 * This symbol contains the value of sizeof(int) so that the C
1300 * preprocessor can make decisions based on it.
94b6baf5 1301 */
dfe9444c 1302/* LONGSIZE:
1303 * This symbol contains the value of sizeof(long) so that the C
1304 * preprocessor can make decisions based on it.
36ce8bec 1305 */
dfe9444c 1306/* SHORTSIZE:
1307 * This symbol contains the value of sizeof(short) so that the C
1308 * preprocessor can make decisions based on it.
1309 */
1310#define INTSIZE $intsize /**/
1311#define LONGSIZE $longsize /**/
1312#define SHORTSIZE $shortsize /**/
36ce8bec 1313
dfe9444c 1314/* VAL_O_NONBLOCK:
1315 * This symbol is to be used during open() or fcntl(F_SETFL) to turn on
1316 * non-blocking I/O for the file descriptor. Note that there is no way
1317 * back, i.e. you cannot turn it blocking again this way. If you wish to
1318 * alternatively switch between blocking and non-blocking, use the
1319 * ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
85e6fe83 1320 */
dfe9444c 1321/* VAL_EAGAIN:
1322 * This symbol holds the errno error code set by read() when no data was
1323 * present on the non-blocking file descriptor.
1324 */
1325/* RD_NODATA:
1326 * This symbol holds the return code from read() when no data is present
1327 * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
1328 * not defined, then you can't distinguish between no data and EOF by
1329 * issuing a read(). You'll have to find another way to tell for sure!
1330 */
1331/* EOF_NONBLOCK:
1332 * This symbol, if defined, indicates to the C program that a read() on
1333 * a non-blocking file descriptor will return 0 on EOF, and not the value
1334 * held in RD_NODATA (-1 usually, in that case!).
1335 */
1336#define VAL_O_NONBLOCK $o_nonblock
1337#define VAL_EAGAIN $eagain
1338#define RD_NODATA $rd_nodata
1339#$d_eofnblk EOF_NONBLOCK
85e6fe83 1340
693762b4 1341/* PTRSIZE:
1342 * This symbol contains the size of a pointer, so that the C preprocessor
1343 * can make decisions based on it. It will be sizeof(void *) if
1344 * the compiler supports (void *); otherwise it will be
1345 * sizeof(char *).
1346 */
1347#define PTRSIZE $ptrsize /**/
1348
85ab1d1d 1349/* Drand01:
1350 * This macro is to be used to generate uniformly distributed
1351 * random numbers over the range [0., 1.[. You may have to supply
1352 * an 'extern double drand48();' in your program since SunOS 4.1.3
1353 * doesn't provide you with anything relevant in it's headers.
1354 * See HAS_DRAND48_PROTO.
1355 */
1356/* Rand_seed_t:
1357 * This symbol defines the type of the argument of the
1358 * random seed function.
1359 */
1360/* seedDrand01:
1361 * This symbol defines the macro to be used in seeding the
1362 * random number generator (see Drand01).
1363 */
dfe9444c 1364/* RANDBITS:
85ab1d1d 1365 * This symbol indicates how many bits are produced by the
1366 * function used to generate normalized random numbers.
1367 * Values include 15, 16, 31, and 48.
dfe9444c 1368 */
85ab1d1d 1369#define Drand01() $drand01 /**/
1370#define Rand_seed_t $randseedtype /**/
1371#define seedDrand01(x) $seedfunc((Rand_seed_t)x) /**/
1372#define RANDBITS $randbits /**/
dfe9444c 1373
1374/* SSize_t:
1375 * This symbol holds the type used by functions that return
1376 * a count of bytes or an error condition. It must be a signed type.
1377 * It is usually ssize_t, but may be long or int, etc.
1378 * It may be necessary to include <sys/types.h> or <unistd.h>
1379 * to get any typedef'ed information.
1380 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
1381 */
1382#define SSize_t $ssizetype /* signed count of bytes */
1383
5ff3f7a4 1384/* EBCDIC:
1385 * This symbol, if defined, indicates that this system uses
1386 * EBCDIC encoding.
1387 */
1388#$ebcdic EBCDIC /**/
1389
dfe9444c 1390/* OSNAME:
1391 * This symbol contains the name of the operating system, as determined
1392 * by Configure. You shouldn't rely on it too much; the specific
1393 * feature tests from Configure are generally more reliable.
1394 */
1395#define OSNAME "$osname" /**/
1396
dfe9444c 1397/* CAT2:
1398 * This macro catenates 2 tokens together.
1399 */
1400/* STRINGIFY:
1401 * This macro surrounds its token with double quotes.
1402 */
1403#if $cpp_stuff == 1
1404#define CAT2(a,b)a/**/b
1405#define STRINGIFY(a)"a"
1406 /* If you can get stringification with catify, tell me how! */
1407#endif
1408#if $cpp_stuff == 42
1409#define CAT2(a,b)a ## b
1410#define StGiFy(a)# a
1411#define STRINGIFY(a)StGiFy(a)
1412#endif
1413#if $cpp_stuff != 1 && $cpp_stuff != 42
1414#include "Bletch: How does this C preprocessor catenate tokens?"
1415#endif
1416
1cfa4ec7 1417/* CPPSTDIN:
1418 * This symbol contains the first part of the string which will invoke
1419 * the C preprocessor on the standard input and produce to standard
1420 * output. Typical value of "cc -E" or "/lib/cpp", but it can also
1421 * call a wrapper. See CPPRUN.
1422 */
1423/* CPPMINUS:
1424 * This symbol contains the second part of the string which will invoke
1425 * the C preprocessor on the standard input and produce to standard
1426 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
1427 * to specify standard input, otherwise the value is "".
1428 */
1429#define CPPSTDIN "$cppstdin"
1430#define CPPMINUS "$cppminus"
1431
5ff3f7a4 1432/* HAS_ACCESS:
1433 * This manifest constant lets the C program know that the access()
1434 * system call is available to check for accessibility using real UID/GID.
1435 * (always present on UNIX.)
1436 */
1437#$d_access HAS_ACCESS /**/
1438
dfe9444c 1439/* CSH:
e5c9fcd0 1440 * This symbol, if defined, contains the full pathname of csh.
dfe9444c 1441 */
e5c9fcd0 1442#$d_csh HAS_CSH /**/
1443#ifdef HAS_CSH
1444#define CSH "$full_csh" /**/
1445#endif
1446
5ff3f7a4 1447/* HAS_ENDGRENT:
1448 * This symbol, if defined, indicates that the getgrent routine is
1449 * available for finalizing sequential access of the group database.
1450 */
1451#$d_endgrent HAS_ENDGRENT /**/
1452
e5c9fcd0 1453/* HAS_ENDHOSTENT:
1454 * This symbol, if defined, indicates that the endhostent() routine is
1455 * available to close whatever was being used for host queries.
1456 */
1457#$d_endhent HAS_ENDHOSTENT /**/
1458
1459/* HAS_ENDNETENT:
1460 * This symbol, if defined, indicates that the endnetent() routine is
1461 * available to close whatever was being used for network queries.
1462 */
1463#$d_endnent HAS_ENDNETENT /**/
1464
1465/* HAS_ENDPROTOENT:
1466 * This symbol, if defined, indicates that the endprotoent() routine is
1467 * available to close whatever was being used for protocol queries.
1468 */
1469#$d_endpent HAS_ENDPROTOENT /**/
1470
5ff3f7a4 1471/* HAS_ENDPWENT:
1472 * This symbol, if defined, indicates that the getgrent routine is
1473 * available for finalizing sequential access of the passwd database.
1474 */
1475#$d_endpwent HAS_ENDPWENT /**/
1476
e5c9fcd0 1477/* HAS_ENDSERVENT:
1478 * This symbol, if defined, indicates that the endservent() routine is
1479 * available to close whatever was being used for service queries.
1480 */
1481#$d_endsent HAS_ENDSERVENT /**/
dfe9444c 1482
5ff3f7a4 1483/* HAS_GETGRENT:
1484 * This symbol, if defined, indicates that the getgrent routine is
1485 * available for sequential access of the group database.
1486 */
1487#$d_getgrent HAS_GETGRENT /**/
1488
693762b4 1489/* HAS_GETHOSTBYADDR:
1490 * This symbol, if defined, indicates that the gethostbyaddr() routine is
1491 * available to look up hosts by their IP addresses.
1492 */
1493#$d_gethbyaddr HAS_GETHOSTBYADDR /**/
1494
1495/* HAS_GETHOSTBYNAME:
1496 * This symbol, if defined, indicates that the gethostbyname() routine is
1497 * available to look up host names in some data base or other.
1498 */
1499#$d_gethbyname HAS_GETHOSTBYNAME /**/
1500
1501/* HAS_GETHOSTENT:
1502 * This symbol, if defined, indicates that the gethostent() routine is
1503 * available to look up host names in some data base or another.
1504 */
1505#$d_gethent HAS_GETHOSTENT /**/
1506
1507/* HAS_GETNETBYADDR:
1508 * This symbol, if defined, indicates that the getnetbyaddr() routine is
1509 * available to look up networks by their IP addresses.
1510 */
1511#$d_getnbyaddr HAS_GETNETBYADDR /**/
1512
1513/* HAS_GETNETBYNAME:
1514 * This symbol, if defined, indicates that the getnetbyname() routine is
1515 * available to look up networks by their names.
1516 */
1517#$d_getnbyname HAS_GETNETBYNAME /**/
1518
e5c9fcd0 1519/* HAS_GETNETENT:
1520 * This symbol, if defined, indicates that the getnetent() routine is
1521 * available to look up network names in some data base or another.
1522 */
1523#$d_getnent HAS_GETNETENT /**/
1524
1525/* HAS_GETPROTOENT:
1526 * This symbol, if defined, indicates that the getprotoent() routine is
1527 * available to look up protocols in some data base or another.
1528 */
1529#$d_getpent HAS_GETPROTOENT /**/
1530
693762b4 1531/* HAS_GETPROTOBYNAME:
1532 * This symbol, if defined, indicates that the getprotobyname()
1533 * routine is available to look up protocols by their name.
1534 */
1535/* HAS_GETPROTOBYNUMBER:
1536 * This symbol, if defined, indicates that the getprotobynumber()
1537 * routine is available to look up protocols by their number.
1538 */
1539#$d_getpbyname HAS_GETPROTOBYNAME /**/
1540#$d_getpbynumber HAS_GETPROTOBYNUMBER /**/
1541
5ff3f7a4 1542/* HAS_GETPWENT:
1543 * This symbol, if defined, indicates that the getpwent routine is
1544 * available for sequential access of the passwd database.
1545 * If this is not available, the older getpw() function may be available.
1546 */
1547#$d_getpwent HAS_GETPWENT /**/
1548
e5c9fcd0 1549/* HAS_GETSERVENT:
1550 * This symbol, if defined, indicates that the getservent() routine is
1551 * available to look up network services in some data base or another.
1552 */
1553#$d_getsent HAS_GETSERVENT /**/
1554
693762b4 1555/* HAS_GETSERVBYNAME:
1556 * This symbol, if defined, indicates that the getservbyname()
1557 * routine is available to look up services by their name.
1558 */
1559/* HAS_GETSERVBYPORT:
1560 * This symbol, if defined, indicates that the getservbyport()
1561 * routine is available to look up services by their port.
1562 */
1563#$d_getsbyname HAS_GETSERVBYNAME /**/
1564#$d_getsbyport HAS_GETSERVBYPORT /**/
1565
5ff3f7a4 1566/* HAS_HTONL:
1567 * This symbol, if defined, indicates that the htonl() routine (and
1568 * friends htons() ntohl() ntohs()) are available to do network
1569 * order byte swapping.
1570 */
1571/* HAS_HTONS:
1572 * This symbol, if defined, indicates that the htons() routine (and
1573 * friends htonl() ntohl() ntohs()) are available to do network
1574 * order byte swapping.
1575 */
1576/* HAS_NTOHL:
1577 * This symbol, if defined, indicates that the ntohl() routine (and
1578 * friends htonl() htons() ntohs()) are available to do network
1579 * order byte swapping.
1580 */
1581/* HAS_NTOHS:
1582 * This symbol, if defined, indicates that the ntohs() routine (and
1583 * friends htonl() htons() ntohl()) are available to do network
1584 * order byte swapping.
1585 */
1586#$d_htonl HAS_HTONL /**/
1587#$d_htonl HAS_HTONS /**/
1588#$d_htonl HAS_NTOHL /**/
1589#$d_htonl HAS_NTOHS /**/
1590
e5c9fcd0 1591/* HAS_LONG_DOUBLE:
1592 * This symbol will be defined if the C compiler supports long
1593 * doubles.
1594 */
1595/* LONG_DOUBLESIZE:
1596 * This symbol contains the size of a long double, so that the
1597 * C preprocessor can make decisions based on it. It is only
1598 * defined if the system supports long doubles.
1599 */
1600#$d_longdbl HAS_LONG_DOUBLE /**/
1601#ifdef HAS_LONG_DOUBLE
1602#define LONG_DOUBLESIZE $longdblsize /**/
1603#endif
1604
dc45a647 1605/* HAS_LONG_LONG:
5ff3f7a4 1606 * This symbol will be defined if the C compiler supports long long.
dc45a647 1607 */
1608/* LONGLONGSIZE:
1609 * This symbol contains the size of a long long, so that the
1610 * C preprocessor can make decisions based on it. It is only
1611 * defined if the system supports long long.
1612 */
1613#$d_longlong HAS_LONG_LONG /**/
1614#ifdef HAS_LONG_LONG
1615#define LONGLONGSIZE $longlongsize /**/
1616#endif
1617
5ff3f7a4 1618/* HAS_MSG:
1619 * This symbol, if defined, indicates that the entire msg*(2) library is
1620 * supported (IPC mechanism based on message queues).
1621 */
1622#$d_msg HAS_MSG /**/
1623
1624/* HAS_SEM:
1625 * This symbol, if defined, indicates that the entire sem*(2) library is
1626 * supported.
1627 */
1628#$d_sem HAS_SEM /**/
1629
1630/* HAS_SETGRENT:
1631 * This symbol, if defined, indicates that the setgrent routine is
1632 * available for initializing sequential access of the group database.
1633 */
1634#$d_setgrent HAS_SETGRENT /**/
1635
dfe9444c 1636/* HAS_SETGROUPS:
1637 * This symbol, if defined, indicates that the setgroups() routine is
1638 * available to set the list of process groups. If unavailable, multiple
1639 * groups are probably not supported.
1640 */
1641#$d_setgrps HAS_SETGROUPS /**/
1642
693762b4 1643/* HAS_SETHOSTENT:
1644 * This symbol, if defined, indicates that the sethostent() routine is
1645 * available.
1646 */
1647#$d_sethent HAS_SETHOSTENT /**/
1648
e5c9fcd0 1649/* HAS_SETNETENT:
1650 * This symbol, if defined, indicates that the setnetent() routine is
1651 * available.
1652 */
1653#$d_setnent HAS_SETNETENT /**/
1654
1655/* HAS_SETPROTOENT:
1656 * This symbol, if defined, indicates that the setprotoent() routine is
1657 * available.
1658 */
1659#$d_setpent HAS_SETPROTOENT /**/
1660
5ff3f7a4 1661/* HAS_SETPWENT:
1662 * This symbol, if defined, indicates that the setpwent routine is
1663 * available for initializing sequential access of the passwd database.
1664 */
1665#$d_setpwent HAS_SETPWENT /**/
1666
e5c9fcd0 1667/* HAS_SETSERVENT:
1668 * This symbol, if defined, indicates that the setservent() routine is
1669 * available.
1670 */
1671#$d_setsent HAS_SETSERVENT /**/
1672
1673/* HAS_SETVBUF:
1674 * This symbol, if defined, indicates that the setvbuf routine is
1675 * available to change buffering on an open stdio stream.
1676 * to a line-buffered mode.
1677 */
1678#$d_setvbuf HAS_SETVBUF /**/
1679
5ff3f7a4 1680/* HAS_SHM:
1681 * This symbol, if defined, indicates that the entire shm*(2) library is
1682 * supported.
1683 */
1684#$d_shm HAS_SHM /**/
1685
dc45a647 1686/* HAS_SOCKET:
1687 * This symbol, if defined, indicates that the BSD socket interface is
1688 * supported.
1689 */
1690/* HAS_SOCKETPAIR:
1691 * This symbol, if defined, indicates that the BSD socketpair() call is
1692 * supported.
1693 */
1694#$d_socket HAS_SOCKET /**/
1695#$d_sockpair HAS_SOCKETPAIR /**/
1696
5ff3f7a4 1697/* USE_STAT_BLOCKS:
1698 * This symbol is defined if this system has a stat structure declaring
1699 * st_blksize and st_blocks.
1700 */
85ab1d1d 1701#$d_statblks USE_STAT_BLOCKS /**/
5ff3f7a4 1702
1703/* HAS_STRERROR:
1704 * This symbol, if defined, indicates that the strerror routine is
1705 * available to translate error numbers to strings. See the writeup
1706 * of Strerror() in this file before you try to define your own.
1707 */
1708/* HAS_SYS_ERRLIST:
1709 * This symbol, if defined, indicates that the sys_errlist array is
1710 * available to translate error numbers to strings. The extern int
1711 * sys_nerr gives the size of that table.
1712 */
1713/* Strerror:
1714 * This preprocessor symbol is defined as a macro if strerror() is
1715 * not available to translate error numbers to strings but sys_errlist[]
1716 * array is there.
1717 */
1718#$d_strerror HAS_STRERROR /**/
1719#$d_syserrlst HAS_SYS_ERRLIST /**/
1720#define Strerror(e) $d_strerrm
1721
bd89102f 1722/* HAS_UNION_SEMUN:
1723 * This symbol, if defined, indicates that the union semun is
1724 * defined by including <sys/sem.h>. If not, the user code
1725 * probably needs to define it as:
1726 * union semun {
1727 * int val;
1728 * struct semid_ds *buf;
1729 * unsigned short *array;
1730 * }
1731 */
1732/* USE_SEMCTL_SEMUN:
1733 * This symbol, if defined, indicates that union semun is
1734 * used for semctl IPC_STAT.
1735 */
1736/* USE_SEMCTL_SEMID_DS:
1737 * This symbol, if defined, indicates that struct semid_ds * is
1738 * used for semctl IPC_STAT.
1739 */
1740#$d_union_semun HAS_UNION_SEMUN /**/
1741#$d_semctl_semun USE_SEMCTL_SEMUN /**/
1742#$d_semctl_semid_ds USE_SEMCTL_SEMID_DS /**/
1743
dfe9444c 1744/* Signal_t:
1745 * This symbol's value is either "void" or "int", corresponding to the
1746 * appropriate return type of a signal handler. Thus, you can declare
1747 * a signal handler using "Signal_t (*handler)()", and define the
1748 * handler using "Signal_t handler(sig)".
e876cf0b 1749 */
dfe9444c 1750#define Signal_t $signal_t /* Signal handler's return type */
1751
1752/* Groups_t:
1753 * This symbol holds the type used for the second argument to
1754 * getgroups() and setgropus(). Usually, this is the same as
1755 * gidtype (gid_t) , but sometimes it isn't.
1756 * It can be int, ushort, uid_t, etc...
1757 * It may be necessary to include <sys/types.h> to get any
1758 * typedef'ed information. This is only required if you have
1759 * getgroups() or setgropus()..
4633a7c4 1760 */
dfe9444c 1761#if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS)
1762#define Groups_t $groupstype /* Type for 2nd arg to [sg]etgroups() */
1763#endif
1764
5ff3f7a4 1765/* I_GRP:
1766 * This symbol, if defined, indicates to the C program that it should
1767 * include <grp.h>.
1768 */
1769/* GRPASSWD:
1770 * This symbol, if defined, indicates to the C program that struct group
1771 * in <grp.h> contains gr_passwd.
1772 */
1773#$i_grp I_GRP /**/
1774#$d_grpasswd GRPASSWD /**/
1775
dfe9444c 1776/* I_NETDB:
1777 * This symbol, if defined, indicates that <netdb.h> exists and
1778 * should be included.
1779 */
1780#$i_netdb I_NETDB /**/
4633a7c4 1781
c4f23d77 1782/* I_PWD:
1783 * This symbol, if defined, indicates to the C program that it should
1784 * include <pwd.h>.
1785 */
1786/* PWQUOTA:
1787 * This symbol, if defined, indicates to the C program that struct passwd
1788 * contains pw_quota.
1789 */
1790/* PWAGE:
1791 * This symbol, if defined, indicates to the C program that struct passwd
1792 * contains pw_age.
1793 */
1794/* PWCHANGE:
1795 * This symbol, if defined, indicates to the C program that struct passwd
1796 * contains pw_change.
1797 */
1798/* PWCLASS:
1799 * This symbol, if defined, indicates to the C program that struct passwd
1800 * contains pw_class.
1801 */
1802/* PWEXPIRE:
1803 * This symbol, if defined, indicates to the C program that struct passwd
1804 * contains pw_expire.
1805 */
1806/* PWCOMMENT:
1807 * This symbol, if defined, indicates to the C program that struct passwd
1808 * contains pw_comment.
1809 */
1810/* PWGECOS:
1811 * This symbol, if defined, indicates to the C program that struct passwd
1812 * contains pw_gecos.
1813 */
28e8609d 1814/* PWPASSWD:
1815 * This symbol, if defined, indicates to the C program that struct passwd
1816 * contains pw_passwd.
1817 */
c4f23d77 1818#$i_pwd I_PWD /**/
1819#$d_pwquota PWQUOTA /**/
1820#$d_pwage PWAGE /**/
1821#$d_pwchange PWCHANGE /**/
1822#$d_pwclass PWCLASS /**/
1823#$d_pwexpire PWEXPIRE /**/
1824#$d_pwcomment PWCOMMENT /**/
1825#$d_pwgecos PWGECOS /**/
28e8609d 1826#$d_pwpasswd PWPASSWD /**/
c4f23d77 1827
bfb7748a 1828/* Free_t:
1829 * This variable contains the return type of free(). It is usually
1830 * void, but occasionally int.
e876cf0b 1831 */
bfb7748a 1832/* Malloc_t:
1833 * This symbol is the type of pointer returned by malloc and realloc.
4633a7c4 1834 */
bfb7748a 1835#define Malloc_t $malloctype /**/
1836#define Free_t $freetype /**/
1837
1838/* MYMALLOC:
1839 * This symbol, if defined, indicates that we're using our own malloc.
1840 */
1841#$d_mymalloc MYMALLOC /**/
4633a7c4 1842
c4f23d77 1843/* SIG_NAME:
1844 * This symbol contains a list of signal names in order of
1845 * signal number. This is intended
1846 * to be used as a static array initialization, like this:
1847 * char *sig_name[] = { SIG_NAME };
1848 * The signals in the list are separated with commas, and each signal
1849 * is surrounded by double quotes. There is no leading SIG in the signal
1850 * name, i.e. SIGQUIT is known as "QUIT".
1851 * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
1852 * etc., where nn is the actual signal number (e.g. NUM37).
1853 * The signal number for sig_name[i] is stored in sig_num[i].
1854 * The last element is 0 to terminate the list with a NULL. This
1855 * corresponds to the 0 at the end of the sig_num list.
1856 */
1857/* SIG_NUM:
1858 * This symbol contains a list of signal numbers, in the same order as the
1859 * SIG_NAME list. It is suitable for static array initialization, as in:
1860 * int sig_num[] = { SIG_NUM };
1861 * The signals in the list are separated with commas, and the indices
1862 * within that list and the SIG_NAME list match, so it's easy to compute
1863 * the signal name from a number or vice versa at the price of a small
1864 * dynamic linear lookup.
1865 * Duplicates are allowed, but are moved to the end of the list.
1866 * The signal number corresponding to sig_name[i] is sig_number[i].
1867 * if (i < NSIG) then sig_number[i] == i.
1868 * The last element is 0, corresponding to the 0 at the end of
1869 * the sig_name list.
1870 */
1871#define SIG_NAME $sig_name_init /**/
1872#define SIG_NUM $sig_num /**/
1873
bfb7748a 1874/* VOIDFLAGS:
1875 * This symbol indicates how much support of the void type is given by this
1876 * compiler. What various bits mean:
1877 *
1878 * 1 = supports declaration of void
1879 * 2 = supports arrays of pointers to functions returning void
1880 * 4 = supports comparisons between pointers to void functions and
1881 * addresses of void functions
1882 * 8 = suports declaration of generic void pointers
1883 *
1884 * The package designer should define VOIDUSED to indicate the requirements
1885 * of the package. This can be done either by #defining VOIDUSED before
1886 * including config.h, or by defining defvoidused in Myinit.U. If the
1887 * latter approach is taken, only those flags will be tested. If the
1888 * level of void support necessary is not present, defines void to int.
16d20bd9 1889 */
bfb7748a 1890#ifndef VOIDUSED
1891#define VOIDUSED $defvoidused
1892#endif
1893#define VOIDFLAGS $voidflags
1894#if (VOIDFLAGS & VOIDUSED) != VOIDUSED
1895#define void int /* is void to be avoided? */
1896#define M_VOID /* Xenix strikes again */
1897#endif
16d20bd9 1898
bfb7748a 1899/* ARCHLIB:
1900 * This variable, if defined, holds the name of the directory in
1901 * which the user wants to put architecture-dependent public
1902 * library files for $package. It is most often a local directory
1903 * such as /usr/local/lib. Programs using this variable must be
1904 * prepared to deal with filename expansion. If ARCHLIB is the
1905 * same as PRIVLIB, it is not defined, since presumably the
1906 * program already searches PRIVLIB.
e876cf0b 1907 */
bfb7748a 1908/* ARCHLIB_EXP:
1909 * This symbol contains the ~name expanded version of ARCHLIB, to be used
25f94b33 1910 * in programs that are not prepared to deal with ~ expansion at run-time.
1911 */
bfb7748a 1912#$d_archlib ARCHLIB "$archlib" /**/
1913#$d_archlib ARCHLIB_EXP "$archlibexp" /**/
25f94b33 1914
dfe9444c 1915/* DLSYM_NEEDS_UNDERSCORE:
1916 * This symbol, if defined, indicates that we need to prepend an
1917 * underscore to the symbol name before calling dlsym(). This only
1918 * makes sense if you *have* dlsym, which we will presume is the
1919 * case if you're using dl_dlopen.xs.
1920 */
1921#$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/
1922
5ff3f7a4 1923/* HAS_FSEEKO:
1924 * This symbol, if defined, indicates that the fseeko routine is
1925 * available to fseek beyond 32 bits (useful for ILP32 hosts).
1926 */
1927#$d_fseeko HAS_FSEEKO /**/
1928
1929/* HAS_FTELLO:
1930 * This symbol, if defined, indicates that the ftello routine is
1931 * available to ftell from beyond 32 bits (useful for ILP32 hosts).
1932 */
1933#$d_ftello HAS_FTELLO /**/
1934
dfe9444c 1935/* USE_SFIO:
1936 * This symbol, if defined, indicates that sfio should
1937 * be used.
1938 */
1939#$d_sfio USE_SFIO /**/
1940
5ff3f7a4 1941/* HAS_DBMINIT64:
1942 * This symbol, if defined, indicates that the dbminit64 routine is
1943 * available to open dbm files larger than 2 gigabytes.
1944 */
1945/* HAS_DBMCLOSE64:
1946 * This symbol, if defined, indicates that the dbmclose64 routine is
1947 * available to close dbm files larger than 2 gigabytes.
1948 */
1949/* HAS_FETCH64:
1950 * This symbol, if defined, indicates that the fetch64 routine is
1951 * available to fetch from dbm files larger than 2 gigabytes.
1952 */
1953/* HAS_STORE64:
1954 * This symbol, if defined, indicates that the store64 routine is
1955 * available to store to dbm files larger than 2 gigabytes.
1956 */
1957/* HAS_DELETE64:
1958 * This symbol, if defined, indicates that the delete64 routine is
1959 * available to delete from dbm files larger than 2 gigabytes.
1960 */
1961/* HAS_FIRSTKEY64:
1962 * This symbol, if defined, indicates that the firstkey64 routine is
1963 * available to firstkey in dbm files larger than 2 gigabytes.
1964 */
1965/* HAS_NEXTKEY64:
1966 * This symbol, if defined, indicates that the nextkey64 routine is
1967 * available to nextkey in dbm files larger than 2 gigabytes.
1968 */
1969#$d_dbminit64 HAS_DBMINIT64 /**/
1970#$d_dbmclose64 HAS_DBMCLOSE64 /**/
1971#$d_fetch64 HAS_FETCH64 /**/
1972#$d_store64 HAS_STORE64 /**/
1973#$d_delete64 HAS_DELETE64 /**/
1974#$d_firstkey64 HAS_FIRSTKEY64 /**/
1975#$d_nextkey64 HAS_NEXTKEY64 /**/
1976
dfe9444c 1977/* USE_DYNAMIC_LOADING:
1978 * This symbol, if defined, indicates that dynamic loading of
1979 * some sort is available.
1980 */
1981#$usedl USE_DYNAMIC_LOADING /**/
1982
1983/* DB_Prefix_t:
1984 * This symbol contains the type of the prefix structure element
1985 * in the <db.h> header file. In older versions of DB, it was
1986 * int, while in newer ones it is u_int32_t.
1987 */
1988/* DB_Hash_t:
1989 * This symbol contains the type of the prefix structure element
1990 * in the <db.h> header file. In older versions of DB, it was
1991 * int, while in newer ones it is size_t.
1992 */
1993#define DB_Hash_t $db_hashtype /**/
1994#define DB_Prefix_t $db_prefixtype /**/
1995
5ff3f7a4 1996/* I_INTTYPES:
1997 * This symbol, if defined, indicates to the C program that it should
1998 * include <inttypes.h>.
1999 */
2000/* HAS_INT64_T:
2001 * This symbol will defined if the C compiler supports int64_t.
2002 * Usually the <inttypes.h> needs to be included, but sometimes
2003 * <sys/types.h> is enough.
2004 */
2005#$i_inttypes I_INTTYPES /**/
2006#$d_int64t HAS_INT64_T /**/
2007
2008/* HAS_FSTAT64:
2009 * This symbol, if defined, indicates that the fstat64 routine is
2010 * available to stat files (fds) larger than 2 gigabytes.
2011 */
2012/* HAS_FTRUNCATE64:
2013 * This symbol, if defined, indicates that the ftruncate64 routine is
2014 * available to tell files larger than 2 gigabytes.
2015 */
2016/* HAS_LSEEK64:
2017 * This symbol, if defined, indicates that the lseek64 routine is
2018 * available to seek files larger than 2 gigabytes.
2019 */
2020/* HAS_LSTAT64:
2021 * This symbol, if defined, indicates that the lstat64 routine is
2022 * available to stat files (symlinks) larger than 2 gigabytes.
2023 */
2024/* HAS_OPEN64:
2025 * This symbol, if defined, indicates that the open64 routine is
2026 * available to open files larger than 2 gigabytes.
2027 */
2028/* HAS_OPENDIR64:
2029 * This symbol, if defined, indicates that the opendir64 routine is
2030 * available to opendir files larger than 2 gigabytes.
2031 */
2032/* HAS_READDIR64:
2033 * This symbol, if defined, indicates that the readdir64 routine is
2034 * available to readdir files larger than 2 gigabytes.
2035 */
2036/* HAS_SEEKDIR64:
2037 * This symbol, if defined, indicates that the seekdir64 routine is
2038 * available to seekdir files larger than 2 gigabytes.
2039 */
2040/* HAS_STAT64:
85ab1d1d 2041 * This symbol, if defined, indicates that the stat64 routine is
5ff3f7a4 2042 * available to stat files larger than 2 gigabytes.
2043 */
2044/* HAS_TELLDIR64:
2045 * This symbol, if defined, indicates that the telldir64 routine is
2046 * available to telldir files larger than 2 gigabytes.
2047 */
2048/* HAS_TRUNCATE64:
2049 * This symbol, if defined, indicates that the truncate64 routine is
2050 * available to truncate files larger than 2 gigabytes.
2051 */
2052/* HAS_OFF64_T:
2053 * This symbol will be defined if the C compiler supports off64_t.
2054 */
2055/* HAS_STRUCT_DIRENT64:
2056 * This symbol will be defined if the C compiler supports struct dirent64.
2057 */
2058#$d_fstat64 HAS_FSTAT64 /**/
2059#$d_ftruncate64 HAS_FTRUNCATE64 /**/
2060#$d_lseek64 HAS_LSEEK64 /**/
2061#$d_lstat64 HAS_LSTAT64 /**/
2062#$d_open64 HAS_OPEN64 /**/
2063#$d_opendir64 HAS_OPENDIR64 /**/
2064#$d_readdir64 HAS_READDIR64 /**/
2065#$d_seekdir64 HAS_SEEKDIR64 /**/
2066#$d_stat64 HAS_STAT64 /**/
2067#$d_telldir64 HAS_TELLDIR64 /**/
2068#$d_truncate64 HAS_TRUNCATE64 /**/
2069#$d_off64t HAS_OFF64_T /**/
2070#$d_dirent64s HAS_STRUCT_DIRENT64 /**/
2071
bfb7748a 2072/* PRIVLIB:
2073 * This symbol contains the name of the private library for this package.
2074 * The library is private in the sense that it needn't be in anyone's
2075 * execution path, but it should be accessible by the world. The program
2076 * should be prepared to do ~ expansion.
2077 */
2078/* PRIVLIB_EXP:
2079 * This symbol contains the ~name expanded version of PRIVLIB, to be used
2080 * in programs that are not prepared to deal with ~ expansion at run-time.
2081 */
2082#define PRIVLIB "$privlib" /**/
2083#define PRIVLIB_EXP "$privlibexp" /**/
2084
5ff3f7a4 2085/* SELECT_MIN_BITS:
2086 * This symbol holds the minimum number of bits operated by select.
2087 * That is, if you do select(n, ...), how many bits at least will be
2088 * cleared in the masks if some activity is detected. Usually this
2089 * is either n or 32*ceil(n/32), especially many little-endians do
2090 * the latter. This is only useful if you have select(), naturally.
2091 */
2092#define SELECT_MIN_BITS $selectminbits /**/
2093
bfb7748a 2094/* SITEARCH:
2095 * This symbol contains the name of the private library for this package.
2096 * The library is private in the sense that it needn't be in anyone's
2097 * execution path, but it should be accessible by the world. The program
2098 * should be prepared to do ~ expansion.
2099 * The standard distribution will put nothing in this directory.
2100 * Individual sites may place their own extensions and modules in
2101 * this directory.
2102 */
2103/* SITEARCH_EXP:
2104 * This symbol contains the ~name expanded version of SITEARCH, to be used
2105 * in programs that are not prepared to deal with ~ expansion at run-time.
2106 */
2107#define SITEARCH "$sitearch" /**/
2108#define SITEARCH_EXP "$sitearchexp" /**/
2109
2110/* SITELIB:
2111 * This symbol contains the name of the private library for this package.
2112 * The library is private in the sense that it needn't be in anyone's
2113 * execution path, but it should be accessible by the world. The program
2114 * should be prepared to do ~ expansion.
2115 * The standard distribution will put nothing in this directory.
2116 * Individual sites may place their own extensions and modules in
2117 * this directory.
2118 */
2119/* SITELIB_EXP:
2120 * This symbol contains the ~name expanded version of SITELIB, to be used
2121 * in programs that are not prepared to deal with ~ expansion at run-time.
2122 */
2123#define SITELIB "$sitelib" /**/
2124#define SITELIB_EXP "$sitelibexp" /**/
2125
568ef1f6 2126/* STARTPERL:
2127 * This variable contains the string to put in front of a perl
2128 * script to make sure (one hopes) that it runs with perl and not
2129 * some shell.
2130 */
2131#define STARTPERL "$startperl" /**/
2132
5ff3f7a4 2133/* HAS_FGETPOS64:
2134 * This symbol, if defined, indicates that the fgetpos64 routine is
2135 * available to getpos files larger than 2 gigabytes.
2136 */
2137/* HAS_FOPEN64:
2138 * This symbol, if defined, indicates that the fopen64 routine is
2139 * available to open files larger than 2 gigabytes.
2140 */
2141/* HAS_FREOPEN64:
2142 * This symbol, if defined, indicates that the freopen64 routine is
2143 * available to reopen files larger than 2 gigabytes.
2144 */
2145/* HAS_FSEEK64:
2146 * This symbol, if defined, indicates that the fseek64 routine is
2147 * available to seek files larger than 2 gigabytes.
2148 */
2149/* HAS_FSEEKO64:
2150 * This symbol, if defined, indicates that the fseeko64 routine is
2151 * available to seek files larger than 2 gigabytes.
2152 */
2153/* HAS_FSETPOS64:
2154 * This symbol, if defined, indicates that the fsetpos64 routine is
2155 * available to setpos files larger than 2 gigabytes.
2156 */
2157/* HAS_FTELL64:
2158 * This symbol, if defined, indicates that the ftell64 routine is
2159 * available to tell files larger than 2 gigabytes.
2160 */
2161/* HAS_FTELLO64:
2162 * This symbol, if defined, indicates that the ftello64 routine is
2163 * available to tell files larger than 2 gigabytes.
2164 */
2165/* HAS_TMPFILE64:
2166 * This symbol, if defined, indicates that the tmpfile64 routine is
2167 * available to tmpfile files larger than 2 gigabytes.
2168 */
2169#$d_fgetpos64 HAS_FGETPOS64 /**/
2170#$d_fopen64 HAS_FOPEN64 /**/
2171#$d_freopen64 HAS_FREOPEN64 /**/
2172#$d_fseek64 HAS_FSEEK64 /**/
2173#$d_fseeko64 HAS_FSEEKO64 /**/
2174#$d_fsetpos64 HAS_FSETPOS64 /**/
2175#$d_ftell64 HAS_FTELL64 /**/
2176#$d_ftello64 HAS_FTELLO64 /**/
2177#$d_tmpfile64 HAS_TMPFILE64 /**/
2178
2179/* USE_64_BITS:
85ab1d1d 2180 * This symbol, if defined, indicates that 64-bit interfaces should
2181 * be used when available. If not defined, the native default interfaces
5ff3f7a4 2182 * will be used (be they 32 or 64 bits).
2183 */
2184#$use64bits USE_64_BITS /**/
2185
e876cf0b 2186/* USE_PERLIO:
2187 * This symbol, if defined, indicates that the PerlIO abstraction should
2188 * be used throughout. If not defined, stdio should be
2189 * used in a fully backward compatible manner.
2190 */
2191#$useperlio USE_PERLIO /**/
2192
85ab1d1d 2193/* HAS_DRAND48_PROTO:
2194 * This symbol, if defined, indicates that the system provides
2195 * a prototype for the drand48() function. Otherwise, it is up
2196 * to the program to supply one. A good guess is
2197 * extern double drand48 _((void));
2198 */
2199#$d_drand48proto HAS_DRAND48_PROTO /**/
2200
dc45a647 2201/* HAS_GETHOST_PROTOS:
2202 * This symbol, if defined, indicates that <netdb.h> includes
2203 * prototypes for gethostent(), gethostbyname(), and
2204 * gethostbyaddr(). Otherwise, it is up to the program to guess
2205 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2206 */
2207#$d_gethostprotos HAS_GETHOST_PROTOS /**/
2208
2209/* HAS_GETNET_PROTOS:
2210 * This symbol, if defined, indicates that <netdb.h> includes
2211 * prototypes for getnetent(), getnetbyname(), and
2212 * getnetbyaddr(). Otherwise, it is up to the program to guess
2213 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2214 */
2215#$d_getnetprotos HAS_GETNET_PROTOS /**/
2216
2217/* HAS_GETPROTO_PROTOS:
2218 * This symbol, if defined, indicates that <netdb.h> includes
2219 * prototypes for getprotoent(), getprotobyname(), and
2220 * getprotobyaddr(). Otherwise, it is up to the program to guess
2221 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2222 */
2223#$d_getprotoprotos HAS_GETPROTO_PROTOS /**/
2224
2225/* HAS_GETSERV_PROTOS:
2226 * This symbol, if defined, indicates that <netdb.h> includes
2227 * prototypes for getservent(), getservbyname(), and
2228 * getservbyaddr(). Otherwise, it is up to the program to guess
2229 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2230 */
2231#$d_getservprotos HAS_GETSERV_PROTOS /**/
2232
dfe9444c 2233/* Netdb_host_t:
2234 * This symbol holds the type used for the 1st argument
2235 * to gethostbyaddr().
8e07c86e 2236 */
dfe9444c 2237/* Netdb_hlen_t:
2238 * This symbol holds the type used for the 2nd argument
2239 * to gethostbyaddr().
2240 */
2241/* Netdb_name_t:
2242 * This symbol holds the type used for the argument to
2243 * gethostbyname().
2244 */
2245/* Netdb_net_t:
2246 * This symbol holds the type used for the 1st argument to
2247 * getnetbyaddr().
2248 */
2249#define Netdb_host_t $netdb_host_type /**/
2250#define Netdb_hlen_t $netdb_hlen_type /**/
2251#define Netdb_name_t $netdb_name_type /**/
2252#define Netdb_net_t $netdb_net_type /**/
2253
2254/* Select_fd_set_t:
2255 * This symbol holds the type used for the 2nd, 3rd, and 4th
2256 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
2257 * is defined, and 'int *' otherwise. This is only useful if you
2258 * have select(), of course.
2259 */
2260#define Select_fd_set_t $selecttype /**/
2261
2262/* ARCHNAME:
2263 * This symbol holds a string representing the architecture name.
2264 * It may be used to construct an architecture-dependant pathname
2265 * where library files may be held under a private library, for
2266 * instance.
2267 */
2268#define ARCHNAME "$archname" /**/
2269
31dfa2f6 2270/* HAS_PTHREAD_YIELD:
2271 * This symbol, if defined, indicates that the pthread_yield
2272 * routine is available to yield the execution of the current
2273 * thread. sched_yield is preferable to pthread_yield.
2274 */
1cfa4ec7 2275/* SCHED_YIELD:
2276 * This symbol defines the way to yield the execution of
2277 * the current thread. Known ways are sched_yield,
2278 * pthread_yield, and pthread_yield with NULL.
c4f23d77 2279 */
31dfa2f6 2280/* HAS_SCHED_YIELD:
2281 * This symbol, if defined, indicates that the sched_yield
2282 * routine is available to yield the execution of the current
2283 * thread. sched_yield is preferable to pthread_yield.
2284 */
2285#$d_pthread_yield HAS_PTHREAD_YIELD /**/
1cfa4ec7 2286#define SCHED_YIELD $sched_yield /**/
31dfa2f6 2287#$d_sched_yield HAS_SCHED_YIELD /**/
dfe9444c 2288
2289/* PTHREADS_CREATED_JOINABLE:
2290 * This symbol, if defined, indicates that pthreads are created
2291 * in the joinable (aka undetached) state.
2292 */
2293#$d_pthreads_created_joinable PTHREADS_CREATED_JOINABLE /**/
2294
d8668976 2295/* MULTIPLICITY:
2296 * This symbol, if defined, indicates that Perl should
2297 * be built to use multiplicity.
2298 */
2299#$usemultiplicity MULTIPLICITY /**/
2300
dfe9444c 2301/* USE_THREADS:
2302 * This symbol, if defined, indicates that Perl should
2303 * be built to use threads.
2304 */
693762b4 2305/* OLD_PTHREADS_API:
2306 * This symbol, if defined, indicates that Perl should
2307 * be built to use the old draft POSIX threads API.
2308 */
dfe9444c 2309#$usethreads USE_THREADS /**/
693762b4 2310#$d_oldpthreads OLD_PTHREADS_API /**/
8e07c86e 2311
dc45a647 2312/* Time_t:
2313 * This symbol holds the type returned by time(). It can be long,
2314 * or time_t on BSD sites (in which case <sys/types.h> should be
2315 * included).
2316 */
2317#define Time_t $timetype /* Time type */
2318
2319/* HAS_TIMES:
2320 * This symbol, if defined, indicates that the times() routine exists.
2321 * Note that this became obsolete on some systems (SUNOS), which now
2322 * use getrusage(). It may be necessary to include <sys/times.h>.
2323 */
2324#$d_times HAS_TIMES /**/
2325
2326/* Fpos_t:
2327 * This symbol holds the type used to declare file positions in libc.
2328 * It can be fpos_t, long, uint, etc... It may be necessary to include
2329 * <sys/types.h> to get any typedef'ed information.
2330 */
2331#define Fpos_t $fpostype /* File position type */
2332
2333/* Gid_t:
2334 * This symbol holds the return type of getgid() and the type of
2335 * argument to setrgid() and related functions. Typically,
2336 * it is the type of group ids in the kernel. It can be int, ushort,
2337 * uid_t, etc... It may be necessary to include <sys/types.h> to get
2338 * any typedef'ed information.
2339 */
2340#define Gid_t $gidtype /* Type for getgid(), etc... */
2341
2342/* Off_t:
2343 * This symbol holds the type used to declare offsets in the kernel.
2344 * It can be int, long, off_t, etc... It may be necessary to include
2345 * <sys/types.h> to get any typedef'ed information.
2346 */
aa5812c3 2347/* LSEEKSIZE:
2348 * This symbol holds the number of bytes used by the Off_t.
2349 */
dc45a647 2350#define Off_t $lseektype /* <offset> type */
aa5812c3 2351#define LSEEKSIZE $lseeksize /* <offset> size */
dc45a647 2352
2353/* Mode_t:
2354 * This symbol holds the type used to declare file modes
2355 * for systems calls. It is usually mode_t, but may be
2356 * int or unsigned short. It may be necessary to include <sys/types.h>
2357 * to get any typedef'ed information.
2358 */
2359#define Mode_t $modetype /* file mode parameter for system calls */
2360
2361/* Pid_t:
2362 * This symbol holds the type used to declare process ids in the kernel.
2363 * It can be int, uint, pid_t, etc... It may be necessary to include
2364 * <sys/types.h> to get any typedef'ed information.
2365 */
2366#define Pid_t $pidtype /* PID type */
2367
2368/* Size_t:
2369 * This symbol holds the type used to declare length parameters
2370 * for string functions. It is usually size_t, but may be
2371 * unsigned long, int, etc. It may be necessary to include
2372 * <sys/types.h> to get any typedef'ed information.
2373 */
2374#define Size_t $sizetype /* length paramater for string functions */
2375
2376/* Uid_t:
2377 * This symbol holds the type used to declare user ids in the kernel.
2378 * It can be int, ushort, uid_t, etc... It may be necessary to include
2379 * <sys/types.h> to get any typedef'ed information.
2380 */
2381#define Uid_t $uidtype /* UID type */
2382
fe14fcc3 2383#endif
8d063cd8 2384!GROK!THIS!