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