This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5.000 patch.0i: fix glaring mistakes in patches a-h
[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)"
2304df62
AD
18sed <<!GROK!THIS! >config.h -e 's!^#undef!/\*#define!' -e 's!^#un-def!#undef!'
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,
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 *
ecfc5424 28 * \$Id: Config_h.U,v 3.0.1.2 1993/08/24 12:13:20 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
ecfc5424
AD
45/* ARCHLIB:
46 * This variable, if defined, holds the name of the directory in
47 * which the user wants to put architecture-dependent public
48 * library files for $package. It is most often a local directory
49 * such as /usr/local/lib. Programs using this variable must be
50 * prepared to deal with filename expansion. If ARCHLIB is the
51 * same as PRIVLIB, it is not defined, since presumably the
52 * program already searches PRIVLIB.
53 */
54#$d_archlib ARCHLIB "$archlib" /**/
55
2304df62
AD
56/* BIN:
57 * This symbol holds the path of the bin directory where the package will
58 * be installed. Program must be prepared to deal with ~name substitution.
a687059c 59 */
2304df62 60#define BIN "$bin" /**/
a687059c 61
2304df62
AD
62/* BYTEORDER:
63 * This symbol hold the hexadecimal constant defined in byteorder,
64 * i.e. 0x1234 or 0x4321, etc...
a687059c 65 */
2304df62 66#define BYTEORDER 0x$byteorder /* large digits for MSB */
a687059c 67
ecfc5424
AD
68/* CAT2:
69 * This macro catenates 2 tokens together.
70 */
71/* STRINGIFY:
72 * This macro surrounds its token with double quotes.
73 */
74#if $cpp_stuff == 1
75#define CAT2(a,b)a/**/b
76#define CAT3(a,b,c)a/**/b/**/c
77#define CAT4(a,b,c,d)a/**/b/**/c/**/d
78#define CAT5(a,b,c,d,e)a/**/b/**/c/**/d/**/e
79#define STRINGIFY(a)"a"
80 /* If you can get stringification with catify, tell me how! */
81#endif
82#if $cpp_stuff == 42
83#define CAT2(a,b)a ## b
84#define CAT3(a,b,c)a ## b ## c
85#define CAT4(a,b,c,d)a ## b ## c ## d
86#define CAT5(a,b,c,d,e)a ## b ## c ## d ## e
87#define StGiFy(a)# a
88#define STRINGIFY(a)StGiFy(a)
89#define SCAT2(a,b)StGiFy(a) StGiFy(b)
90#define SCAT3(a,b,c)StGiFy(a) StGiFy(b) StGiFy(c)
91#define SCAT4(a,b,c,d)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d)
92#define SCAT5(a,b,c,d,e)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d) StGiFy(e)
93#endif
94#ifndef CAT2
95#include "Bletch: How does this C preprocessor catenate tokens?"
96#endif
97
2304df62 98/* CPPSTDIN:
36ce8bec
DF
99 * This symbol contains the first part of the string which will invoke
100 * the C preprocessor on the standard input and produce to standard
2304df62
AD
101 * output. Typical value of "cc -E" or "/lib/cpp", but it can also
102 * call a wrapper. See CPPRUN.
36ce8bec 103 */
2304df62 104/* CPPMINUS:
36ce8bec
DF
105 * This symbol contains the second part of the string which will invoke
106 * the C preprocessor on the standard input and produce to standard
378cc40b 107 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
36ce8bec
DF
108 * to specify standard input, otherwise the value is "".
109 */
378cc40b 110#define CPPSTDIN "$cppstdin"
36ce8bec
DF
111#define CPPMINUS "$cppminus"
112
a0d0e21e
LW
113/* HAS_ALARM:
114 * This symbol, if defined, indicates that the alarm routine is
115 * available.
116 */
117#$d_alarm HAS_ALARM /**/
118
ecfc5424
AD
119/* HASATTRIBUTE:
120 * This symbol indicates the C compiler can check for function attributes,
121 * such as printf formats. This is normally only supported by GNU cc.
122 */
123#$d_attribut HASATTRIBUTE /**/
124#ifndef HASATTRIBUTE
125#define __attribute__(_arg_)
126#endif
127
2304df62
AD
128/* HAS_BCMP:
129 * This symbol is defined if the bcmp() routine is available to
130 * compare blocks of memory.
a687059c 131 */
2304df62 132#$d_bcmp HAS_BCMP /**/
a687059c 133
2304df62
AD
134/* HAS_BCOPY:
135 * This symbol is defined if the bcopy() routine is available to
136 * copy blocks of memory.
c51b80d1 137 */
2304df62 138#$d_bcopy HAS_BCOPY /**/
c51b80d1 139
2304df62
AD
140/* HAS_BZERO:
141 * This symbol is defined if the bzero() routine is available to
142 * set a memory block to 0.
0d3e774c 143 */
2304df62 144#$d_bzero HAS_BZERO /**/
0d3e774c 145
a0d0e21e
LW
146/* CASTI32:
147 * This symbol is defined if the C compiler can cast negative
148 * or large floating point numbers to 32-bit ints.
149 */
150#$d_casti32 CASTI32 /**/
151
2304df62
AD
152/* CASTNEGFLOAT:
153 * This symbol is defined if the C compiler can cast negative
154 * numbers to unsigned longs, ints and shorts.
b1248f16 155 */
2304df62 156/* CASTFLAGS:
7e1cf235
LW
157 * This symbol contains flags that say what difficulties the compiler
158 * has casting odd floating values to unsigned long:
2304df62 159 * 0 = ok
7e1cf235
LW
160 * 1 = couldn't cast < 0
161 * 2 = couldn't cast >= 0x80000000
162 */
2304df62
AD
163#$d_castneg CASTNEGFLOAT /**/
164#define CASTFLAGS $castflags /**/
ed6116ce 165
a0d0e21e
LW
166/* HAS_CHOWN:
167 * This symbol, if defined, indicates that the chown routine is
168 * available.
169 */
170#$d_chown HAS_CHOWN /**/
171
172/* HAS_CHROOT:
173 * This symbol, if defined, indicates that the chroot routine is
174 * available.
175 */
176#$d_chroot HAS_CHROOT /**/
177
2304df62 178/* HAS_CHSIZE:
87250799
LW
179 * This symbol, if defined, indicates that the chsize routine is available
180 * to truncate files. You might need a -lx to get this routine.
181 */
fe14fcc3 182#$d_chsize HAS_CHSIZE /**/
87250799 183
ecfc5424
AD
184/* VOID_CLOSEDIR:
185 * This symbol, if defined, indicates that the closedir() routine
186 * does not return a value.
187 */
188#$d_void_closedir VOID_CLOSEDIR /**/
189
2304df62
AD
190/* HASCONST:
191 * This symbol, if defined, indicates that this C compiler knows about
192 * the const type. There is no need to actually test for that symbol
193 * within your programs. The mere use of the "const" keyword will
194 * trigger the necessary tests.
195 */
196#$d_const HASCONST /**/
197#ifndef HASCONST
198#define const
199#endif
200
201/* HAS_CRYPT:
2e1b3b7e
KK
202 * This symbol, if defined, indicates that the crypt routine is available
203 * to encrypt passwords and the like.
204 */
2304df62 205#$d_crypt HAS_CRYPT /**/
2e1b3b7e 206
2304df62 207/* CSH:
bf38876a
LW
208 * This symbol, if defined, indicates that the C-shell exists.
209 * If defined, contains the full pathname of csh.
210 */
211#$d_csh CSH "$csh" /**/
212
a0d0e21e
LW
213/* HAS_CUSERID:
214 * This symbol, if defined, indicates that the cuserid routine is
215 * available to get character login names.
13281fa4 216 */
a0d0e21e
LW
217#$d_cuserid HAS_CUSERID /**/
218
219/* HAS_DBL_DIG:
220 * This symbol, if defined, indicates that this system's <float.h>
221 * or <limits.h> defines the symbol DBL_DIG, which is the number
222 * of significant digits in a double precision number. If this
223 * symbol is not defined, a guess of 15 is usually pretty good.
224 */
225#$d_dbl_dig HAS_DBL_DIG /* */
226
227/* HAS_DIFFTIME:
228 * This symbol, if defined, indicates that the difftime routine is
229 * available.
230 */
231#$d_difftime HAS_DIFFTIME /**/
13281fa4 232
ecfc5424
AD
233/* HAS_DLERROR:
234 * This symbol, if defined, indicates that the dlerror routine is
235 * available to return a string describing the last error that
236 * occurred from a call to dlopen(), dlclose() or dlsym().
237 */
238#$d_dlerror HAS_DLERROR /**/
239
240/* SETUID_SCRIPTS_ARE_SECURE_NOW:
241 * This symbol, if defined, indicates that the bug that prevents
242 * setuid scripts from being secure is not present in this kernel.
243 */
244/* DOSUID:
245 * This symbol, if defined, indicates that the C program should
246 * check the script that it is executing for setuid/setgid bits, and
247 * attempt to emulate setuid/setgid on systems that have disabled
248 * setuid #! scripts because the kernel can't do it securely.
249 * It is up to the package designer to make sure that this emulation
250 * is done securely. Among other things, it should do an fstat on
251 * the script it just opened to make sure it really is a setuid/setgid
252 * script, it should make sure the arguments passed correspond exactly
253 * to the argument on the #! line, and it should not trust any
254 * subprocesses to which it must pass the filename rather than the
255 * file descriptor of the script to be executed.
256 */
257#$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/
258#$d_dosuid DOSUID /**/
259
260/* HAS_DREM:
261 * This symbol, if defined, indicates that the drem routine is
262 * available. This routine is roughly the same as fmod, i.e. it
263 * computes the remainder r=x-n*y, where n=rint(x/y), whereas fmod
264 * uses n=trunc(x/y).
265 */
266#$d_drem HAS_DREM /**/
267
2304df62
AD
268/* HAS_DUP2:
269 * This symbol, if defined, indicates that the dup2 routine is
270 * available to duplicate file descriptors.
a687059c 271 */
2304df62 272#$d_dup2 HAS_DUP2 /**/
a687059c 273
2304df62 274/* HAS_FCHMOD:
378cc40b
LW
275 * This symbol, if defined, indicates that the fchmod routine is available
276 * to change mode of opened files. If unavailable, use chmod().
277 */
2304df62 278#$d_fchmod HAS_FCHMOD /**/
378cc40b 279
2304df62 280/* HAS_FCHOWN:
378cc40b
LW
281 * This symbol, if defined, indicates that the fchown routine is available
282 * to change ownership of opened files. If unavailable, use chown().
283 */
2304df62 284#$d_fchown HAS_FCHOWN /**/
378cc40b 285
2304df62 286/* HAS_FCNTL:
fe14fcc3
LW
287 * This symbol, if defined, indicates to the C program that
288 * the fcntl() function exists.
a687059c 289 */
2304df62 290#$d_fcntl HAS_FCNTL /**/
a687059c 291
a0d0e21e
LW
292/* HAS_FGETPOS:
293 * This symbol, if defined, indicates that the fgetpos routine is
294 * available to get the file position indicator, similar to ftell().
295 */
296#$d_fgetpos HAS_FGETPOS /**/
297
2304df62 298/* FLEXFILENAMES:
7e1cf235
LW
299 * This symbol, if defined, indicates that the system supports filenames
300 * longer than 14 characters.
301 */
302#$d_flexfnam FLEXFILENAMES /**/
303
2304df62
AD
304/* HAS_FLOCK:
305 * This symbol, if defined, indicates that the flock routine is
a687059c
LW
306 * available to do file locking.
307 */
2304df62 308#$d_flock HAS_FLOCK /**/
a687059c 309
ecfc5424
AD
310/* HAS_FMOD:
311 * This symbol, if defined, indicates that the fmod routine is
312 * available to compute the remainder r=x-n*y where n=trunc(x/y).
313 */
314#$d_fmod HAS_FMOD /**/
315
a0d0e21e
LW
316/* HAS_FORK:
317 * This symbol, if defined, indicates that the fork routine is
318 * available.
319 */
320#$d_fork HAS_FORK /**/
321
322/* HAS_FSETPOS:
323 * This symbol, if defined, indicates that the fsetpos routine is
324 * available to set the file position indicator, similar to fseek().
325 */
326#$d_fsetpos HAS_FSETPOS /**/
327
ecfc5424
AD
328/* Gconvert:
329 * This preprocessor macro is defined to convert a floating point
330 * number to a string without a trailing decimal point. This
331 * emulates the behavior of sprintf("%g"), but is sometimes much more
332 * efficient. If gconvert() is not available, but gcvt() drops the
333 * trailing decimal point, then gcvt() is used. If all else fails,
334 * a macro using sprintf("%g") is used. Arguments for the Gconvert
335 * macro are: value, number of digits, whether trailing zeros should
336 * be retained, and the output buffer.
337 */
338#define Gconvert(x,n,t,b) $d_Gconvert
339
2304df62 340/* HAS_GETGROUPS:
378cc40b
LW
341 * This symbol, if defined, indicates that the getgroups() routine is
342 * available to get the list of process groups. If unavailable, multiple
343 * groups are probably not supported.
344 */
2304df62 345#$d_getgrps HAS_GETGROUPS /**/
378cc40b 346
2304df62
AD
347/* HAS_GETHOSTENT:
348 * This symbol, if defined, indicates that the gethostent routine is
a687059c
LW
349 * available to lookup host names in some data base or other.
350 */
2304df62
AD
351#$d_gethent HAS_GETHOSTENT /**/
352
353/* HAS_UNAME:
354 * This symbol, if defined, indicates that the C program may use the
355 * uname() routine to derive the host name. See also HAS_GETHOSTNAME
356 * and PHOSTNAME.
357 */
358#$d_uname HAS_UNAME /**/
a687059c 359
a0d0e21e
LW
360/* HAS_GETLOGIN:
361 * This symbol, if defined, indicates that the getlogin routine is
362 * available to get the login name.
363 */
364#$d_getlogin HAS_GETLOGIN /**/
365
2304df62
AD
366/* HAS_GETPGRP:
367 * This symbol, if defined, indicates that the getpgrp routine is
a687059c
LW
368 * available to get the current process group.
369 */
2304df62 370#$d_getpgrp HAS_GETPGRP /**/
a687059c 371
2304df62 372/* HAS_GETPGRP2:
d8f2e4cc
LW
373 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
374 * routine is available to get the current process group.
375 */
2304df62 376#$d_getpgrp2 HAS_GETPGRP2 /**/
d8f2e4cc 377
a0d0e21e
LW
378/* HAS_GETPPID:
379 * This symbol, if defined, indicates that the getppid routine is
380 * available to get the parent process ID.
381 */
382#$d_getppid HAS_GETPPID /**/
383
2304df62
AD
384/* HAS_GETPRIORITY:
385 * This symbol, if defined, indicates that the getpriority routine is
a687059c
LW
386 * available to get a process's priority.
387 */
2304df62 388#$d_getprior HAS_GETPRIORITY /**/
a687059c 389
a0d0e21e
LW
390/* HAS_GROUP:
391 * This symbol, if defined, indicates that the group routine is
392 * available.
393 */
394#$d_group HAS_GROUP /**/
395
396/* HAS_HTONL:
397 * This symbol, if defined, indicates that the htonl() routine (and
398 * friends htons() ntohl() ntohs()) are available to do network
399 * order byte swapping.
400 */
401/* HAS_HTONS:
402 * This symbol, if defined, indicates that the htons() routine (and
403 * friends htonl() ntohl() ntohs()) are available to do network
404 * order byte swapping.
405 */
406/* HAS_NTOHL:
407 * This symbol, if defined, indicates that the ntohl() routine (and
408 * friends htonl() htons() ntohs()) are available to do network
409 * order byte swapping.
410 */
411/* HAS_NTOHS:
412 * This symbol, if defined, indicates that the ntohs() routine (and
413 * friends htonl() htons() ntohl()) are available to do network
414 * order byte swapping.
415 */
416#$d_htonl HAS_HTONL /**/
417#$d_htonl HAS_HTONS /**/
418#$d_htonl HAS_NTOHL /**/
419#$d_htonl HAS_NTOHS /**/
420
ecfc5424
AD
421/* HAS_ISASCII:
422 * This manifest constant lets the C program know that isascii
423 * is available.
424 */
425#$d_isascii HAS_ISASCII /**/
426
2304df62 427/* HAS_KILLPG:
378cc40b
LW
428 * This symbol, if defined, indicates that the killpg routine is available
429 * to kill process groups. If unavailable, you probably should use kill
430 * with a negative process number.
431 */
2304df62 432#$d_killpg HAS_KILLPG /**/
378cc40b 433
2304df62
AD
434/* HAS_LINK:
435 * This symbol, if defined, indicates that the link routine is
436 * available to create hard links.
0d3e774c 437 */
2304df62 438#$d_link HAS_LINK /**/
0d3e774c 439
ecfc5424
AD
440/* USE_LINUX_STDIO:
441 * This symbol is defined if this system has a FILE structure declaring
442 * _IO_read_base, _IO_read_ptr, and _IO_read_end in stdio.h.
443 */
444#$d_linuxstd USE_LINUX_STDIO /**/
445
446/* HAS_LOCALECONV:
447 * This symbol, if defined, indicates that the localeconv routine is
448 * available for numeric and monetary formatting conventions.
449 */
450#$d_locconv HAS_LOCALECONV /**/
451
a0d0e21e
LW
452/* HAS_LOCKF:
453 * This symbol, if defined, indicates that the lockf routine is
454 * available to do file locking.
455 */
456#$d_lockf HAS_LOCKF /**/
457
2304df62
AD
458/* HAS_LSTAT:
459 * This symbol, if defined, indicates that the lstat routine is
460 * available to do file stats on symbolic links.
a687059c 461 */
2304df62 462#$d_lstat HAS_LSTAT /**/
a687059c 463
a0d0e21e
LW
464/* HAS_MBLEN:
465 * This symbol, if defined, indicates that the mblen routine is available
466 * to find the number of bytes in a multibye character.
467 */
468#$d_mblen HAS_MBLEN /**/
469
470/* HAS_MBSTOWCS:
471 * This symbol, if defined, indicates that the mbstowcs routine is
472 * available to covert a multibyte string into a wide character string.
473 */
474#$d_mbstowcs HAS_MBSTOWCS /**/
475
476/* HAS_MBTOWC:
477 * This symbol, if defined, indicates that the mbtowc routine is available
478 * to covert a multibyte to a wide character.
479 */
480#$d_mbtowc HAS_MBTOWC /**/
481
2304df62
AD
482/* HAS_MEMCMP:
483 * This symbol, if defined, indicates that the memcmp routine is available
484 * to compare blocks of memory.
378cc40b 485 */
2304df62
AD
486#$d_memcmp HAS_MEMCMP /**/
487
488/* HAS_MEMCPY:
9f971974 489 * This symbol, if defined, indicates that the memcpy routine is available
2304df62 490 * to copy blocks of memory.
9f971974 491 */
2304df62 492#$d_memcpy HAS_MEMCPY /**/
9f971974 493
2304df62 494/* HAS_MEMMOVE:
9f971974 495 * This symbol, if defined, indicates that the memmove routine is available
2304df62
AD
496 * to copy potentially overlapping blocks of memory. This should be used
497 * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
498 * own version.
9f971974 499 */
2304df62 500#$d_memmove HAS_MEMMOVE /**/
9f971974 501
2304df62 502/* HAS_MEMSET:
9f971974 503 * This symbol, if defined, indicates that the memset routine is available
2304df62 504 * to set blocks of memory.
9f971974 505 */
2304df62 506#$d_memset HAS_MEMSET /**/
378cc40b 507
2304df62 508/* HAS_MKDIR:
a687059c
LW
509 * This symbol, if defined, indicates that the mkdir routine is available
510 * to create directories. Otherwise you should fork off a new process to
511 * exec /bin/mkdir.
512 */
2304df62 513#$d_mkdir HAS_MKDIR /**/
fe14fcc3 514
ecfc5424
AD
515/* HAS_MKFIFO:
516 * This symbol, if defined, indicates that the mkfifo routine is
517 * available to create FIFOs. Otherwise, mknod should be able to
518 * do it for you. However, if mkfifo is there, mknod might require
519 * super-user privileges which mkfifo will not.
520 */
521#$d_mkfifo HAS_MKFIFO /**/
522
a0d0e21e
LW
523/* HAS_MKTIME:
524 * This symbol, if defined, indicates that the mktime routine is
525 * available.
526 */
527#$d_mktime HAS_MKTIME /**/
528
2304df62 529/* HAS_MSG:
fe14fcc3 530 * This symbol, if defined, indicates that the entire msg*(2) library is
2304df62 531 * supported (IPC mechanism based on message queues).
fe14fcc3 532 */
2304df62 533#$d_msg HAS_MSG /**/
fe14fcc3 534
a0d0e21e
LW
535/* HAS_NICE:
536 * This symbol, if defined, indicates that the nice routine is
537 * available.
fe14fcc3 538 */
a0d0e21e 539#$d_nice HAS_NICE /**/
a687059c 540
a0d0e21e
LW
541/* HAS_OPEN3:
542 * This manifest constant lets the C program know that the three
543 * argument form of open(2) is available.
fe14fcc3 544 */
a0d0e21e 545#$d_open3 HAS_OPEN3 /**/
fe14fcc3 546
a0d0e21e
LW
547/* HAS_PASSWD:
548 * This symbol, if defined, indicates that the passwd routine is
549 * available.
fe14fcc3 550 */
a0d0e21e 551#$d_passwd HAS_PASSWD /**/
fe14fcc3 552
ecfc5424
AD
553/* HAS_PATHCONF:
554 * This symbol, if defined, indicates that pathconf() is available
555 * to determine file-system related limits and options associated
556 * with a given filename.
557 */
558/* HAS_FPATHCONF:
559 * This symbol, if defined, indicates that pathconf() is available
560 * to determine file-system related limits and options associated
561 * with a given open file descriptor.
562 */
563#$d_pathconf HAS_PATHCONF /**/
564#$d_fpathconf HAS_FPATHCONF /**/
565
a0d0e21e
LW
566/* HAS_PAUSE:
567 * This symbol, if defined, indicates that the pause routine is
568 * available to suspend a process until a signal is received.
a687059c 569 */
a0d0e21e 570#$d_pause HAS_PAUSE /**/
a687059c 571
a0d0e21e
LW
572/* HAS_PIPE:
573 * This symbol, if defined, indicates that the pipe routine is
574 * available to create an inter-process channel.
fe14fcc3 575 */
a0d0e21e
LW
576#$d_pipe HAS_PIPE /**/
577
578/* HAS_READDIR:
579 * This symbol, if defined, indicates that the readdir routine is
580 * available to read directory entries. You may have to include
581 * <dirent.h>. See I_DIRENT.
582 */
583#$d_readdir HAS_READDIR /**/
584
585/* HAS_SEEKDIR:
586 * This symbol, if defined, indicates that the seekdir routine is
587 * available. You may have to include <dirent.h>. See I_DIRENT.
588 */
589#$d_seekdir HAS_SEEKDIR /**/
590
591/* HAS_TELLDIR:
592 * This symbol, if defined, indicates that the telldir routine is
593 * available. You may have to include <dirent.h>. See I_DIRENT.
594 */
595#$d_telldir HAS_TELLDIR /**/
596
597/* HAS_REWINDDIR:
598 * This symbol, if defined, indicates that the rewinddir routine is
599 * available. You may have to include <dirent.h>. See I_DIRENT.
600 */
601#$d_rewinddir HAS_REWINDDIR /**/
602
603/* HAS_READLINK:
604 * This symbol, if defined, indicates that the readlink routine is
605 * available to read the value of a symbolic link.
606 */
607#$d_readlink HAS_READLINK /**/
fe14fcc3 608
2304df62 609/* HAS_RENAME:
378cc40b
LW
610 * This symbol, if defined, indicates that the rename routine is available
611 * to rename files. Otherwise you should do the unlink(), link(), unlink()
612 * trick.
613 */
2304df62 614#$d_rename HAS_RENAME /**/
378cc40b 615
2304df62
AD
616/* HAS_RMDIR:
617 * This symbol, if defined, indicates that the rmdir routine is
618 * available to remove directories. Otherwise you should fork off a
619 * new process to exec /bin/rmdir.
9f971974 620 */
2304df62 621#$d_rmdir HAS_RMDIR /**/
9f971974 622
ecfc5424
AD
623/* HAS_SAFE_BCOPY:
624 * This symbol, if defined, indicates that the bcopy routine is available
625 * to copy potentially overlapping memory blocks. Otherwise you should
626 * probably use memmove() or memcpy(). If neither is defined, roll your
627 * own version.
628 */
629#$d_safebcpy HAS_SAFE_BCOPY /**/
630
631/* HAS_SAFE_MEMCPY:
632 * This symbol, if defined, indicates that the memcpy routine is available
633 * to copy potentially overlapping memory blocks. Otherwise you should
634 * probably use memmove() or memcpy(). If neither is defined, roll your
635 * own version.
636 */
637#$d_safemcpy HAS_SAFE_MEMCPY /**/
638
2304df62
AD
639/* HAS_SELECT:
640 * This symbol, if defined, indicates that the select routine is
641 * available to select active file descriptors. If the timeout field
642 * is used, <sys/time.h> may need to be included.
fe14fcc3 643 */
2304df62 644#$d_select HAS_SELECT /**/
a687059c 645
2304df62 646/* HAS_SEM:
fe14fcc3
LW
647 * This symbol, if defined, indicates that the entire sem*(2) library is
648 * supported.
649 */
2304df62 650#$d_sem HAS_SEM /**/
fe14fcc3 651
2304df62 652/* HAS_SETEGID:
378cc40b
LW
653 * This symbol, if defined, indicates that the setegid routine is available
654 * to change the effective gid of the current program.
655 */
2304df62 656#$d_setegid HAS_SETEGID /**/
378cc40b 657
2304df62 658/* HAS_SETEUID:
378cc40b
LW
659 * This symbol, if defined, indicates that the seteuid routine is available
660 * to change the effective uid of the current program.
661 */
2304df62
AD
662#$d_seteuid HAS_SETEUID /**/
663
a0d0e21e
LW
664/* HAS_SETLINEBUF:
665 * This symbol, if defined, indicates that the setlinebuf routine is
666 * available to change stderr or stdout from block-buffered or unbuffered
667 * to a line-buffered mode.
668 */
669#$d_setlinebuf HAS_SETLINEBUF /**/
670
671/* HAS_SETLOCALE:
672 * This symbol, if defined, indicates that the setlocale routine is
673 * available to handle locale-specific ctype implementations.
674 */
675#$d_setlocale HAS_SETLOCALE /**/
676
2304df62
AD
677/* HAS_SETPGID:
678 * This symbol, if defined, indicates that the setpgid routine is
679 * available to set process group ID.
680 */
681#$d_setpgid HAS_SETPGID /**/
378cc40b 682
ecfc5424
AD
683/* HAS_SETPGRP:
684 * This symbol, if defined, indicates that the setpgrp routine is
685 * available to set the current process group.
686 */
687/* USE_BSDPGRP:
688 * This symbol, if defined, indicates that the BSD notion of process
689 * group is to be used. For instance, you have to say setpgrp(pid, pgrp)
690 * instead of the USG setpgrp().
691 */
692#$d_setpgrp HAS_SETPGRP /**/
693#$d_bsdpgrp USE_BSDPGRP /**/
694
2304df62 695/* HAS_SETPGRP2:
d8f2e4cc
LW
696 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
697 * routine is available to set the current process group.
698 */
2304df62 699#$d_setpgrp2 HAS_SETPGRP2 /**/
d8f2e4cc 700
2304df62
AD
701/* HAS_SETPRIORITY:
702 * This symbol, if defined, indicates that the setpriority routine is
a687059c
LW
703 * available to set a process's priority.
704 */
2304df62 705#$d_setprior HAS_SETPRIORITY /**/
a687059c 706
2304df62 707/* HAS_SETREGID:
a687059c 708 * This symbol, if defined, indicates that the setregid routine is
2304df62
AD
709 * available to change the real and effective gid of the current
710 * process.
a687059c 711 */
2304df62 712/* HAS_SETRESGID:
a687059c
LW
713 * This symbol, if defined, indicates that the setresgid routine is
714 * available to change the real, effective and saved gid of the current
2304df62 715 * process.
a687059c 716 */
2304df62
AD
717#$d_setregid HAS_SETREGID /**/
718#$d_setresgid HAS_SETRESGID /**/
a687059c 719
2304df62 720/* HAS_SETREUID:
a687059c 721 * This symbol, if defined, indicates that the setreuid routine is
2304df62
AD
722 * available to change the real and effective uid of the current
723 * process.
a687059c 724 */
2304df62 725/* HAS_SETRESUID:
a687059c
LW
726 * This symbol, if defined, indicates that the setresuid routine is
727 * available to change the real, effective and saved uid of the current
2304df62 728 * process.
a687059c 729 */
2304df62
AD
730#$d_setreuid HAS_SETREUID /**/
731#$d_setresuid HAS_SETRESUID /**/
a687059c 732
2304df62 733/* HAS_SETRGID:
378cc40b
LW
734 * This symbol, if defined, indicates that the setrgid routine is available
735 * to change the real gid of the current program.
736 */
2304df62 737#$d_setrgid HAS_SETRGID /**/
378cc40b 738
2304df62 739/* HAS_SETRUID:
378cc40b
LW
740 * This symbol, if defined, indicates that the setruid routine is available
741 * to change the real uid of the current program.
742 */
2304df62
AD
743#$d_setruid HAS_SETRUID /**/
744
745/* HAS_SETSID:
746 * This symbol, if defined, indicates that the setsid routine is
747 * available to set the process group ID.
748 */
749#$d_setsid HAS_SETSID /**/
fe14fcc3 750
2304df62 751/* HAS_SHM:
fe14fcc3
LW
752 * This symbol, if defined, indicates that the entire shm*(2) library is
753 * supported.
754 */
2304df62 755#$d_shm HAS_SHM /**/
fe14fcc3 756
a0d0e21e
LW
757/* Shmat_t:
758 * This symbol holds the return type of the shmat() system call.
759 * Usually set to 'void *' or 'char *'.
fe14fcc3 760 */
a0d0e21e
LW
761/* HAS_SHMAT_PROTOTYPE:
762 * This symbol, if defined, indicates that the sys/shm.h includes
763 * a prototype for shmat(). Otherwise, it is up to the program to
764 * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
765 * but not always right so it should be emitted by the program only
766 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
fe14fcc3 767 */
a0d0e21e
LW
768#define Shmat_t $shmattype /**/
769#$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/
fe14fcc3 770
2304df62 771/* HAS_SOCKET:
a687059c
LW
772 * This symbol, if defined, indicates that the BSD socket interface is
773 * supported.
774 */
2304df62
AD
775/* HAS_SOCKETPAIR:
776 * This symbol, if defined, indicates that the BSD socketpair() call is
a687059c
LW
777 * supported.
778 */
2304df62
AD
779#$d_socket HAS_SOCKET /**/
780#$d_sockpair HAS_SOCKETPAIR /**/
a687059c 781
2304df62 782/* USE_STAT_BLOCKS:
c51b80d1
LW
783 * This symbol is defined if this system has a stat structure declaring
784 * st_blksize and st_blocks.
785 */
2304df62 786#$d_statblks USE_STAT_BLOCKS /**/
c51b80d1 787
2304df62 788/* USE_STD_STDIO:
36ce8bec
DF
789 * This symbol is defined if this system has a FILE structure declaring
790 * _ptr and _cnt in stdio.h.
791 */
2304df62 792#$d_stdstdio USE_STD_STDIO /**/
36ce8bec 793
a0d0e21e
LW
794/* HAS_STRCHR:
795 * This symbol is defined to indicate that the strchr()/strrchr()
796 * functions are available for string searching. If not, try the
797 * index()/rindex() pair.
798 */
799/* HAS_INDEX:
800 * This symbol is defined to indicate that the index()/rindex()
801 * functions are available for string searching.
802 */
803#$d_strchr HAS_STRCHR /**/
804#$d_index HAS_INDEX /**/
805
806/* HAS_STRCOLL:
807 * This symbol, if defined, indicates that the strcoll routine is
808 * available to compare strings using collating information.
809 */
810#$d_strcoll HAS_STRCOLL /**/
811
2304df62 812/* USE_STRUCT_COPY:
8d063cd8
LW
813 * This symbol, if defined, indicates that this C compiler knows how
814 * to copy structures. If undefined, you'll need to use a block copy
815 * routine of some sort instead.
816 */
2304df62 817#$d_strctcpy USE_STRUCT_COPY /**/
8d063cd8 818
a0d0e21e
LW
819/* HAS_STRERROR:
820 * This symbol, if defined, indicates that the strerror routine is
821 * available to translate error numbers to strings. See the writeup
822 * of Strerror() in this file before you try to define your own.
823 */
824/* HAS_SYS_ERRLIST:
825 * This symbol, if defined, indicates that the sys_errlist array is
826 * available to translate error numbers to strings. The extern int
827 * sys_nerr gives the size of that table.
828 */
829/* Strerror:
830 * This preprocessor symbol is defined as a macro if strerror() is
831 * not available to translate error numbers to strings but sys_errlist[]
832 * array is there.
833 */
834#$d_strerror HAS_STRERROR /**/
835#$d_syserrlst HAS_SYS_ERRLIST /**/
836#define Strerror(e) $d_strerrm
837
838/* HAS_STRXFRM:
839 * This symbol, if defined, indicates that the strxfrm() routine is
840 * available to transform strings.
841 */
842#$d_strxfrm HAS_STRXFRM /**/
843
2304df62 844/* HAS_SYMLINK:
2e1b3b7e
KK
845 * This symbol, if defined, indicates that the symlink routine is available
846 * to create symbolic links.
847 */
2304df62 848#$d_symlink HAS_SYMLINK /**/
2e1b3b7e 849
2304df62
AD
850/* HAS_SYSCALL:
851 * This symbol, if defined, indicates that the syscall routine is
852 * available to call arbitrary system calls. If undefined, that's tough.
a687059c 853 */
2304df62 854#$d_syscall HAS_SYSCALL /**/
e5d73d77 855
ecfc5424
AD
856/* HAS_SYSCONF:
857 * This symbol, if defined, indicates that sysconf() is available
858 * to determine system related limits and options.
859 */
860#$d_sysconf HAS_SYSCONF /**/
861
2304df62
AD
862/* HAS_SYSTEM:
863 * This symbol, if defined, indicates that the system routine is
864 * available to issue a shell command.
9f971974 865 */
2304df62 866#$d_system HAS_SYSTEM /**/
9f971974 867
a0d0e21e
LW
868/* HAS_TCGETPGRP:
869 * This symbol, if defined, indicates that the tcgetpgrp routine is
870 * available to get foreground process group ID.
85e6fe83 871 */
a0d0e21e
LW
872#$d_tcgetpgrp HAS_TCGETPGRP /**/
873
874/* HAS_TCSETPGRP:
875 * This symbol, if defined, indicates that the tcsetpgrp routine is
876 * available to set foreground process group ID.
877 */
878#$d_tcsetpgrp HAS_TCSETPGRP /**/
85e6fe83 879
ecfc5424
AD
880/* Time_t:
881 * This symbol holds the type returned by time(). It can be long,
882 * or time_t on BSD sites (in which case <sys/types.h> should be
883 * included).
884 */
885#define Time_t $timetype /* Time type */
886
2304df62
AD
887/* HAS_TIMES:
888 * This symbol, if defined, indicates that the times() routine exists.
889 * Note that this became obsolete on some systems (SUNOS), which now
890 * use getrusage(). It may be necessary to include <sys/times.h>.
891 */
892#$d_times HAS_TIMES /**/
893
894/* HAS_TRUNCATE:
87250799
LW
895 * This symbol, if defined, indicates that the truncate routine is
896 * available to truncate files.
897 */
2304df62 898#$d_truncate HAS_TRUNCATE /**/
87250799 899
a0d0e21e
LW
900/* HAS_TZNAME:
901 * This symbol, if defined, indicates that the tzname[] array is
902 * available to access timezone names.
903 */
904#$d_tzname HAS_TZNAME /**/
905
906/* HAS_UMASK:
907 * This symbol, if defined, indicates that the umask routine is
908 * available to set and get the value of the file creation mask.
909 */
910#$d_umask HAS_UMASK /**/
911
912/* HAS_VFORK:
913 * This symbol, if defined, indicates that vfork() exists.
2304df62 914 */
a0d0e21e 915#$d_vfork HAS_VFORK /**/
2304df62 916
2304df62
AD
917/* VOIDSIG:
918 * This symbol is defined if this system declares "void (*signal(...))()" in
919 * signal.h. The old way was to declare it as "int (*signal(...))()". It
36ce8bec
DF
920 * is up to the package author to declare things correctly based on the
921 * symbol.
922 */
ecfc5424
AD
923/* Signal_t:
924 * This symbol's value is either "void" or "int", corresponding to the
925 * appropriate return type of a signal handler. Thus, you can declare
926 * a signal handler using "Signal_t (*handler)()", and define the
927 * handler using "Signal_t handler(sig)".
928 */
2304df62 929#$d_voidsig VOIDSIG /**/
ecfc5424 930#define Signal_t $signal_t /* Signal handler's return type */
36ce8bec 931
2304df62 932/* HASVOLATILE:
afd9f252
LW
933 * This symbol, if defined, indicates that this C compiler knows about
934 * the volatile declaration.
935 */
936#$d_volatile HASVOLATILE /**/
2304df62
AD
937#ifndef HASVOLATILE
938#define volatile
939#endif
afd9f252 940
2304df62 941/* HAS_VPRINTF:
a687059c
LW
942 * This symbol, if defined, indicates that the vprintf routine is available
943 * to printf with a pointer to an argument list. If unavailable, you
944 * may need to write your own, probably in terms of _doprnt().
945 */
2304df62 946/* USE_CHAR_VSPRINTF:
a687059c
LW
947 * This symbol is defined if this system has vsprintf() returning type
948 * (char*). The trend seems to be to declare it as "int vsprintf()". It
949 * is up to the package author to declare vsprintf correctly based on the
950 * symbol.
951 */
2304df62
AD
952#$d_vprintf HAS_VPRINTF /**/
953#$d_charvspr USE_CHAR_VSPRINTF /**/
a687059c 954
2304df62 955/* HAS_WAIT4:
bf38876a
LW
956 * This symbol, if defined, indicates that wait4() exists.
957 */
2304df62 958#$d_wait4 HAS_WAIT4 /**/
bf38876a 959
2304df62
AD
960/* HAS_WAITPID:
961 * This symbol, if defined, indicates that the waitpid routine is
962 * available to wait for child process.
39c3038c 963 */
2304df62 964#$d_waitpid HAS_WAITPID /**/
39c3038c 965
a0d0e21e
LW
966/* HAS_WCSTOMBS:
967 * This symbol, if defined, indicates that the wcstombs routine is
968 * available to convert wide character strings to multibyte strings.
969 */
970#$d_wcstombs HAS_WCSTOMBS /**/
971
972/* HAS_WCTOMB:
973 * This symbol, if defined, indicates that the wctomb routine is available
974 * to covert a wide character to a multibyte.
975 */
976#$d_wctomb HAS_WCTOMB /**/
977
978/* Fpos_t:
979 * This symbol holds the type used to declare file positions in libc.
980 * It can be fpos_t, long, uint, etc... It may be necessary to include
981 * <sys/types.h> to get any typedef'ed information.
982 */
983#define Fpos_t $fpostype /* File position type */
984
985/* Gid_t:
986 * This symbol holds the return type of getgid() and the type of
987 * argument to setrgid() and related functions. Typically,
988 * it is the type of group ids in the kernel. It can be int, ushort,
989 * uid_t, etc... It may be necessary to include <sys/types.h> to get
990 * any typedef'ed information.
378cc40b 991 */
a0d0e21e 992#define Gid_t $gidtype /* Type for getgid(), etc... */
378cc40b 993
ecfc5424
AD
994/* Groups_t:
995 * This symbol holds the type used for the second argument to
996 * getgroups(). Usually, this is the same of gidtype, but
997 * sometimes it isn't. It can be int, ushort, uid_t, etc...
998 * It may be necessary to include <sys/types.h> to get any
999 * typedef'ed information. This is only required if you have
1000 * getgroups().
1001 */
1002#ifdef HAS_GETGROUPS
1003#define Groups_t $groupstype /* Type for 2nd arg to getgroups() */
1004#endif
1005
2304df62
AD
1006/* I_DIRENT:
1007 * This symbol, if defined, indicates to the C program that it should
1008 * include <dirent.h>. Using this symbol also triggers the definition
1009 * of the Direntry_t define which ends up being 'struct dirent' or
1010 * 'struct direct' depending on the availability of <dirent.h>.
1c3d792e 1011 */
2304df62
AD
1012/* DIRNAMLEN:
1013 * This symbol, if defined, indicates to the C program that the length
1014 * of directory entry names is provided by a d_namlen field. Otherwise
1015 * you need to do strlen() on the d_name field.
1016 */
a0d0e21e
LW
1017/* Direntry_t:
1018 * This symbol is set to 'struct direct' or 'struct dirent' depending on
1019 * whether dirent is available or not. You should use this pseudo type to
1020 * portably declare your directory entries.
1021 */
2304df62
AD
1022#$i_dirent I_DIRENT /**/
1023#$d_dirnamlen DIRNAMLEN /**/
a0d0e21e
LW
1024#define Direntry_t $direntrytype
1025
1026/* I_DLFCN:
1027 * This symbol, if defined, indicates that <dlfcn.h> exists and should
1028 * be included.
1029 */
1030#$i_dlfcn I_DLFCN /**/
1c3d792e 1031
2304df62 1032/* I_FCNTL:
fe14fcc3 1033 * This manifest constant tells the C program to include <fcntl.h>.
a687059c 1034 */
2304df62 1035#$i_fcntl I_FCNTL /**/
a687059c 1036
a0d0e21e
LW
1037/* I_FLOAT:
1038 * This symbol, if defined, indicates to the C program that it should
1039 * include <float.h> to get definition of symbols like DBL_MAX or
1040 * DBL_MIN, i.e. machine dependent floating point values.
a687059c 1041 */
a0d0e21e 1042#$i_float I_FLOAT /**/
a687059c 1043
2304df62 1044/* I_GRP:
a687059c 1045 * This symbol, if defined, indicates to the C program that it should
2304df62 1046 * include <grp.h>.
a687059c 1047 */
2304df62 1048#$i_grp I_GRP /**/
a687059c 1049
a0d0e21e
LW
1050/* I_LIMITS:
1051 * This symbol, if defined, indicates to the C program that it should
1052 * include <limits.h> to get definition of symbols like WORD_BIT or
1053 * LONG_MAX, i.e. machine dependant limitations.
1054 */
1055#$i_limits I_LIMITS /**/
1056
1057/* I_MATH:
1058 * This symbol, if defined, indicates to the C program that it should
1059 * include <math.h>.
1060 */
1061#$i_math I_MATH /**/
1062
1063/* I_MEMORY:
1064 * This symbol, if defined, indicates to the C program that it should
1065 * include <memory.h>.
1066 */
1067#$i_memory I_MEMORY /**/
1068
ecfc5424
AD
1069/* I_NET_ERRNO:
1070 * This symbol, if defined, indicates that <net/errno.h> exists and
1071 * should be included.
2304df62 1072 */
ecfc5424 1073#$i_neterrno I_NET_ERRNO /**/
2304df62
AD
1074
1075/* I_NETINET_IN:
03a14243 1076 * This symbol, if defined, indicates to the C program that it should
2304df62 1077 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
03a14243 1078 */
2304df62 1079#$i_niin I_NETINET_IN /**/
03a14243 1080
a0d0e21e
LW
1081/* I_PWD:
1082 * This symbol, if defined, indicates to the C program that it should
1083 * include <pwd.h>.
a687059c 1084 */
a0d0e21e
LW
1085/* PWQUOTA:
1086 * This symbol, if defined, indicates to the C program that struct passwd
1087 * contains pw_quota.
1088 */
1089/* PWAGE:
1090 * This symbol, if defined, indicates to the C program that struct passwd
1091 * contains pw_age.
1092 */
1093/* PWCHANGE:
1094 * This symbol, if defined, indicates to the C program that struct passwd
1095 * contains pw_change.
1096 */
1097/* PWCLASS:
1098 * This symbol, if defined, indicates to the C program that struct passwd
1099 * contains pw_class.
1100 */
1101/* PWEXPIRE:
1102 * This symbol, if defined, indicates to the C program that struct passwd
1103 * contains pw_expire.
1104 */
1105/* PWCOMMENT:
1106 * This symbol, if defined, indicates to the C program that struct passwd
1107 * contains pw_comment.
1108 */
1109#$i_pwd I_PWD /**/
1110#$d_pwquota PWQUOTA /**/
1111#$d_pwage PWAGE /**/
1112#$d_pwchange PWCHANGE /**/
1113#$d_pwclass PWCLASS /**/
1114#$d_pwexpire PWEXPIRE /**/
1115#$d_pwcomment PWCOMMENT /**/
a687059c 1116
2304df62
AD
1117/* I_STDDEF:
1118 * This symbol, if defined, indicates that <stddef.h> exists and should
a687059c
LW
1119 * be included.
1120 */
2304df62 1121#$i_stddef I_STDDEF /**/
a687059c 1122
a0d0e21e
LW
1123/* I_STDLIB:
1124 * This symbol, if defined, indicates that <stdlib.h> exists and should
1125 * be included.
1126 */
1127#$i_stdlib I_STDLIB /**/
1128
1129/* I_STRING:
85e6fe83
LW
1130 * This symbol, if defined, indicates to the C program that it should
1131 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
1132 */
1133#$i_string I_STRING /**/
1134
2304df62
AD
1135/* I_SYS_DIR:
1136 * This symbol, if defined, indicates to the C program that it should
1137 * include <sys/dir.h>.
d8f2e4cc 1138 */
2304df62
AD
1139#$i_sysdir I_SYS_DIR /**/
1140
1141/* I_SYS_FILE:
1142 * This symbol, if defined, indicates to the C program that it should
1143 * include <sys/file.h> to get definition of R_OK and friends.
d8f2e4cc 1144 */
2304df62
AD
1145#$i_sysfile I_SYS_FILE /**/
1146
1147/* I_SYS_IOCTL:
1148 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
1149 * be included. Otherwise, include <sgtty.h> or <termio.h>.
d8f2e4cc 1150 */
2304df62
AD
1151#$i_sysioctl I_SYS_IOCTL /**/
1152
1153/* I_SYS_NDIR:
1154 * This symbol, if defined, indicates to the C program that it should
1155 * include <sys/ndir.h>.
1156 */
1157#$i_sysndir I_SYS_NDIR /**/
1158
a0d0e21e
LW
1159/* I_SYS_PARAM:
1160 * This symbol, if defined, indicates to the C program that it should
1161 * include <sys/param.h>.
1162 */
1163#$i_sysparam I_SYS_PARAM /**/
1164
2304df62
AD
1165/* I_SYS_SELECT:
1166 * This symbol, if defined, indicates to the C program that it should
1167 * include <sys/select.h> in order to get definition of struct timeval.
1168 */
1169#$i_sysselct I_SYS_SELECT /**/
1170
a0d0e21e
LW
1171/* I_SYS_TIMES:
1172 * This symbol, if defined, indicates to the C program that it should
1173 * include <sys/times.h>.
1174 */
1175#$i_systimes I_SYS_TIMES /**/
1176
1177/* I_TERMIO:
1178 * This symbol, if defined, indicates that the program should include
1179 * <termio.h> rather than <sgtty.h>. There are also differences in
1180 * the ioctl() calls that depend on the value of this symbol.
1181 */
1182/* I_TERMIOS:
1183 * This symbol, if defined, indicates that the program should include
1184 * the POSIX termios.h rather than sgtty.h or termio.h.
1185 * There are also differences in the ioctl() calls that depend on the
1186 * value of this symbol.
1187 */
1188/* I_SGTTY:
1189 * This symbol, if defined, indicates that the program should include
1190 * <sgtty.h> rather than <termio.h>. There are also differences in
1191 * the ioctl() calls that depend on the value of this symbol.
1192 */
1193#$i_termio I_TERMIO /**/
1194#$i_termios I_TERMIOS /**/
1195#$i_sgtty I_SGTTY /**/
1196
2304df62
AD
1197/* I_TIME:
1198 * This symbol, if defined, indicates to the C program that it should
1199 * include <time.h>.
1200 */
1201/* I_SYS_TIME:
1202 * This symbol, if defined, indicates to the C program that it should
1203 * include <sys/time.h>.
fe14fcc3 1204 */
85e6fe83
LW
1205/* I_SYS_TIME_KERNEL:
1206 * This symbol, if defined, indicates to the C program that it should
1207 * include <sys/time.h> with KERNEL defined.
1208 */
2304df62
AD
1209#$i_time I_TIME /**/
1210#$i_systime I_SYS_TIME /**/
85e6fe83
LW
1211#$i_systimek I_SYS_TIME_KERNEL /**/
1212
1213/* I_UNISTD:
1214 * This symbol, if defined, indicates to the C program that it should
1215 * include <unistd.h>.
1216 */
1217#$i_unistd I_UNISTD /**/
d8f2e4cc 1218
2304df62 1219/* I_UTIME:
d8f2e4cc 1220 * This symbol, if defined, indicates to the C program that it should
2304df62 1221 * include <utime.h>.
d8f2e4cc 1222 */
2304df62 1223#$i_utime I_UTIME /**/
d8f2e4cc 1224
a0d0e21e
LW
1225/* I_STDARG:
1226 * This symbol, if defined, indicates that <stdarg.h> exists and should
1227 * be included.
1228 */
2304df62 1229/* I_VARARGS:
a687059c 1230 * This symbol, if defined, indicates to the C program that it should
2304df62 1231 * include <varargs.h>.
a687059c 1232 */
a0d0e21e
LW
1233#$i_stdarg I_STDARG /**/
1234#$i_varargs I_VARARGS /**/
1235
1236/* I_VFORK:
1237 * This symbol, if defined, indicates to the C program that it should
1238 * include vfork.h.
1239 */
1240#$i_vfork I_VFORK /**/
a687059c 1241
2304df62 1242/* INTSIZE:
a687059c
LW
1243 * This symbol contains the size of an int, so that the C preprocessor
1244 * can make decisions based on it.
1245 */
1246#define INTSIZE $intsize /**/
1247
85e6fe83
LW
1248/* Off_t:
1249 * This symbol holds the type used to declare offsets in the kernel.
1250 * It can be int, long, off_t, etc... It may be necessary to include
1251 * <sys/types.h> to get any typedef'ed information.
1252 */
1253#define Off_t $lseektype /* <offset> type */
1254
ecfc5424
AD
1255/* Mode_t:
1256 * This symbol holds the type used to declare file modes
1257 * for systems calls. It is usually mode_t, but may be
1258 * int or unsigned short. It may be necessary to include <sys/types.h>
1259 * to get any typedef'ed information.
1260 */
1261#define Mode_t $modetype /* file mode parameter for system calls */
1262
2304df62
AD
1263/* PRIVLIB:
1264 * This symbol contains the name of the private library for this package.
1265 * The library is private in the sense that it needn't be in anyone's
1266 * execution path, but it should be accessible by the world. The program
1267 * should be prepared to do ~ expansion.
fe14fcc3 1268 */
2304df62
AD
1269#define PRIVLIB "$privlib" /**/
1270
a0d0e21e
LW
1271/* CAN_PROTOTYPE:
1272 * If defined, this macro indicates that the C compiler can handle
1273 * function prototypes.
85e6fe83 1274 */
a0d0e21e
LW
1275/* _:
1276 * This macro is used to declare function parameters for folks who want
1277 * to make declarations with prototypes using a different style than
1278 * the above macros. Use double parentheses. For example:
1279 *
1280 * int main _((int argc, char *argv[]));
1281 */
1282#$prototype CAN_PROTOTYPE /**/
1283#ifdef CAN_PROTOTYPE
1284#define _(args) args
1285#else
1286#define _(args) ()
1287#endif
85e6fe83 1288
2304df62
AD
1289/* RANDBITS:
1290 * This symbol contains the number of bits of random number the rand()
1291 * function produces. Usual values are 15, 16, and 31.
fe14fcc3 1292 */
2304df62
AD
1293#define RANDBITS $randbits /**/
1294
1295/* SCRIPTDIR:
1296 * This symbol holds the name of the directory in which the user wants
1297 * to put publicly executable scripts for the package in question. It
1298 * is often a directory that is mounted across diverse architectures.
1299 * Programs must be prepared to deal with ~name expansion.
fe14fcc3 1300 */
2304df62
AD
1301#define SCRIPTDIR "$scriptdir" /**/
1302
a0d0e21e
LW
1303/* Select_fd_set_t:
1304 * This symbol holds the type used for the 2nd, 3rd, and 4th
1305 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
1306 * is defined, and 'int *' otherwise. This is only useful if you
1307 * have select(), of course.
1308 */
1309#define Select_fd_set_t $selecttype /**/
1310
1311/* SIG_NAME:
1312 * This symbol contains a list of signal names in order. This is intended
1313 * to be used as a static array initialization, like this:
1314 * char *sig_name[] = { SIG_NAME };
1315 * The signals in the list are separated with commas, and each signal
1316 * is surrounded by double quotes. There is no leading SIG in the signal
1317 * name, i.e. SIGQUIT is known as "QUIT".
1318 */
1319#define SIG_NAME "`echo $sig_name | sed 's/ /","/g'`" /**/
1320
1321/* Size_t:
1322 * This symbol holds the type used to declare length parameters
1323 * for string functions. It is usually size_t, but may be
1324 * unsigned long, int, etc. It may be necessary to include
1325 * <sys/types.h> to get any typedef'ed information.
1326 */
1327#define Size_t $sizetype /* length paramater for string functions */
1328
ecfc5424
AD
1329/* SSize_t:
1330 * This symbol holds the type used by functions that return
1331 * a count of bytes or an error condition. It must be a signed type.
1332 * It is usually ssize_t, but may be long or int, etc.
1333 * It may be necessary to include <sys/types.h> or <unistd.h>
1334 * to get any typedef'ed information.
1335 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
1336 */
1337#define SSize_t $ssizetype /* signed count of bytes */
1338
2304df62
AD
1339/* STDCHAR:
1340 * This symbol is defined to be the type of char used in stdio.h.
1341 * It has the values "unsigned char" or "char".
fe14fcc3 1342 */
2304df62
AD
1343#define STDCHAR $stdchar /**/
1344
1345/* Uid_t:
1346 * This symbol holds the type used to declare user ids in the kernel.
1347 * It can be int, ushort, uid_t, etc... It may be necessary to include
1348 * <sys/types.h> to get any typedef'ed information.
fe14fcc3 1349 */
2304df62 1350#define Uid_t $uidtype /* UID type */
fe14fcc3 1351
a0d0e21e
LW
1352/* VOIDFLAGS:
1353 * This symbol indicates how much support of the void type is given by this
1354 * compiler. What various bits mean:
1355 *
1356 * 1 = supports declaration of void
1357 * 2 = supports arrays of pointers to functions returning void
1358 * 4 = supports comparisons between pointers to void functions and
1359 * addresses of void functions
1360 * 8 = suports declaration of generic void pointers
1361 *
1362 * The package designer should define VOIDUSED to indicate the requirements
1363 * of the package. This can be done either by #defining VOIDUSED before
1364 * including config.h, or by defining defvoidused in Myinit.U. If the
1365 * latter approach is taken, only those flags will be tested. If the
1366 * level of void support necessary is not present, defines void to int.
1367 */
1368#ifndef VOIDUSED
1369#define VOIDUSED $defvoidused
1370#endif
1371#define VOIDFLAGS $voidflags
1372#if (VOIDFLAGS & VOIDUSED) != VOIDUSED
1373#define void int /* is void to be avoided? */
1374#define M_VOID /* Xenix strikes again */
1375#endif
1376
85e6fe83
LW
1377/* EUNICE:
1378 * This symbol, if defined, indicates that the program is being compiled
1379 * under the EUNICE package under VMS. The program will need to handle
1380 * things like files that don't go away the first time you unlink them,
1381 * due to version numbering. It will also need to compensate for lack
1382 * of a respectable link() command.
1383 */
1384/* VMS:
1385 * This symbol, if defined, indicates that the program is running under
1386 * VMS. It is currently only set in conjunction with the EUNICE symbol.
1387 */
1388#$d_eunice EUNICE /**/
1389#$d_eunice VMS /**/
1390
a0d0e21e
LW
1391/* LOC_SED:
1392 * This symbol holds the complete pathname to the sed program.
85e6fe83 1393 */
a0d0e21e 1394#define LOC_SED "$sed" /**/
85e6fe83 1395
a0d0e21e
LW
1396/* DLSYM_NEEDS_UNDERSCORE:
1397 * This symbol, if defined, indicates that we need to prepend an
1398 * underscore to the symbol name before calling dlsym(). This only
1399 * makes sense if you *have* dlsym, which we will presume is the
1400 * case if you're using dl_dlopen.xs.
85e6fe83 1401 */
a0d0e21e
LW
1402#$d_dlsymun DLSYM_NEEDS_UNDERSCORE /* */
1403
2304df62
AD
1404/* USE_DYNAMIC_LOADING:
1405 * This symbol, if defined, indicates that dynamic loading of
1406 * some sort is available.
a687059c 1407 */
2304df62 1408#$usedl USE_DYNAMIC_LOADING /**/
a687059c 1409
ecfc5424
AD
1410/* DB_Prefix_t:
1411 * This symbol contains the type of the prefix structure element
1412 * in the <db.h> header file. In older versions of DB, it was
1413 * int, while in newer ones it is u_int32_t.
a687059c 1414 */
ecfc5424
AD
1415/* DB_Hash_t:
1416 * This symbol contains the type of the prefix structure element
1417 * in the <db.h> header file. In older versions of DB, it was
1418 * int, while in newer ones it is size_t.
1419 */
75f92628
AD
1420#define DB_Hash_t $db_hashtype /**/
1421#define DB_Prefix_t $db_prefixtype /**/
a687059c 1422
ecfc5424
AD
1423/* I_NDBM:
1424 * This symbol, if defined, indicates that ndbm.h exists and should
1425 * be included.
85e6fe83 1426 */
ecfc5424 1427#$i_ndbm I_NDBM /**/
85e6fe83 1428
2304df62
AD
1429/* Malloc_t:
1430 * This symbol is the type of pointer returned by malloc and realloc.
36ce8bec 1431 */
2304df62 1432#define Malloc_t $malloctype /**/
36ce8bec 1433
85e6fe83
LW
1434/* MYMALLOC:
1435 * This symbol, if defined, indicates that we're using our own malloc.
1436 */
1437#$d_mymalloc MYMALLOC /**/
1438
fe14fcc3 1439#endif
8d063cd8 1440!GROK!THIS!