This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pod/perlipc.pod patch
[perl5.git] / config_h.SH
CommitLineData
8d063cd8
LW
1case $CONFIG in
2'')
2304df62
AD
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
LW
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
AD
19/*
20 * This file was produced by running the config_h.SH script, which
8d063cd8
LW
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
AD
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 *
760ac839 28 * \$Id: Config_h.U,v 3.0.1.4 1995/09/25 09:10:49 ram Exp $
8d063cd8
LW
29 */
30
2304df62
AD
31/* Configuration time: $cf_time
32 * Configured by: $cf_by
33 * Target system: $myuname
34 */
8d063cd8 35
2304df62
AD
36#ifndef _config_h_
37#define _config_h_
38
a0d0e21e
LW
39/* MEM_ALIGNBYTES:
40 * This symbol contains the number of bytes required to align a
41 * double. Usual values are 2, 4 and 8.
42 */
43#define MEM_ALIGNBYTES $alignbytes /**/
44
2304df62
AD
45/* BIN:
46 * This symbol holds the path of the bin directory where the package will
47 * be installed. Program must be prepared to deal with ~name substitution.
a687059c 48 */
2304df62 49#define BIN "$bin" /**/
a687059c 50
ecfc5424
AD
51/* CAT2:
52 * This macro catenates 2 tokens together.
53 */
a26b0745
PP
54/* STRINGIFY:
55 * This macro surrounds its token with double quotes.
56 */
ecfc5424
AD
57#if $cpp_stuff == 1
58#define CAT2(a,b)a/**/b
59#define CAT3(a,b,c)a/**/b/**/c
60#define CAT4(a,b,c,d)a/**/b/**/c/**/d
61#define CAT5(a,b,c,d,e)a/**/b/**/c/**/d/**/e
62#define STRINGIFY(a)"a"
63 /* If you can get stringification with catify, tell me how! */
64#endif
65#if $cpp_stuff == 42
66#define CAT2(a,b)a ## b
67#define CAT3(a,b,c)a ## b ## c
68#define CAT4(a,b,c,d)a ## b ## c ## d
69#define CAT5(a,b,c,d,e)a ## b ## c ## d ## e
70#define StGiFy(a)# a
71#define STRINGIFY(a)StGiFy(a)
72#define SCAT2(a,b)StGiFy(a) StGiFy(b)
73#define SCAT3(a,b,c)StGiFy(a) StGiFy(b) StGiFy(c)
74#define SCAT4(a,b,c,d)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d)
75#define SCAT5(a,b,c,d,e)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d) StGiFy(e)
76#endif
77#ifndef CAT2
78#include "Bletch: How does this C preprocessor catenate tokens?"
79#endif
80
2304df62 81/* CPPSTDIN:
36ce8bec
DFDL
82 * This symbol contains the first part of the string which will invoke
83 * the C preprocessor on the standard input and produce to standard
2304df62
AD
84 * output. Typical value of "cc -E" or "/lib/cpp", but it can also
85 * call a wrapper. See CPPRUN.
36ce8bec 86 */
2304df62 87/* CPPMINUS:
36ce8bec
DFDL
88 * This symbol contains the second part of the string which will invoke
89 * the C preprocessor on the standard input and produce to standard
378cc40b 90 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
36ce8bec
DFDL
91 * to specify standard input, otherwise the value is "".
92 */
378cc40b 93#define CPPSTDIN "$cppstdin"
36ce8bec
DFDL
94#define CPPMINUS "$cppminus"
95
a0d0e21e
LW
96/* HAS_ALARM:
97 * This symbol, if defined, indicates that the alarm routine is
98 * available.
99 */
100#$d_alarm HAS_ALARM /**/
101
ecfc5424
AD
102/* HASATTRIBUTE:
103 * This symbol indicates the C compiler can check for function attributes,
104 * such as printf formats. This is normally only supported by GNU cc.
105 */
106#$d_attribut HASATTRIBUTE /**/
107#ifndef HASATTRIBUTE
108#define __attribute__(_arg_)
109#endif
110
2304df62
AD
111/* HAS_BCMP:
112 * This symbol is defined if the bcmp() routine is available to
113 * compare blocks of memory.
a687059c 114 */
2304df62 115#$d_bcmp HAS_BCMP /**/
a687059c 116
2304df62
AD
117/* HAS_BCOPY:
118 * This symbol is defined if the bcopy() routine is available to
119 * copy blocks of memory.
c51b80d1 120 */
2304df62 121#$d_bcopy HAS_BCOPY /**/
c51b80d1 122
2304df62
AD
123/* HAS_BZERO:
124 * This symbol is defined if the bzero() routine is available to
125 * set a memory block to 0.
0d3e774c 126 */
2304df62 127#$d_bzero HAS_BZERO /**/
0d3e774c 128
a0d0e21e
LW
129/* CASTI32:
130 * This symbol is defined if the C compiler can cast negative
131 * or large floating point numbers to 32-bit ints.
132 */
133#$d_casti32 CASTI32 /**/
134
2304df62
AD
135/* CASTNEGFLOAT:
136 * This symbol is defined if the C compiler can cast negative
137 * numbers to unsigned longs, ints and shorts.
b1248f16 138 */
2304df62 139/* CASTFLAGS:
7e1cf235
LW
140 * This symbol contains flags that say what difficulties the compiler
141 * has casting odd floating values to unsigned long:
2304df62 142 * 0 = ok
7e1cf235
LW
143 * 1 = couldn't cast < 0
144 * 2 = couldn't cast >= 0x80000000
232e078e 145 * 4 = couldn't cast in argument expression list
7e1cf235 146 */
2304df62
AD
147#$d_castneg CASTNEGFLOAT /**/
148#define CASTFLAGS $castflags /**/
ed6116ce 149
a0d0e21e
LW
150/* HAS_CHOWN:
151 * This symbol, if defined, indicates that the chown routine is
152 * available.
153 */
154#$d_chown HAS_CHOWN /**/
155
156/* HAS_CHROOT:
157 * This symbol, if defined, indicates that the chroot routine is
158 * available.
159 */
160#$d_chroot HAS_CHROOT /**/
161
2304df62 162/* HAS_CHSIZE:
87250799
LW
163 * This symbol, if defined, indicates that the chsize routine is available
164 * to truncate files. You might need a -lx to get this routine.
165 */
fe14fcc3 166#$d_chsize HAS_CHSIZE /**/
87250799 167
ecfc5424
AD
168/* VOID_CLOSEDIR:
169 * This symbol, if defined, indicates that the closedir() routine
170 * does not return a value.
171 */
172#$d_void_closedir VOID_CLOSEDIR /**/
173
2304df62
AD
174/* HASCONST:
175 * This symbol, if defined, indicates that this C compiler knows about
176 * the const type. There is no need to actually test for that symbol
177 * within your programs. The mere use of the "const" keyword will
178 * trigger the necessary tests.
179 */
180#$d_const HASCONST /**/
181#ifndef HASCONST
182#define const
183#endif
184
185/* HAS_CRYPT:
2e1b3b7e
KK
186 * This symbol, if defined, indicates that the crypt routine is available
187 * to encrypt passwords and the like.
188 */
2304df62 189#$d_crypt HAS_CRYPT /**/
2e1b3b7e 190
a0d0e21e
LW
191/* HAS_CUSERID:
192 * This symbol, if defined, indicates that the cuserid routine is
193 * available to get character login names.
13281fa4 194 */
a0d0e21e
LW
195#$d_cuserid HAS_CUSERID /**/
196
197/* HAS_DBL_DIG:
198 * This symbol, if defined, indicates that this system's <float.h>
199 * or <limits.h> defines the symbol DBL_DIG, which is the number
200 * of significant digits in a double precision number. If this
201 * symbol is not defined, a guess of 15 is usually pretty good.
202 */
203#$d_dbl_dig HAS_DBL_DIG /* */
204
205/* HAS_DIFFTIME:
206 * This symbol, if defined, indicates that the difftime routine is
207 * available.
208 */
209#$d_difftime HAS_DIFFTIME /**/
13281fa4 210
ecfc5424
AD
211/* HAS_DLERROR:
212 * This symbol, if defined, indicates that the dlerror routine is
213 * available to return a string describing the last error that
214 * occurred from a call to dlopen(), dlclose() or dlsym().
215 */
216#$d_dlerror HAS_DLERROR /**/
217
2304df62
AD
218/* HAS_DUP2:
219 * This symbol, if defined, indicates that the dup2 routine is
220 * available to duplicate file descriptors.
a687059c 221 */
2304df62 222#$d_dup2 HAS_DUP2 /**/
a687059c 223
2304df62 224/* HAS_FCHMOD:
378cc40b
LW
225 * This symbol, if defined, indicates that the fchmod routine is available
226 * to change mode of opened files. If unavailable, use chmod().
227 */
2304df62 228#$d_fchmod HAS_FCHMOD /**/
378cc40b 229
2304df62 230/* HAS_FCHOWN:
378cc40b
LW
231 * This symbol, if defined, indicates that the fchown routine is available
232 * to change ownership of opened files. If unavailable, use chown().
233 */
2304df62 234#$d_fchown HAS_FCHOWN /**/
378cc40b 235
2304df62 236/* HAS_FCNTL:
fe14fcc3
LW
237 * This symbol, if defined, indicates to the C program that
238 * the fcntl() function exists.
a687059c 239 */
2304df62 240#$d_fcntl HAS_FCNTL /**/
a687059c 241
a0d0e21e
LW
242/* HAS_FGETPOS:
243 * This symbol, if defined, indicates that the fgetpos routine is
244 * available to get the file position indicator, similar to ftell().
245 */
246#$d_fgetpos HAS_FGETPOS /**/
247
2304df62 248/* FLEXFILENAMES:
7e1cf235
LW
249 * This symbol, if defined, indicates that the system supports filenames
250 * longer than 14 characters.
251 */
252#$d_flexfnam FLEXFILENAMES /**/
253
2304df62
AD
254/* HAS_FLOCK:
255 * This symbol, if defined, indicates that the flock routine is
a687059c
LW
256 * available to do file locking.
257 */
2304df62 258#$d_flock HAS_FLOCK /**/
a687059c 259
a0d0e21e
LW
260/* HAS_FORK:
261 * This symbol, if defined, indicates that the fork routine is
262 * available.
263 */
264#$d_fork HAS_FORK /**/
265
266/* HAS_FSETPOS:
267 * This symbol, if defined, indicates that the fsetpos routine is
268 * available to set the file position indicator, similar to fseek().
269 */
270#$d_fsetpos HAS_FSETPOS /**/
271
2304df62 272/* HAS_GETGROUPS:
378cc40b
LW
273 * This symbol, if defined, indicates that the getgroups() routine is
274 * available to get the list of process groups. If unavailable, multiple
275 * groups are probably not supported.
276 */
2304df62 277#$d_getgrps HAS_GETGROUPS /**/
378cc40b 278
2304df62
AD
279/* HAS_GETHOSTENT:
280 * This symbol, if defined, indicates that the gethostent routine is
a687059c
LW
281 * available to lookup host names in some data base or other.
282 */
2304df62
AD
283#$d_gethent HAS_GETHOSTENT /**/
284
285/* HAS_UNAME:
286 * This symbol, if defined, indicates that the C program may use the
287 * uname() routine to derive the host name. See also HAS_GETHOSTNAME
288 * and PHOSTNAME.
289 */
290#$d_uname HAS_UNAME /**/
a687059c 291
a0d0e21e
LW
292/* HAS_GETLOGIN:
293 * This symbol, if defined, indicates that the getlogin routine is
294 * available to get the login name.
295 */
296#$d_getlogin HAS_GETLOGIN /**/
297
2304df62 298/* HAS_GETPGRP2:
d8f2e4cc
LW
299 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
300 * routine is available to get the current process group.
301 */
2304df62 302#$d_getpgrp2 HAS_GETPGRP2 /**/
d8f2e4cc 303
a0d0e21e
LW
304/* HAS_GETPPID:
305 * This symbol, if defined, indicates that the getppid routine is
306 * available to get the parent process ID.
307 */
308#$d_getppid HAS_GETPPID /**/
309
2304df62
AD
310/* HAS_GETPRIORITY:
311 * This symbol, if defined, indicates that the getpriority routine is
a687059c
LW
312 * available to get a process's priority.
313 */
2304df62 314#$d_getprior HAS_GETPRIORITY /**/
a687059c 315
a0d0e21e
LW
316/* HAS_HTONL:
317 * This symbol, if defined, indicates that the htonl() routine (and
318 * friends htons() ntohl() ntohs()) are available to do network
319 * order byte swapping.
320 */
321/* HAS_HTONS:
322 * This symbol, if defined, indicates that the htons() routine (and
323 * friends htonl() ntohl() ntohs()) are available to do network
324 * order byte swapping.
325 */
326/* HAS_NTOHL:
327 * This symbol, if defined, indicates that the ntohl() routine (and
328 * friends htonl() htons() ntohs()) are available to do network
329 * order byte swapping.
330 */
331/* HAS_NTOHS:
332 * This symbol, if defined, indicates that the ntohs() routine (and
333 * friends htonl() htons() ntohl()) are available to do network
334 * order byte swapping.
335 */
336#$d_htonl HAS_HTONL /**/
337#$d_htonl HAS_HTONS /**/
338#$d_htonl HAS_NTOHL /**/
339#$d_htonl HAS_NTOHS /**/
340
ecfc5424
AD
341/* HAS_ISASCII:
342 * This manifest constant lets the C program know that isascii
343 * is available.
344 */
345#$d_isascii HAS_ISASCII /**/
346
2304df62 347/* HAS_KILLPG:
378cc40b
LW
348 * This symbol, if defined, indicates that the killpg routine is available
349 * to kill process groups. If unavailable, you probably should use kill
350 * with a negative process number.
351 */
2304df62 352#$d_killpg HAS_KILLPG /**/
378cc40b 353
2304df62
AD
354/* HAS_LINK:
355 * This symbol, if defined, indicates that the link routine is
356 * available to create hard links.
0d3e774c 357 */
2304df62 358#$d_link HAS_LINK /**/
0d3e774c 359
ecfc5424
AD
360/* HAS_LOCALECONV:
361 * This symbol, if defined, indicates that the localeconv routine is
362 * available for numeric and monetary formatting conventions.
363 */
364#$d_locconv HAS_LOCALECONV /**/
365
a0d0e21e
LW
366/* HAS_LOCKF:
367 * This symbol, if defined, indicates that the lockf routine is
368 * available to do file locking.
369 */
370#$d_lockf HAS_LOCKF /**/
371
2304df62
AD
372/* HAS_LSTAT:
373 * This symbol, if defined, indicates that the lstat routine is
374 * available to do file stats on symbolic links.
a687059c 375 */
2304df62 376#$d_lstat HAS_LSTAT /**/
a687059c 377
a0d0e21e
LW
378/* HAS_MBLEN:
379 * This symbol, if defined, indicates that the mblen routine is available
380 * to find the number of bytes in a multibye character.
381 */
382#$d_mblen HAS_MBLEN /**/
383
384/* HAS_MBSTOWCS:
385 * This symbol, if defined, indicates that the mbstowcs routine is
386 * available to covert a multibyte string into a wide character string.
387 */
388#$d_mbstowcs HAS_MBSTOWCS /**/
389
390/* HAS_MBTOWC:
391 * This symbol, if defined, indicates that the mbtowc routine is available
392 * to covert a multibyte to a wide character.
393 */
394#$d_mbtowc HAS_MBTOWC /**/
395
2304df62
AD
396/* HAS_MEMCMP:
397 * This symbol, if defined, indicates that the memcmp routine is available
398 * to compare blocks of memory.
378cc40b 399 */
2304df62
AD
400#$d_memcmp HAS_MEMCMP /**/
401
402/* HAS_MEMCPY:
9f971974 403 * This symbol, if defined, indicates that the memcpy routine is available
2304df62 404 * to copy blocks of memory.
9f971974 405 */
2304df62 406#$d_memcpy HAS_MEMCPY /**/
9f971974 407
2304df62 408/* HAS_MEMMOVE:
9f971974 409 * This symbol, if defined, indicates that the memmove routine is available
2304df62
AD
410 * to copy potentially overlapping blocks of memory. This should be used
411 * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
412 * own version.
9f971974 413 */
2304df62 414#$d_memmove HAS_MEMMOVE /**/
9f971974 415
2304df62 416/* HAS_MEMSET:
9f971974 417 * This symbol, if defined, indicates that the memset routine is available
2304df62 418 * to set blocks of memory.
9f971974 419 */
2304df62 420#$d_memset HAS_MEMSET /**/
378cc40b 421
2304df62 422/* HAS_MKDIR:
a687059c
LW
423 * This symbol, if defined, indicates that the mkdir routine is available
424 * to create directories. Otherwise you should fork off a new process to
425 * exec /bin/mkdir.
426 */
2304df62 427#$d_mkdir HAS_MKDIR /**/
fe14fcc3 428
ecfc5424
AD
429/* HAS_MKFIFO:
430 * This symbol, if defined, indicates that the mkfifo routine is
431 * available to create FIFOs. Otherwise, mknod should be able to
432 * do it for you. However, if mkfifo is there, mknod might require
433 * super-user privileges which mkfifo will not.
434 */
435#$d_mkfifo HAS_MKFIFO /**/
436
a0d0e21e
LW
437/* HAS_MKTIME:
438 * This symbol, if defined, indicates that the mktime routine is
439 * available.
440 */
441#$d_mktime HAS_MKTIME /**/
442
2304df62 443/* HAS_MSG:
fe14fcc3 444 * This symbol, if defined, indicates that the entire msg*(2) library is
2304df62 445 * supported (IPC mechanism based on message queues).
fe14fcc3 446 */
2304df62 447#$d_msg HAS_MSG /**/
fe14fcc3 448
a0d0e21e
LW
449/* HAS_NICE:
450 * This symbol, if defined, indicates that the nice routine is
451 * available.
fe14fcc3 452 */
a0d0e21e 453#$d_nice HAS_NICE /**/
a687059c 454
a0d0e21e
LW
455/* HAS_OPEN3:
456 * This manifest constant lets the C program know that the three
457 * argument form of open(2) is available.
fe14fcc3 458 */
a0d0e21e 459#$d_open3 HAS_OPEN3 /**/
fe14fcc3 460
ecfc5424
AD
461/* HAS_PATHCONF:
462 * This symbol, if defined, indicates that pathconf() is available
463 * to determine file-system related limits and options associated
464 * with a given filename.
465 */
466/* HAS_FPATHCONF:
467 * This symbol, if defined, indicates that pathconf() is available
468 * to determine file-system related limits and options associated
469 * with a given open file descriptor.
470 */
471#$d_pathconf HAS_PATHCONF /**/
472#$d_fpathconf HAS_FPATHCONF /**/
473
a0d0e21e
LW
474/* HAS_PAUSE:
475 * This symbol, if defined, indicates that the pause routine is
476 * available to suspend a process until a signal is received.
a687059c 477 */
a0d0e21e 478#$d_pause HAS_PAUSE /**/
a687059c 479
a0d0e21e
LW
480/* HAS_PIPE:
481 * This symbol, if defined, indicates that the pipe routine is
482 * available to create an inter-process channel.
fe14fcc3 483 */
a0d0e21e
LW
484#$d_pipe HAS_PIPE /**/
485
8e07c86e
AD
486/* HAS_POLL:
487 * This symbol, if defined, indicates that the poll routine is
488 * available to poll active file descriptors.
489 */
490#$d_poll HAS_POLL /**/
491
a0d0e21e
LW
492/* HAS_READDIR:
493 * This symbol, if defined, indicates that the readdir routine is
494 * available to read directory entries. You may have to include
495 * <dirent.h>. See I_DIRENT.
496 */
497#$d_readdir HAS_READDIR /**/
498
499/* HAS_SEEKDIR:
500 * This symbol, if defined, indicates that the seekdir routine is
501 * available. You may have to include <dirent.h>. See I_DIRENT.
502 */
503#$d_seekdir HAS_SEEKDIR /**/
504
505/* HAS_TELLDIR:
506 * This symbol, if defined, indicates that the telldir routine is
507 * available. You may have to include <dirent.h>. See I_DIRENT.
508 */
509#$d_telldir HAS_TELLDIR /**/
510
511/* HAS_REWINDDIR:
512 * This symbol, if defined, indicates that the rewinddir routine is
513 * available. You may have to include <dirent.h>. See I_DIRENT.
514 */
515#$d_rewinddir HAS_REWINDDIR /**/
516
517/* HAS_READLINK:
518 * This symbol, if defined, indicates that the readlink routine is
519 * available to read the value of a symbolic link.
520 */
521#$d_readlink HAS_READLINK /**/
fe14fcc3 522
2304df62 523/* HAS_RENAME:
378cc40b
LW
524 * This symbol, if defined, indicates that the rename routine is available
525 * to rename files. Otherwise you should do the unlink(), link(), unlink()
526 * trick.
527 */
2304df62 528#$d_rename HAS_RENAME /**/
378cc40b 529
2304df62
AD
530/* HAS_RMDIR:
531 * This symbol, if defined, indicates that the rmdir routine is
532 * available to remove directories. Otherwise you should fork off a
533 * new process to exec /bin/rmdir.
9f971974 534 */
2304df62 535#$d_rmdir HAS_RMDIR /**/
9f971974 536
ecfc5424
AD
537/* HAS_SAFE_BCOPY:
538 * This symbol, if defined, indicates that the bcopy routine is available
539 * to copy potentially overlapping memory blocks. Otherwise you should
540 * probably use memmove() or memcpy(). If neither is defined, roll your
541 * own version.
542 */
543#$d_safebcpy HAS_SAFE_BCOPY /**/
544
545/* HAS_SAFE_MEMCPY:
546 * This symbol, if defined, indicates that the memcpy routine is available
547 * to copy potentially overlapping memory blocks. Otherwise you should
548 * probably use memmove() or memcpy(). If neither is defined, roll your
549 * own version.
550 */
551#$d_safemcpy HAS_SAFE_MEMCPY /**/
552
36477c24
PP
553/* HAS_SANE_MEMCMP:
554 * This symbol, if defined, indicates that the memcmp() routine is
555 * available to compare memory blocks for relative magnitude. If this
556 * symbol is not defined, and if HAS_MEMCMP is defined, then memcmp()
557 * may be used only to compare memory blocks for equality.
558 */
559#$d_sanemcmp HAS_SANE_MEMCMP /**/
560
2304df62
AD
561/* HAS_SELECT:
562 * This symbol, if defined, indicates that the select routine is
563 * available to select active file descriptors. If the timeout field
564 * is used, <sys/time.h> may need to be included.
fe14fcc3 565 */
2304df62 566#$d_select HAS_SELECT /**/
a687059c 567
2304df62 568/* HAS_SEM:
fe14fcc3
LW
569 * This symbol, if defined, indicates that the entire sem*(2) library is
570 * supported.
571 */
2304df62 572#$d_sem HAS_SEM /**/
fe14fcc3 573
2304df62 574/* HAS_SETEGID:
378cc40b
LW
575 * This symbol, if defined, indicates that the setegid routine is available
576 * to change the effective gid of the current program.
577 */
2304df62 578#$d_setegid HAS_SETEGID /**/
378cc40b 579
2304df62 580/* HAS_SETEUID:
378cc40b
LW
581 * This symbol, if defined, indicates that the seteuid routine is available
582 * to change the effective uid of the current program.
583 */
2304df62
AD
584#$d_seteuid HAS_SETEUID /**/
585
a0d0e21e
LW
586/* HAS_SETLINEBUF:
587 * This symbol, if defined, indicates that the setlinebuf routine is
588 * available to change stderr or stdout from block-buffered or unbuffered
589 * to a line-buffered mode.
590 */
591#$d_setlinebuf HAS_SETLINEBUF /**/
592
593/* HAS_SETLOCALE:
594 * This symbol, if defined, indicates that the setlocale routine is
595 * available to handle locale-specific ctype implementations.
596 */
597#$d_setlocale HAS_SETLOCALE /**/
598
2304df62 599/* HAS_SETPGRP2:
d8f2e4cc
LW
600 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
601 * routine is available to set the current process group.
602 */
2304df62 603#$d_setpgrp2 HAS_SETPGRP2 /**/
d8f2e4cc 604
2304df62
AD
605/* HAS_SETPRIORITY:
606 * This symbol, if defined, indicates that the setpriority routine is
a687059c
LW
607 * available to set a process's priority.
608 */
2304df62 609#$d_setprior HAS_SETPRIORITY /**/
a687059c 610
2304df62 611/* HAS_SETREGID:
a687059c 612 * This symbol, if defined, indicates that the setregid routine is
2304df62
AD
613 * available to change the real and effective gid of the current
614 * process.
a687059c 615 */
2304df62 616/* HAS_SETRESGID:
a687059c
LW
617 * This symbol, if defined, indicates that the setresgid routine is
618 * available to change the real, effective and saved gid of the current
2304df62 619 * process.
a687059c 620 */
2304df62
AD
621#$d_setregid HAS_SETREGID /**/
622#$d_setresgid HAS_SETRESGID /**/
a687059c 623
2304df62 624/* HAS_SETREUID:
a687059c 625 * This symbol, if defined, indicates that the setreuid routine is
2304df62
AD
626 * available to change the real and effective uid of the current
627 * process.
a687059c 628 */
2304df62 629/* HAS_SETRESUID:
a687059c
LW
630 * This symbol, if defined, indicates that the setresuid routine is
631 * available to change the real, effective and saved uid of the current
2304df62 632 * process.
a687059c 633 */
2304df62
AD
634#$d_setreuid HAS_SETREUID /**/
635#$d_setresuid HAS_SETRESUID /**/
a687059c 636
2304df62 637/* HAS_SETRGID:
378cc40b
LW
638 * This symbol, if defined, indicates that the setrgid routine is available
639 * to change the real gid of the current program.
640 */
2304df62 641#$d_setrgid HAS_SETRGID /**/
378cc40b 642
2304df62 643/* HAS_SETRUID:
378cc40b
LW
644 * This symbol, if defined, indicates that the setruid routine is available
645 * to change the real uid of the current program.
646 */
2304df62
AD
647#$d_setruid HAS_SETRUID /**/
648
649/* HAS_SETSID:
650 * This symbol, if defined, indicates that the setsid routine is
651 * available to set the process group ID.
652 */
653#$d_setsid HAS_SETSID /**/
fe14fcc3 654
2304df62 655/* HAS_SHM:
fe14fcc3
LW
656 * This symbol, if defined, indicates that the entire shm*(2) library is
657 * supported.
658 */
2304df62 659#$d_shm HAS_SHM /**/
fe14fcc3 660
a0d0e21e
LW
661/* Shmat_t:
662 * This symbol holds the return type of the shmat() system call.
663 * Usually set to 'void *' or 'char *'.
fe14fcc3 664 */
a0d0e21e
LW
665/* HAS_SHMAT_PROTOTYPE:
666 * This symbol, if defined, indicates that the sys/shm.h includes
667 * a prototype for shmat(). Otherwise, it is up to the program to
668 * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
669 * but not always right so it should be emitted by the program only
670 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
fe14fcc3 671 */
a0d0e21e
LW
672#define Shmat_t $shmattype /**/
673#$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/
fe14fcc3 674
568ef1f6
PP
675/* HAS_SIGACTION:
676 * This symbol, if defined, indicates that Vr4's sigaction() routine
677 * is available.
678 */
679#$d_sigaction HAS_SIGACTION /**/
680
2304df62 681/* HAS_SOCKET:
a687059c
LW
682 * This symbol, if defined, indicates that the BSD socket interface is
683 * supported.
684 */
2304df62
AD
685/* HAS_SOCKETPAIR:
686 * This symbol, if defined, indicates that the BSD socketpair() call is
a687059c
LW
687 * supported.
688 */
2304df62
AD
689#$d_socket HAS_SOCKET /**/
690#$d_sockpair HAS_SOCKETPAIR /**/
a687059c 691
2304df62 692/* USE_STAT_BLOCKS:
c51b80d1
LW
693 * This symbol is defined if this system has a stat structure declaring
694 * st_blksize and st_blocks.
695 */
2304df62 696#$d_statblks USE_STAT_BLOCKS /**/
c51b80d1 697
16d20bd9
AD
698/* USE_STDIO_PTR:
699 * This symbol is defined if the _ptr and _cnt fields (or similar)
700 * of the stdio FILE structure can be used to access the stdio buffer
701 * for a file handle. If this is defined, then the FILE_ptr(fp)
702 * and FILE_cnt(fp) macros will also be defined and should be used
703 * to access these fields.
704 */
16d20bd9
AD
705/* FILE_ptr:
706 * This macro is used to access the _ptr field (or equivalent) of the
707 * FILE structure pointed to by its argument. This macro will always be
708 * defined if USE_STDIO_PTR is defined.
709 */
c2960299
AD
710/* STDIO_PTR_LVALUE:
711 * This symbol is defined if the FILE_ptr macro can be used as an
712 * lvalue.
713 */
16d20bd9
AD
714/* FILE_cnt:
715 * This macro is used to access the _cnt field (or equivalent) of the
716 * FILE structure pointed to by its argument. This macro will always be
717 * defined if USE_STDIO_PTR is defined.
718 */
c2960299
AD
719/* STDIO_CNT_LVALUE:
720 * This symbol is defined if the FILE_cnt macro can be used as an
721 * lvalue.
722 */
e876cf0b
PP
723/* FILE_filbuf:
724 * This macro is used to access the internal stdio _filbuf function
725 * (or equivalent), if STDIO_CNT_LVALUE and STDIO_PTR_LVALUE
726 * are defined. It is typically either _filbuf or __filbuf.
727 * This macro will only be defined if both STDIO_CNT_LVALUE and
728 * STDIO_PTR_LVALUE are defined.
729 */
730#$d_stdstdio USE_STDIO_PTR /**/
16d20bd9
AD
731#ifdef USE_STDIO_PTR
732#define FILE_ptr(fp) $stdio_ptr
4aa0a1f7 733#$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/
16d20bd9 734#define FILE_cnt(fp) $stdio_cnt
4aa0a1f7 735#$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/
e876cf0b
PP
736#if defined(STDIO_PTR_LVALUE) && defined(STDIO_CNT_LVALUE)
737#define FILE_filbuf(fp) $stdio_filbuf /**/
738#endif
16d20bd9
AD
739#endif
740
e876cf0b
PP
741/* USE_STDIO_BASE:
742 * This symbol is defined if the _base field (or similar) of the
743 * stdio FILE structure can be used to access the stdio buffer for
744 * a file handle. If this is defined, then the FILE_base(fp) macro
745 * will also be defined and should be used to access this field.
746 * Also, the FILE_bufsiz(fp) macro will be defined and should be used
747 * to determine the number of bytes in the buffer. USE_STDIO_BASE
748 * will never be defined unless USE_STDIO_PTR is.
749 */
16d20bd9
AD
750/* FILE_base:
751 * This macro is used to access the _base field (or equivalent) of the
752 * FILE structure pointed to by its argument. This macro will always be
753 * defined if USE_STDIO_BASE is defined.
754 */
755/* FILE_bufsiz:
756 * This macro is used to determine the number of bytes in the I/O
757 * buffer pointed to by _base field (or equivalent) of the FILE
758 * structure pointed to its argument. This macro will always be defined
759 * if USE_STDIO_BASE is defined.
36ce8bec 760 */
e876cf0b 761#$d_stdiobase USE_STDIO_BASE /**/
16d20bd9
AD
762#ifdef USE_STDIO_BASE
763#define FILE_base(fp) $stdio_base
764#define FILE_bufsiz(fp) $stdio_bufsiz
765#endif
36ce8bec 766
a0d0e21e
LW
767/* HAS_STRCHR:
768 * This symbol is defined to indicate that the strchr()/strrchr()
769 * functions are available for string searching. If not, try the
770 * index()/rindex() pair.
771 */
772/* HAS_INDEX:
773 * This symbol is defined to indicate that the index()/rindex()
774 * functions are available for string searching.
775 */
776#$d_strchr HAS_STRCHR /**/
777#$d_index HAS_INDEX /**/
778
779/* HAS_STRCOLL:
780 * This symbol, if defined, indicates that the strcoll routine is
781 * available to compare strings using collating information.
782 */
783#$d_strcoll HAS_STRCOLL /**/
784
2304df62 785/* USE_STRUCT_COPY:
8d063cd8
LW
786 * This symbol, if defined, indicates that this C compiler knows how
787 * to copy structures. If undefined, you'll need to use a block copy
788 * routine of some sort instead.
789 */
2304df62 790#$d_strctcpy USE_STRUCT_COPY /**/
8d063cd8 791
a0d0e21e
LW
792/* HAS_STRERROR:
793 * This symbol, if defined, indicates that the strerror routine is
794 * available to translate error numbers to strings. See the writeup
795 * of Strerror() in this file before you try to define your own.
796 */
797/* HAS_SYS_ERRLIST:
798 * This symbol, if defined, indicates that the sys_errlist array is
799 * available to translate error numbers to strings. The extern int
800 * sys_nerr gives the size of that table.
801 */
802/* Strerror:
803 * This preprocessor symbol is defined as a macro if strerror() is
804 * not available to translate error numbers to strings but sys_errlist[]
805 * array is there.
806 */
807#$d_strerror HAS_STRERROR /**/
808#$d_syserrlst HAS_SYS_ERRLIST /**/
809#define Strerror(e) $d_strerrm
810
a89d8a78
DH
811/* HAS_STRTOD:
812 * This symbol, if defined, indicates that the strtod routine is
813 * available to translate strings to doubles.
814 */
815#$d_strtod HAS_STRTOD /**/
816
817/* HAS_STRTOL:
818 * This symbol, if defined, indicates that the strtol routine is
819 * available to translate strings to integers.
820 */
821#$d_strtol HAS_STRTOL /**/
822
823/* HAS_STRTOUL:
824 * This symbol, if defined, indicates that the strtoul routine is
825 * available to translate strings to integers.
826 */
827#$d_strtoul HAS_STRTOUL /**/
828
a0d0e21e
LW
829/* HAS_STRXFRM:
830 * This symbol, if defined, indicates that the strxfrm() routine is
831 * available to transform strings.
832 */
833#$d_strxfrm HAS_STRXFRM /**/
834
2304df62 835/* HAS_SYMLINK:
2e1b3b7e
KK
836 * This symbol, if defined, indicates that the symlink routine is available
837 * to create symbolic links.
838 */
2304df62 839#$d_symlink HAS_SYMLINK /**/
2e1b3b7e 840
2304df62
AD
841/* HAS_SYSCALL:
842 * This symbol, if defined, indicates that the syscall routine is
843 * available to call arbitrary system calls. If undefined, that's tough.
a687059c 844 */
2304df62 845#$d_syscall HAS_SYSCALL /**/
e5d73d77 846
ecfc5424
AD
847/* HAS_SYSCONF:
848 * This symbol, if defined, indicates that sysconf() is available
849 * to determine system related limits and options.
850 */
851#$d_sysconf HAS_SYSCONF /**/
852
2304df62
AD
853/* HAS_SYSTEM:
854 * This symbol, if defined, indicates that the system routine is
855 * available to issue a shell command.
9f971974 856 */
2304df62 857#$d_system HAS_SYSTEM /**/
9f971974 858
a0d0e21e
LW
859/* HAS_TCGETPGRP:
860 * This symbol, if defined, indicates that the tcgetpgrp routine is
861 * available to get foreground process group ID.
85e6fe83 862 */
a0d0e21e
LW
863#$d_tcgetpgrp HAS_TCGETPGRP /**/
864
865/* HAS_TCSETPGRP:
866 * This symbol, if defined, indicates that the tcsetpgrp routine is
867 * available to set foreground process group ID.
868 */
869#$d_tcsetpgrp HAS_TCSETPGRP /**/
85e6fe83 870
ecfc5424
AD
871/* Time_t:
872 * This symbol holds the type returned by time(). It can be long,
873 * or time_t on BSD sites (in which case <sys/types.h> should be
874 * included).
875 */
876#define Time_t $timetype /* Time type */
877
2304df62
AD
878/* HAS_TIMES:
879 * This symbol, if defined, indicates that the times() routine exists.
880 * Note that this became obsolete on some systems (SUNOS), which now
881 * use getrusage(). It may be necessary to include <sys/times.h>.
882 */
883#$d_times HAS_TIMES /**/
884
885/* HAS_TRUNCATE:
87250799
LW
886 * This symbol, if defined, indicates that the truncate routine is
887 * available to truncate files.
888 */
2304df62 889#$d_truncate HAS_TRUNCATE /**/
87250799 890
a0d0e21e
LW
891/* HAS_TZNAME:
892 * This symbol, if defined, indicates that the tzname[] array is
893 * available to access timezone names.
894 */
895#$d_tzname HAS_TZNAME /**/
896
897/* HAS_UMASK:
898 * This symbol, if defined, indicates that the umask routine is
899 * available to set and get the value of the file creation mask.
900 */
901#$d_umask HAS_UMASK /**/
902
903/* HAS_VFORK:
904 * This symbol, if defined, indicates that vfork() exists.
2304df62 905 */
a0d0e21e 906#$d_vfork HAS_VFORK /**/
2304df62 907
ecfc5424
AD
908/* Signal_t:
909 * This symbol's value is either "void" or "int", corresponding to the
910 * appropriate return type of a signal handler. Thus, you can declare
911 * a signal handler using "Signal_t (*handler)()", and define the
912 * handler using "Signal_t handler(sig)".
913 */
ecfc5424 914#define Signal_t $signal_t /* Signal handler's return type */
36ce8bec 915
2304df62 916/* HASVOLATILE:
afd9f252
LW
917 * This symbol, if defined, indicates that this C compiler knows about
918 * the volatile declaration.
919 */
920#$d_volatile HASVOLATILE /**/
2304df62
AD
921#ifndef HASVOLATILE
922#define volatile
923#endif
afd9f252 924
2304df62 925/* HAS_VPRINTF:
a687059c
LW
926 * This symbol, if defined, indicates that the vprintf routine is available
927 * to printf with a pointer to an argument list. If unavailable, you
928 * may need to write your own, probably in terms of _doprnt().
929 */
2304df62 930/* USE_CHAR_VSPRINTF:
a687059c
LW
931 * This symbol is defined if this system has vsprintf() returning type
932 * (char*). The trend seems to be to declare it as "int vsprintf()". It
933 * is up to the package author to declare vsprintf correctly based on the
934 * symbol.
935 */
2304df62
AD
936#$d_vprintf HAS_VPRINTF /**/
937#$d_charvspr USE_CHAR_VSPRINTF /**/
a687059c 938
2304df62 939/* HAS_WAIT4:
bf38876a
LW
940 * This symbol, if defined, indicates that wait4() exists.
941 */
2304df62 942#$d_wait4 HAS_WAIT4 /**/
bf38876a 943
2304df62
AD
944/* HAS_WAITPID:
945 * This symbol, if defined, indicates that the waitpid routine is
946 * available to wait for child process.
39c3038c 947 */
2304df62 948#$d_waitpid HAS_WAITPID /**/
39c3038c 949
a0d0e21e
LW
950/* HAS_WCSTOMBS:
951 * This symbol, if defined, indicates that the wcstombs routine is
952 * available to convert wide character strings to multibyte strings.
953 */
954#$d_wcstombs HAS_WCSTOMBS /**/
955
956/* HAS_WCTOMB:
957 * This symbol, if defined, indicates that the wctomb routine is available
958 * to covert a wide character to a multibyte.
959 */
960#$d_wctomb HAS_WCTOMB /**/
961
962/* Fpos_t:
963 * This symbol holds the type used to declare file positions in libc.
964 * It can be fpos_t, long, uint, etc... It may be necessary to include
965 * <sys/types.h> to get any typedef'ed information.
966 */
967#define Fpos_t $fpostype /* File position type */
968
969/* Gid_t:
970 * This symbol holds the return type of getgid() and the type of
971 * argument to setrgid() and related functions. Typically,
972 * it is the type of group ids in the kernel. It can be int, ushort,
973 * uid_t, etc... It may be necessary to include <sys/types.h> to get
974 * any typedef'ed information.
378cc40b 975 */
a0d0e21e 976#define Gid_t $gidtype /* Type for getgid(), etc... */
378cc40b 977
ecfc5424
AD
978/* Groups_t:
979 * This symbol holds the type used for the second argument to
980 * getgroups(). Usually, this is the same of gidtype, but
981 * sometimes it isn't. It can be int, ushort, uid_t, etc...
982 * It may be necessary to include <sys/types.h> to get any
983 * typedef'ed information. This is only required if you have
984 * getgroups().
985 */
986#ifdef HAS_GETGROUPS
987#define Groups_t $groupstype /* Type for 2nd arg to getgroups() */
988#endif
989
232e078e
AD
990/* DB_Prefix_t:
991 * This symbol contains the type of the prefix structure element
992 * in the <db.h> header file. In older versions of DB, it was
993 * int, while in newer ones it is u_int32_t.
994 */
995/* DB_Hash_t:
996 * This symbol contains the type of the prefix structure element
997 * in the <db.h> header file. In older versions of DB, it was
998 * int, while in newer ones it is size_t.
999 */
1000#define DB_Hash_t $db_hashtype /**/
1001#define DB_Prefix_t $db_prefixtype /**/
1002
2304df62
AD
1003/* I_DIRENT:
1004 * This symbol, if defined, indicates to the C program that it should
1005 * include <dirent.h>. Using this symbol also triggers the definition
1006 * of the Direntry_t define which ends up being 'struct dirent' or
1007 * 'struct direct' depending on the availability of <dirent.h>.
1c3d792e 1008 */
2304df62
AD
1009/* DIRNAMLEN:
1010 * This symbol, if defined, indicates to the C program that the length
1011 * of directory entry names is provided by a d_namlen field. Otherwise
1012 * you need to do strlen() on the d_name field.
1013 */
a0d0e21e
LW
1014/* Direntry_t:
1015 * This symbol is set to 'struct direct' or 'struct dirent' depending on
1016 * whether dirent is available or not. You should use this pseudo type to
1017 * portably declare your directory entries.
1018 */
2304df62
AD
1019#$i_dirent I_DIRENT /**/
1020#$d_dirnamlen DIRNAMLEN /**/
a0d0e21e
LW
1021#define Direntry_t $direntrytype
1022
1023/* I_DLFCN:
1024 * This symbol, if defined, indicates that <dlfcn.h> exists and should
1025 * be included.
1026 */
1027#$i_dlfcn I_DLFCN /**/
1c3d792e 1028
2304df62 1029/* I_FCNTL:
fe14fcc3 1030 * This manifest constant tells the C program to include <fcntl.h>.
a687059c 1031 */
2304df62 1032#$i_fcntl I_FCNTL /**/
a687059c 1033
a0d0e21e
LW
1034/* I_FLOAT:
1035 * This symbol, if defined, indicates to the C program that it should
1036 * include <float.h> to get definition of symbols like DBL_MAX or
1037 * DBL_MIN, i.e. machine dependent floating point values.
a687059c 1038 */
a0d0e21e 1039#$i_float I_FLOAT /**/
a687059c 1040
2304df62 1041/* I_GRP:
a687059c 1042 * This symbol, if defined, indicates to the C program that it should
2304df62 1043 * include <grp.h>.
a687059c 1044 */
2304df62 1045#$i_grp I_GRP /**/
a687059c 1046
a0d0e21e
LW
1047/* I_LIMITS:
1048 * This symbol, if defined, indicates to the C program that it should
1049 * include <limits.h> to get definition of symbols like WORD_BIT or
1050 * LONG_MAX, i.e. machine dependant limitations.
1051 */
1052#$i_limits I_LIMITS /**/
1053
1054/* I_MATH:
1055 * This symbol, if defined, indicates to the C program that it should
1056 * include <math.h>.
1057 */
1058#$i_math I_MATH /**/
1059
1060/* I_MEMORY:
1061 * This symbol, if defined, indicates to the C program that it should
1062 * include <memory.h>.
1063 */
1064#$i_memory I_MEMORY /**/
1065
232e078e 1066/* I_NDBM:
16d20bd9 1067 * This symbol, if defined, indicates that <ndbm.h> exists and should
232e078e
AD
1068 * be included.
1069 */
1070#$i_ndbm I_NDBM /**/
1071
ecfc5424
AD
1072/* I_NET_ERRNO:
1073 * This symbol, if defined, indicates that <net/errno.h> exists and
1074 * should be included.
2304df62 1075 */
ecfc5424 1076#$i_neterrno I_NET_ERRNO /**/
2304df62
AD
1077
1078/* I_NETINET_IN:
03a14243 1079 * This symbol, if defined, indicates to the C program that it should
2304df62 1080 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
03a14243 1081 */
2304df62 1082#$i_niin I_NETINET_IN /**/
03a14243 1083
a0d0e21e
LW
1084/* I_PWD:
1085 * This symbol, if defined, indicates to the C program that it should
1086 * include <pwd.h>.
a687059c 1087 */
a0d0e21e
LW
1088/* PWQUOTA:
1089 * This symbol, if defined, indicates to the C program that struct passwd
1090 * contains pw_quota.
1091 */
1092/* PWAGE:
1093 * This symbol, if defined, indicates to the C program that struct passwd
1094 * contains pw_age.
1095 */
1096/* PWCHANGE:
1097 * This symbol, if defined, indicates to the C program that struct passwd
1098 * contains pw_change.
1099 */
1100/* PWCLASS:
1101 * This symbol, if defined, indicates to the C program that struct passwd
1102 * contains pw_class.
1103 */
1104/* PWEXPIRE:
1105 * This symbol, if defined, indicates to the C program that struct passwd
1106 * contains pw_expire.
1107 */
1108/* PWCOMMENT:
1109 * This symbol, if defined, indicates to the C program that struct passwd
1110 * contains pw_comment.
1111 */
1112#$i_pwd I_PWD /**/
1113#$d_pwquota PWQUOTA /**/
1114#$d_pwage PWAGE /**/
1115#$d_pwchange PWCHANGE /**/
1116#$d_pwclass PWCLASS /**/
1117#$d_pwexpire PWEXPIRE /**/
1118#$d_pwcomment PWCOMMENT /**/
a687059c 1119
2304df62
AD
1120/* I_STDDEF:
1121 * This symbol, if defined, indicates that <stddef.h> exists and should
a687059c
LW
1122 * be included.
1123 */
2304df62 1124#$i_stddef I_STDDEF /**/
a687059c 1125
a0d0e21e
LW
1126/* I_STDLIB:
1127 * This symbol, if defined, indicates that <stdlib.h> exists and should
1128 * be included.
1129 */
1130#$i_stdlib I_STDLIB /**/
1131
1132/* I_STRING:
85e6fe83
LW
1133 * This symbol, if defined, indicates to the C program that it should
1134 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
1135 */
1136#$i_string I_STRING /**/
1137
2304df62
AD
1138/* I_SYS_DIR:
1139 * This symbol, if defined, indicates to the C program that it should
1140 * include <sys/dir.h>.
d8f2e4cc 1141 */
2304df62
AD
1142#$i_sysdir I_SYS_DIR /**/
1143
1144/* I_SYS_FILE:
1145 * This symbol, if defined, indicates to the C program that it should
1146 * include <sys/file.h> to get definition of R_OK and friends.
d8f2e4cc 1147 */
2304df62
AD
1148#$i_sysfile I_SYS_FILE /**/
1149
1150/* I_SYS_IOCTL:
1151 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
1152 * be included. Otherwise, include <sgtty.h> or <termio.h>.
d8f2e4cc 1153 */
2304df62
AD
1154#$i_sysioctl I_SYS_IOCTL /**/
1155
1156/* I_SYS_NDIR:
1157 * This symbol, if defined, indicates to the C program that it should
1158 * include <sys/ndir.h>.
1159 */
1160#$i_sysndir I_SYS_NDIR /**/
1161
a0d0e21e
LW
1162/* I_SYS_PARAM:
1163 * This symbol, if defined, indicates to the C program that it should
1164 * include <sys/param.h>.
1165 */
1166#$i_sysparam I_SYS_PARAM /**/
1167
e876cf0b
PP
1168/* I_SYS_RESOURCE:
1169 * This symbol, if defined, indicates to the C program that it should
1170 * include <sys/resource.h>.
1171 */
1172#$i_sysresrc I_SYS_RESOURCE /**/
1173
2304df62
AD
1174/* I_SYS_SELECT:
1175 * This symbol, if defined, indicates to the C program that it should
1176 * include <sys/select.h> in order to get definition of struct timeval.
1177 */
1178#$i_sysselct I_SYS_SELECT /**/
1179
a0d0e21e
LW
1180/* I_SYS_TIMES:
1181 * This symbol, if defined, indicates to the C program that it should
1182 * include <sys/times.h>.
1183 */
1184#$i_systimes I_SYS_TIMES /**/
1185
fed7345c
AD
1186/* I_SYS_TYPES:
1187 * This symbol, if defined, indicates to the C program that it should
1188 * include <sys/types.h>.
1189 */
1190#$i_systypes I_SYS_TYPES /**/
1191
25f94b33
AD
1192/* I_SYS_UN:
1193 * This symbol, if defined, indicates to the C program that it should
1194 * include <sys/un.h> to get UNIX domain socket definitions.
1195 */
1196#$i_sysun I_SYS_UN /**/
1197
e876cf0b
PP
1198/* I_SYS_WAIT:
1199 * This symbol, if defined, indicates to the C program that it should
1200 * include <sys/wait.h>.
1201 */
1202#$i_syswait I_SYS_WAIT /**/
1203
a0d0e21e
LW
1204/* I_TERMIO:
1205 * This symbol, if defined, indicates that the program should include
1206 * <termio.h> rather than <sgtty.h>. There are also differences in
1207 * the ioctl() calls that depend on the value of this symbol.
1208 */
1209/* I_TERMIOS:
1210 * This symbol, if defined, indicates that the program should include
1211 * the POSIX termios.h rather than sgtty.h or termio.h.
1212 * There are also differences in the ioctl() calls that depend on the
1213 * value of this symbol.
1214 */
1215/* I_SGTTY:
1216 * This symbol, if defined, indicates that the program should include
1217 * <sgtty.h> rather than <termio.h>. There are also differences in
1218 * the ioctl() calls that depend on the value of this symbol.
1219 */
1220#$i_termio I_TERMIO /**/
1221#$i_termios I_TERMIOS /**/
1222#$i_sgtty I_SGTTY /**/
1223
2304df62
AD
1224/* I_TIME:
1225 * This symbol, if defined, indicates to the C program that it should
1226 * include <time.h>.
1227 */
1228/* I_SYS_TIME:
1229 * This symbol, if defined, indicates to the C program that it should
1230 * include <sys/time.h>.
fe14fcc3 1231 */
85e6fe83
LW
1232/* I_SYS_TIME_KERNEL:
1233 * This symbol, if defined, indicates to the C program that it should
1234 * include <sys/time.h> with KERNEL defined.
1235 */
2304df62
AD
1236#$i_time I_TIME /**/
1237#$i_systime I_SYS_TIME /**/
85e6fe83
LW
1238#$i_systimek I_SYS_TIME_KERNEL /**/
1239
1240/* I_UNISTD:
1241 * This symbol, if defined, indicates to the C program that it should
1242 * include <unistd.h>.
1243 */
1244#$i_unistd I_UNISTD /**/
d8f2e4cc 1245
2304df62 1246/* I_UTIME:
d8f2e4cc 1247 * This symbol, if defined, indicates to the C program that it should
2304df62 1248 * include <utime.h>.
d8f2e4cc 1249 */
2304df62 1250#$i_utime I_UTIME /**/
d8f2e4cc 1251
e876cf0b
PP
1252/* I_STDARG:
1253 * This symbol, if defined, indicates that <stdarg.h> exists and should
1254 * be included.
1255 */
1256/* I_VARARGS:
1257 * This symbol, if defined, indicates to the C program that it should
1258 * include <varargs.h>.
1259 */
1260#$i_stdarg I_STDARG /**/
1261#$i_varargs I_VARARGS /**/
1262
a0d0e21e
LW
1263/* I_VFORK:
1264 * This symbol, if defined, indicates to the C program that it should
1265 * include vfork.h.
1266 */
1267#$i_vfork I_VFORK /**/
a687059c 1268
e876cf0b
PP
1269/* INTSIZE:
1270 * This symbol contains the size of an int, so that the C preprocessor
1271 * can make decisions based on it.
1272 */
1273#define INTSIZE $intsize /**/
1274
85e6fe83
LW
1275/* Off_t:
1276 * This symbol holds the type used to declare offsets in the kernel.
1277 * It can be int, long, off_t, etc... It may be necessary to include
1278 * <sys/types.h> to get any typedef'ed information.
1279 */
1280#define Off_t $lseektype /* <offset> type */
1281
ecfc5424
AD
1282/* Mode_t:
1283 * This symbol holds the type used to declare file modes
1284 * for systems calls. It is usually mode_t, but may be
1285 * int or unsigned short. It may be necessary to include <sys/types.h>
1286 * to get any typedef'ed information.
1287 */
1288#define Mode_t $modetype /* file mode parameter for system calls */
1289
a0d0e21e
LW
1290/* CAN_PROTOTYPE:
1291 * If defined, this macro indicates that the C compiler can handle
1292 * function prototypes.
85e6fe83 1293 */
a0d0e21e
LW
1294/* _:
1295 * This macro is used to declare function parameters for folks who want
1296 * to make declarations with prototypes using a different style than
1297 * the above macros. Use double parentheses. For example:
1298 *
1299 * int main _((int argc, char *argv[]));
1300 */
1301#$prototype CAN_PROTOTYPE /**/
1302#ifdef CAN_PROTOTYPE
1303#define _(args) args
1304#else
1305#define _(args) ()
1306#endif
85e6fe83 1307
2304df62
AD
1308/* RANDBITS:
1309 * This symbol contains the number of bits of random number the rand()
1310 * function produces. Usual values are 15, 16, and 31.
fe14fcc3 1311 */
2304df62
AD
1312#define RANDBITS $randbits /**/
1313
1314/* SCRIPTDIR:
1315 * This symbol holds the name of the directory in which the user wants
1316 * to put publicly executable scripts for the package in question. It
1317 * is often a directory that is mounted across diverse architectures.
1318 * Programs must be prepared to deal with ~name expansion.
fe14fcc3 1319 */
2304df62
AD
1320#define SCRIPTDIR "$scriptdir" /**/
1321
a0d0e21e
LW
1322/* Select_fd_set_t:
1323 * This symbol holds the type used for the 2nd, 3rd, and 4th
1324 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
1325 * is defined, and 'int *' otherwise. This is only useful if you
1326 * have select(), of course.
1327 */
1328#define Select_fd_set_t $selecttype /**/
1329
a0d0e21e
LW
1330/* Size_t:
1331 * This symbol holds the type used to declare length parameters
1332 * for string functions. It is usually size_t, but may be
1333 * unsigned long, int, etc. It may be necessary to include
1334 * <sys/types.h> to get any typedef'ed information.
1335 */
1336#define Size_t $sizetype /* length paramater for string functions */
1337
2304df62
AD
1338/* STDCHAR:
1339 * This symbol is defined to be the type of char used in stdio.h.
1340 * It has the values "unsigned char" or "char".
fe14fcc3 1341 */
2304df62
AD
1342#define STDCHAR $stdchar /**/
1343
1344/* Uid_t:
1345 * This symbol holds the type used to declare user ids in the kernel.
1346 * It can be int, ushort, uid_t, etc... It may be necessary to include
1347 * <sys/types.h> to get any typedef'ed information.
fe14fcc3 1348 */
2304df62 1349#define Uid_t $uidtype /* UID type */
fe14fcc3 1350
a0d0e21e
LW
1351/* LOC_SED:
1352 * This symbol holds the complete pathname to the sed program.
85e6fe83 1353 */
1aef975c
AD
1354#define LOC_SED "$full_sed" /**/
1355
760ac839
LW
1356/* OSNAME:
1357 * This symbol contains the name of the operating system, as determined
1358 * by Configure. You shouldn't rely on it too much; the specific
1359 * feature tests from Configure are generally more reliable.
1360 */
1361#define OSNAME "$osname" /**/
1362
e876cf0b
PP
1363/* ARCHLIB:
1364 * This variable, if defined, holds the name of the directory in
1365 * which the user wants to put architecture-dependent public
1366 * library files for $package. It is most often a local directory
1367 * such as /usr/local/lib. Programs using this variable must be
1368 * prepared to deal with filename expansion. If ARCHLIB is the
1369 * same as PRIVLIB, it is not defined, since presumably the
1370 * program already searches PRIVLIB.
1371 */
4633a7c4
LW
1372/* ARCHLIB_EXP:
1373 * This symbol contains the ~name expanded version of ARCHLIB, to be used
1374 * in programs that are not prepared to deal with ~ expansion at run-time.
1375 */
e876cf0b 1376#$d_archlib ARCHLIB "$archlib" /**/
4633a7c4
LW
1377#$d_archlib ARCHLIB_EXP "$archlibexp" /**/
1378
8e07c86e 1379/* BYTEORDER:
e876cf0b 1380 * This symbol holds the hexadecimal constant defined in byteorder,
8e07c86e 1381 * i.e. 0x1234 or 0x4321, etc...
e876cf0b
PP
1382 * On NeXT 4 (and greater), you can build "Fat" Multiple Architecture
1383 * Binaries (MAB) on either big endian or little endian machines.
1384 * The endian-ness is available at compile-time. This only matters
1385 * for perl, where the config.h can be generated and installed on
1386 * one system, and used by a different architecture to build an
1387 * extension. Older versions of NeXT that might not have
1388 * defined either *_ENDIAN__ were all on Motorola 680x0 series,
1389 * so the default case (for NeXT) is big endian to catch them.
1390 * This might matter for NeXT 3.0.
8e07c86e 1391 */
40750cc0 1392#ifndef NeXT
8e07c86e 1393#define BYTEORDER 0x$byteorder /* large digits for MSB */
760ac839
LW
1394#else /* NeXT */
1395#ifdef __LITTLE_ENDIAN__
40750cc0 1396#define BYTEORDER 0x1234
760ac839
LW
1397#else /* __BIG_ENDIAN__ */
1398#define BYTEORDER 0x4321
40750cc0 1399#endif /* ENDIAN CHECK */
760ac839 1400#endif /* NeXT */
8e07c86e 1401
1aef975c
AD
1402/* CSH:
1403 * This symbol, if defined, indicates that the C-shell exists.
1404 * If defined, contains the full pathname of csh.
1405 */
1406#$d_csh CSH "$full_csh" /**/
85e6fe83 1407
a0d0e21e
LW
1408/* DLSYM_NEEDS_UNDERSCORE:
1409 * This symbol, if defined, indicates that we need to prepend an
1410 * underscore to the symbol name before calling dlsym(). This only
1411 * makes sense if you *have* dlsym, which we will presume is the
1412 * case if you're using dl_dlopen.xs.
85e6fe83 1413 */
c1b76f5d 1414#$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/
a0d0e21e 1415
bccf77a5
PP
1416/* SETUID_SCRIPTS_ARE_SECURE_NOW:
1417 * This symbol, if defined, indicates that the bug that prevents
1418 * setuid scripts from being secure is not present in this kernel.
1419 */
1420/* DOSUID:
1421 * This symbol, if defined, indicates that the C program should
1422 * check the script that it is executing for setuid/setgid bits, and
1423 * attempt to emulate setuid/setgid on systems that have disabled
1424 * setuid #! scripts because the kernel can't do it securely.
1425 * It is up to the package designer to make sure that this emulation
1426 * is done securely. Among other things, it should do an fstat on
1427 * the script it just opened to make sure it really is a setuid/setgid
1428 * script, it should make sure the arguments passed correspond exactly
1429 * to the argument on the #! line, and it should not trust any
1430 * subprocesses to which it must pass the filename rather than the
1431 * file descriptor of the script to be executed.
1432 */
1433#$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/
1434#$d_dosuid DOSUID /**/
1435
8e07c86e
AD
1436/* Gconvert:
1437 * This preprocessor macro is defined to convert a floating point
1438 * number to a string without a trailing decimal point. This
1439 * emulates the behavior of sprintf("%g"), but is sometimes much more
1440 * efficient. If gconvert() is not available, but gcvt() drops the
1441 * trailing decimal point, then gcvt() is used. If all else fails,
1442 * a macro using sprintf("%g") is used. Arguments for the Gconvert
1443 * macro are: value, number of digits, whether trailing zeros should
1444 * be retained, and the output buffer.
1445 * Possible values are:
1446 * d_Gconvert='gconvert((x),(n),(t),(b))'
1447 * d_Gconvert='gcvt((x),(n),(b))'
1448 * d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1449 * The last two assume trailing zeros should not be kept.
1450 */
1451#define Gconvert(x,n,t,b) $d_Gconvert
1452
c1b76f5d
PP
1453/* HAS_GETPGID:
1454 * This symbol, if defined, indicates to the C program that
1455 * the getpgid(pid) function is available to get the
1456 * process group id.
1457 */
1458#$d_getpgid HAS_GETPGID /**/
1459
1460/* HAS_GETPGRP:
1461 * This symbol, if defined, indicates that the getpgrp routine is
1462 * available to get the current process group.
1463 */
1464/* USE_BSD_GETPGRP:
1465 * This symbol, if defined, indicates that getpgrp needs one
1466 * arguments whereas USG one needs none.
1467 */
1468#$d_getpgrp HAS_GETPGRP /**/
1469#$d_bsdgetpgrp USE_BSD_GETPGRP /**/
1470
1471/* HAS_SETPGID:
1472 * This symbol, if defined, indicates to the C program that
1473 * the setpgid(pid, gpid) function is available to set the
1474 * process group id.
1475 */
1476#$d_setpgid HAS_SETPGID /**/
1477
1478/* HAS_SETPGRP:
1479 * This symbol, if defined, indicates that the setpgrp routine is
1480 * available to set the current process group.
1481 */
1482/* USE_BSD_SETPGRP:
1483 * This symbol, if defined, indicates that setpgrp needs two
1484 * arguments whereas USG one needs none. See also HAS_SETPGID
1485 * for a POSIX interface.
1486 */
1487/* USE_BSDPGRP:
1488 * This symbol, if defined, indicates that the BSD notion of process
1489 * group is to be used. For instance, you have to say setpgrp(pid, pgrp)
1490 * instead of the USG setpgrp(). This should be obsolete since
1491 * there are systems which have BSD-ish setpgrp but USG-ish getpgrp.
1492 */
1493#$d_setpgrp HAS_SETPGRP /**/
1494#$d_bsdsetpgrp USE_BSD_SETPGRP /**/
1495#$d_bsdpgrp USE_BSDPGRP /**/
1496
760ac839
LW
1497/* USE_SFIO:
1498 * This symbol, if defined, indicates that sfio should
1499 * be used.
1500 */
1501#$d_sfio USE_SFIO /**/
1502
a5f75d66 1503/* Sigjmp_buf:
760ac839 1504 * This is the buffer type to be used with Sigsetjmp and Siglongjmp.
a5f75d66
AD
1505 */
1506/* Sigsetjmp:
760ac839
LW
1507 * This macro is used in the same way as sigsetjmp(), but will invoke
1508 * traditional setjmp() if sigsetjmp isn't available.
1509 * See HAS_SIGSETJMP.
a5f75d66
AD
1510 */
1511/* Siglongjmp:
760ac839
LW
1512 * This macro is used in the same way as siglongjmp(), but will invoke
1513 * traditional longjmp() if siglongjmp isn't available.
1514 * See HAS_SIGSETJMP.
a5f75d66
AD
1515 */
1516#$d_sigsetjmp HAS_SIGSETJMP /**/
1517#ifdef HAS_SIGSETJMP
1518#define Sigjmp_buf sigjmp_buf
760ac839
LW
1519#define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask))
1520#define Siglongjmp(buf,retval) siglongjmp((buf),(retval))
a5f75d66
AD
1521#else
1522#define Sigjmp_buf jmp_buf
760ac839
LW
1523#define Sigsetjmp(buf,save_mask) setjmp((buf))
1524#define Siglongjmp(buf,retval) longjmp((buf),(retval))
a5f75d66
AD
1525#endif
1526
2304df62
AD
1527/* USE_DYNAMIC_LOADING:
1528 * This symbol, if defined, indicates that dynamic loading of
1529 * some sort is available.
a687059c 1530 */
2304df62 1531#$usedl USE_DYNAMIC_LOADING /**/
a687059c 1532
8e07c86e
AD
1533/* I_DBM:
1534 * This symbol, if defined, indicates that <dbm.h> exists and should
1535 * be included.
1536 */
1537/* I_RPCSVC_DBM:
1538 * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
1539 * should be included.
1540 */
1541#$i_dbm I_DBM /**/
1542#$i_rpcsvcdbm I_RPCSVC_DBM /**/
1543
4633a7c4
LW
1544/* I_LOCALE:
1545 * This symbol, if defined, indicates to the C program that it should
1546 * include <locale.h>.
1547 */
1548#$i_locale I_LOCALE /**/
1549
760ac839
LW
1550/* I_SFIO:
1551 * This symbol, if defined, indicates to the C program that it should
1552 * include <sfio.h>.
1553 */
1554#$i_sfio I_SFIO /**/
1555
1aef975c
AD
1556/* I_SYS_STAT:
1557 * This symbol, if defined, indicates to the C program that it should
1558 * include <sys/stat.h>.
1559 */
1560#$i_sysstat I_SYS_STAT /**/
1561
e876cf0b 1562/* I_VALUES:
bccf77a5 1563 * This symbol, if defined, indicates to the C program that it should
e876cf0b
PP
1564 * include <values.h> to get definition of symbols like MINFLOAT or
1565 * MAXLONG, i.e. machine dependant limitations. Probably, you
1566 * should use <limits.h> instead, if it is available.
bccf77a5 1567 */
e876cf0b 1568#$i_values I_VALUES /**/
8e07c86e 1569
94b6baf5
AD
1570/* Free_t:
1571 * This variable contains the return type of free(). It is usually
1572 * void, but occasionally int.
1573 */
2304df62
AD
1574/* Malloc_t:
1575 * This symbol is the type of pointer returned by malloc and realloc.
36ce8bec 1576 */
2304df62 1577#define Malloc_t $malloctype /**/
94b6baf5 1578#define Free_t $freetype /**/
36ce8bec 1579
85e6fe83
LW
1580/* MYMALLOC:
1581 * This symbol, if defined, indicates that we're using our own malloc.
1582 */
1583#$d_mymalloc MYMALLOC /**/
1584
bccf77a5
PP
1585/* VAL_O_NONBLOCK:
1586 * This symbol is to be used during open() or fcntl(F_SETFL) to turn on
1587 * non-blocking I/O for the file descriptor. Note that there is no way
1588 * back, i.e. you cannot turn it blocking again this way. If you wish to
1589 * alternatively switch between blocking and non-blocking, use the
1590 * ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
1591 */
1592/* VAL_EAGAIN:
1593 * This symbol holds the errno error code set by read() when no data was
1594 * present on the non-blocking file descriptor.
1595 */
1596/* RD_NODATA:
1597 * This symbol holds the return code from read() when no data is present
1598 * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
1599 * not defined, then you can't distinguish between no data and EOF by
1600 * issuing a read(). You'll have to find another way to tell for sure!
1601 */
1602/* EOF_NONBLOCK:
1603 * This symbol, if defined, indicates to the C program that a read() on
1604 * a non-blocking file descriptor will return 0 on EOF, and not the value
1605 * held in RD_NODATA (-1 usually, in that case!).
1606 */
1607#define VAL_O_NONBLOCK $o_nonblock
1608#define VAL_EAGAIN $eagain
1609#define RD_NODATA $rd_nodata
1610#$d_eofnblk EOF_NONBLOCK
1611
e876cf0b
PP
1612/* OLDARCHLIB:
1613 * This variable, if defined, holds the name of the directory in
1614 * which the user has perl5.000 or perl5.001 architecture-dependent
1615 * public library files for $package. For the most part, these
1616 * files will work with 5.002 (and later), but that is not
1617 * guaranteed.
1618 */
4633a7c4
LW
1619/* OLDARCHLIB_EXP:
1620 * This symbol contains the ~name expanded version of OLDARCHLIB, to be
1621 * used in programs that are not prepared to deal with ~ expansion at
1622 * run-time.
1623 */
e876cf0b 1624#$d_oldarchlib OLDARCHLIB "$oldarchlib" /**/
4633a7c4
LW
1625#$d_oldarchlib OLDARCHLIB_EXP "$oldarchlibexp" /**/
1626
e876cf0b
PP
1627/* PRIVLIB:
1628 * This symbol contains the name of the private library for this package.
1629 * The library is private in the sense that it needn't be in anyone's
1630 * execution path, but it should be accessible by the world. The program
1631 * should be prepared to do ~ expansion.
1632 */
4633a7c4
LW
1633/* PRIVLIB_EXP:
1634 * This symbol contains the ~name expanded version of PRIVLIB, to be used
1635 * in programs that are not prepared to deal with ~ expansion at run-time.
1636 */
e876cf0b 1637#define PRIVLIB "$privlib" /**/
4633a7c4
LW
1638#define PRIVLIB_EXP "$privlibexp" /**/
1639
e876cf0b
PP
1640/* SH_PATH:
1641 * This symbol contains the full pathname to the shell used on this
1642 * on this system to execute Bourne shell scripts. Usually, this will be
1643 * /bin/sh, though it's possible that some systems will have /bin/ksh,
6c509264
PP
1644 * /bin/pdksh, /bin/ash, /bin/bash, or even something such as
1645 * D:/bin/sh.exe.
e876cf0b
PP
1646 */
1647#define SH_PATH "$sh" /**/
1648
8e07c86e 1649/* SIG_NAME:
4633a7c4
LW
1650 * This symbol contains a list of signal names in order of
1651 * signal number. This is intended
8e07c86e
AD
1652 * to be used as a static array initialization, like this:
1653 * char *sig_name[] = { SIG_NAME };
1654 * The signals in the list are separated with commas, and each signal
1655 * is surrounded by double quotes. There is no leading SIG in the signal
4633a7c4
LW
1656 * name, i.e. SIGQUIT is known as "QUIT".
1657 * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
1658 * etc., where nn is the actual signal number (e.g. NUM37).
8e07c86e
AD
1659 * The signal number for sig_name[i] is stored in sig_num[i].
1660 * The last element is 0 to terminate the list with a NULL. This
1661 * corresponds to the 0 at the end of the sig_num list.
8e07c86e 1662 */
8e07c86e 1663/* SIG_NUM:
4633a7c4 1664 * This symbol contains a list of signal numbers, in the same order as the
8e07c86e
AD
1665 * SIG_NAME list. It is suitable for static array initialization, as in:
1666 * int sig_num[] = { SIG_NUM };
1667 * The signals in the list are separated with commas, and the indices
1668 * within that list and the SIG_NAME list match, so it's easy to compute
1669 * the signal name from a number or vice versa at the price of a small
4633a7c4
LW
1670 * dynamic linear lookup.
1671 * Duplicates are allowed, but are moved to the end of the list.
1672 * The signal number corresponding to sig_name[i] is sig_number[i].
1673 * if (i < NSIG) then sig_number[i] == i.
1674 * The last element is 0, corresponding to the 0 at the end of
1675 * the sig_name list.
8e07c86e 1676 */
4633a7c4 1677#define SIG_NAME "`echo $sig_name | sed 's/ /","/g'`",0 /**/
8e07c86e
AD
1678#define SIG_NUM `echo $sig_num 0 | sed 's/ /,/g'` /**/
1679
e876cf0b
PP
1680/* SITEARCH:
1681 * This symbol contains the name of the private library for this package.
1682 * The library is private in the sense that it needn't be in anyone's
1683 * execution path, but it should be accessible by the world. The program
1684 * should be prepared to do ~ expansion.
1685 * The standard distribution will put nothing in this directory.
1686 * Individual sites may place their own extensions and modules in
1687 * this directory.
1688 */
4633a7c4
LW
1689/* SITEARCH_EXP:
1690 * This symbol contains the ~name expanded version of SITEARCH, to be used
16d20bd9
AD
1691 * in programs that are not prepared to deal with ~ expansion at run-time.
1692 */
e876cf0b 1693#define SITEARCH "$sitearch" /**/
4633a7c4 1694#define SITEARCH_EXP "$sitearchexp" /**/
16d20bd9 1695
e876cf0b
PP
1696/* SITELIB:
1697 * This symbol contains the name of the private library for this package.
1698 * The library is private in the sense that it needn't be in anyone's
1699 * execution path, but it should be accessible by the world. The program
1700 * should be prepared to do ~ expansion.
1701 * The standard distribution will put nothing in this directory.
1702 * Individual sites may place their own extensions and modules in
1703 * this directory.
1704 */
25f94b33
AD
1705/* SITELIB_EXP:
1706 * This symbol contains the ~name expanded version of SITELIB, to be used
1707 * in programs that are not prepared to deal with ~ expansion at run-time.
1708 */
e876cf0b 1709#define SITELIB "$sitelib" /**/
25f94b33
AD
1710#define SITELIB_EXP "$sitelibexp" /**/
1711
760ac839
LW
1712/* SSize_t:
1713 * This symbol holds the type used by functions that return
1714 * a count of bytes or an error condition. It must be a signed type.
1715 * It is usually ssize_t, but may be long or int, etc.
1716 * It may be necessary to include <sys/types.h> or <unistd.h>
1717 * to get any typedef'ed information.
1718 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
1719 */
1720#define SSize_t $ssizetype /* signed count of bytes */
1721
568ef1f6
PP
1722/* STARTPERL:
1723 * This variable contains the string to put in front of a perl
1724 * script to make sure (one hopes) that it runs with perl and not
1725 * some shell.
1726 */
1727#define STARTPERL "$startperl" /**/
1728
e876cf0b
PP
1729/* USE_PERLIO:
1730 * This symbol, if defined, indicates that the PerlIO abstraction should
1731 * be used throughout. If not defined, stdio should be
1732 * used in a fully backward compatible manner.
1733 */
1734#$useperlio USE_PERLIO /**/
1735
8e07c86e
AD
1736/* VOIDFLAGS:
1737 * This symbol indicates how much support of the void type is given by this
1738 * compiler. What various bits mean:
1739 *
1740 * 1 = supports declaration of void
1741 * 2 = supports arrays of pointers to functions returning void
1742 * 4 = supports comparisons between pointers to void functions and
1743 * addresses of void functions
1744 * 8 = suports declaration of generic void pointers
1745 *
1746 * The package designer should define VOIDUSED to indicate the requirements
1747 * of the package. This can be done either by #defining VOIDUSED before
1748 * including config.h, or by defining defvoidused in Myinit.U. If the
1749 * latter approach is taken, only those flags will be tested. If the
1750 * level of void support necessary is not present, defines void to int.
1751 */
1752#ifndef VOIDUSED
1753#define VOIDUSED $defvoidused
1754#endif
1755#define VOIDFLAGS $voidflags
1756#if (VOIDFLAGS & VOIDUSED) != VOIDUSED
1757#define void int /* is void to be avoided? */
1758#define M_VOID /* Xenix strikes again */
1759#endif
1760
fe14fcc3 1761#endif
8d063cd8 1762!GROK!THIS!