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