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