Initial VMS patches
[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.5 1997/02/28 14:57:43 ram Exp $
29  */
30
31 /*
32  * Package name      : $package
33  * Source directory  : $src
34  * Configuration time: $cf_time
35  * Configured by     : $cf_by
36  * Target system     : $myuname
37  */
38
39 #ifndef _config_h_
40 #define _config_h_
41
42 /* LOC_SED:
43  *      This symbol holds the complete pathname to the sed program.
44  */
45 #define LOC_SED         "$full_sed"     /**/
46
47 /* BIN:
48  *      This symbol holds the path of the bin directory where the package will
49  *      be installed. Program must be prepared to deal with ~name substitution.
50  */
51 /* BIN_EXP:
52  *      This symbol is the filename expanded version of the BIN symbol, for
53  *      programs that do not want to deal with that at run-time.
54  */
55 #define BIN "$bin"      /**/
56 #define BIN_EXP "$binexp"       /**/
57
58 /* HAS_ALARM:
59  *      This symbol, if defined, indicates that the alarm routine is
60  *      available.
61  */
62 #$d_alarm HAS_ALARM             /**/
63
64 /* HASATTRIBUTE:
65  *      This symbol indicates the C compiler can check for function attributes,
66  *      such as printf formats. This is normally only supported by GNU cc.
67  */
68 #$d_attribut HASATTRIBUTE       /**/
69 #ifndef HASATTRIBUTE
70 #define __attribute__(_arg_)
71 #endif
72
73 /* HAS_BCMP:
74  *      This symbol is defined if the bcmp() routine is available to
75  *      compare blocks of memory.
76  */
77 #$d_bcmp HAS_BCMP       /**/
78
79 /* HAS_BCOPY:
80  *      This symbol is defined if the bcopy() routine is available to
81  *      copy blocks of memory.
82  */
83 #$d_bcopy HAS_BCOPY     /**/
84
85 /* HAS_BZERO:
86  *      This symbol is defined if the bzero() routine is available to
87  *      set a memory block to 0.
88  */
89 #$d_bzero HAS_BZERO     /**/
90
91 /* HAS_CHOWN:
92  *      This symbol, if defined, indicates that the chown routine is
93  *      available.
94  */
95 #$d_chown HAS_CHOWN             /**/
96
97 /* HAS_CHROOT:
98  *      This symbol, if defined, indicates that the chroot routine is
99  *      available.
100  */
101 #$d_chroot HAS_CHROOT           /**/
102
103 /* HAS_CHSIZE:
104  *      This symbol, if defined, indicates that the chsize routine is available
105  *      to truncate files.  You might need a -lx to get this routine.
106  */
107 #$d_chsize      HAS_CHSIZE              /**/
108
109 /* HASCONST:
110  *      This symbol, if defined, indicates that this C compiler knows about
111  *      the const type. There is no need to actually test for that symbol
112  *      within your programs. The mere use of the "const" keyword will
113  *      trigger the necessary tests.
114  */
115 #$d_const HASCONST      /**/
116 #ifndef HASCONST
117 #define const
118 #endif
119
120 /* HAS_CRYPT:
121  *      This symbol, if defined, indicates that the crypt routine is available
122  *      to encrypt passwords and the like.
123  */
124 #$d_crypt HAS_CRYPT             /**/
125
126 /* HAS_CUSERID:
127  *      This symbol, if defined, indicates that the cuserid routine is
128  *      available to get character login names.
129  */
130 #$d_cuserid HAS_CUSERID         /**/
131
132 /* HAS_DBL_DIG:
133  *      This symbol, if defined, indicates that this system's <float.h>
134  *      or <limits.h> defines the symbol DBL_DIG, which is the number
135  *      of significant digits in a double precision number.  If this
136  *      symbol is not defined, a guess of 15 is usually pretty good.
137  */
138 #$d_dbl_dig HAS_DBL_DIG         /* */
139
140 /* HAS_DIFFTIME:
141  *      This symbol, if defined, indicates that the difftime routine is
142  *      available.
143  */
144 #$d_difftime HAS_DIFFTIME               /**/
145
146 /* HAS_DLERROR:
147  *      This symbol, if defined, indicates that the dlerror routine is
148  *      available to return a string describing the last error that
149  *      occurred from a call to dlopen(), dlclose() or dlsym().
150  */
151 #$d_dlerror HAS_DLERROR /**/
152
153 /* SETUID_SCRIPTS_ARE_SECURE_NOW:
154  *      This symbol, if defined, indicates that the bug that prevents
155  *      setuid scripts from being secure is not present in this kernel.
156  */
157 /* DOSUID:
158  *      This symbol, if defined, indicates that the C program should
159  *      check the script that it is executing for setuid/setgid bits, and
160  *      attempt to emulate setuid/setgid on systems that have disabled
161  *      setuid #! scripts because the kernel can't do it securely.
162  *      It is up to the package designer to make sure that this emulation
163  *      is done securely.  Among other things, it should do an fstat on
164  *      the script it just opened to make sure it really is a setuid/setgid
165  *      script, it should make sure the arguments passed correspond exactly
166  *      to the argument on the #! line, and it should not trust any
167  *      subprocesses to which it must pass the filename rather than the
168  *      file descriptor of the script to be executed.
169  */
170 #$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW      /**/
171 #$d_dosuid DOSUID               /**/
172
173 /* HAS_DUP2:
174  *      This symbol, if defined, indicates that the dup2 routine is
175  *      available to duplicate file descriptors.
176  */
177 #$d_dup2 HAS_DUP2       /**/
178
179 /* HAS_FCHMOD:
180  *      This symbol, if defined, indicates that the fchmod routine is available
181  *      to change mode of opened files.  If unavailable, use chmod().
182  */
183 #$d_fchmod HAS_FCHMOD           /**/
184
185 /* HAS_FCHOWN:
186  *      This symbol, if defined, indicates that the fchown routine is available
187  *      to change ownership of opened files.  If unavailable, use chown().
188  */
189 #$d_fchown HAS_FCHOWN           /**/
190
191 /* HAS_FCNTL:
192  *      This symbol, if defined, indicates to the C program that
193  *      the fcntl() function exists.
194  */
195 #$d_fcntl HAS_FCNTL             /**/
196
197 /* HAS_FGETPOS:
198  *      This symbol, if defined, indicates that the fgetpos routine is
199  *      available to get the file position indicator, similar to ftell().
200  */
201 #$d_fgetpos HAS_FGETPOS /**/
202
203 /* FLEXFILENAMES:
204  *      This symbol, if defined, indicates that the system supports filenames
205  *      longer than 14 characters.
206  */
207 #$d_flexfnam    FLEXFILENAMES           /**/
208
209 /* HAS_FLOCK:
210  *      This symbol, if defined, indicates that the flock routine is
211  *      available to do file locking.
212  */
213 #$d_flock HAS_FLOCK             /**/
214
215 /* HAS_FORK:
216  *      This symbol, if defined, indicates that the fork routine is
217  *      available.
218  */
219 #$d_fork HAS_FORK               /**/
220
221 /* HAS_FSETPOS:
222  *      This symbol, if defined, indicates that the fsetpos routine is
223  *      available to set the file position indicator, similar to fseek().
224  */
225 #$d_fsetpos HAS_FSETPOS /**/
226
227 /* HAS_GETTIMEOFDAY:
228  *      This symbol, if defined, indicates that the gettimeofday() system
229  *      call is available for a sub-second accuracy clock. Usually, the file
230  *      <sys/resource.h> needs to be included (see I_SYS_RESOURCE).
231  *      The type "Timeval" should be used to refer to "struct timeval".
232  */
233 #$d_gettimeod HAS_GETTIMEOFDAY  /**/
234 #ifdef HAS_GETTIMEOFDAY
235 #define Timeval struct timeval  /* Structure used by gettimeofday() */
236 #endif
237
238 /* HAS_GETGROUPS:
239  *      This symbol, if defined, indicates that the getgroups() routine is
240  *      available to get the list of process groups.  If unavailable, multiple
241  *      groups are probably not supported.
242  */
243 #$d_getgrps HAS_GETGROUPS               /**/
244
245 /* HAS_GETHOSTNAME:
246  *      This symbol, if defined, indicates that the C program may use the
247  *      gethostname() routine to derive the host name.  See also HAS_UNAME
248  *      and PHOSTNAME.
249  */
250 /* HAS_UNAME:
251  *      This symbol, if defined, indicates that the C program may use the
252  *      uname() routine to derive the host name.  See also HAS_GETHOSTNAME
253  *      and PHOSTNAME.
254  */
255 /* PHOSTNAME:
256  *      This symbol, if defined, indicates that the C program may use the
257  *      contents of PHOSTNAME as a command to feed to the popen() routine
258  *      to derive the host name.  See also HAS_GETHOSTNAME and HAS_UNAME.
259  *      Note that the command uses a fully qualified path, so that it is safe
260  *      even if used by a process with super-user privileges.
261  */
262 #$d_gethname HAS_GETHOSTNAME    /**/
263 #$d_uname HAS_UNAME             /**/
264 #$d_phostname HAS_PHOSTNAME
265 #ifdef PHOSTNAME
266 #$d_phostname PHOSTNAME "$aphostname"   /* How to get the host name */
267 #endif
268
269 /* HAS_GETLOGIN:
270  *      This symbol, if defined, indicates that the getlogin routine is
271  *      available to get the login name.
272  */
273 #$d_getlogin HAS_GETLOGIN               /**/
274
275 /* HAS_GETPGID:
276  *      This symbol, if defined, indicates to the C program that 
277  *      the getpgid(pid) function is available to get the
278  *      process group id.
279  */
280 #$d_getpgid HAS_GETPGID         /**/
281
282 /* HAS_GETPGRP:
283  *      This symbol, if defined, indicates that the getpgrp routine is
284  *      available to get the current process group.
285  */
286 /* USE_BSD_GETPGRP:
287  *      This symbol, if defined, indicates that getpgrp needs one
288  *      arguments whereas USG one needs none.
289  */
290 #$d_getpgrp HAS_GETPGRP         /**/
291 #$d_bsdgetpgrp USE_BSD_GETPGRP  /**/
292
293 /* HAS_GETPGRP2:
294  *      This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
295  *      routine is available to get the current process group.
296  */
297 #$d_getpgrp2 HAS_GETPGRP2               /**/
298
299 /* HAS_GETPPID:
300  *      This symbol, if defined, indicates that the getppid routine is
301  *      available to get the parent process ID.
302  */
303 #$d_getppid HAS_GETPPID         /**/
304
305 /* HAS_GETPRIORITY:
306  *      This symbol, if defined, indicates that the getpriority routine is
307  *      available to get a process's priority.
308  */
309 #$d_getprior HAS_GETPRIORITY            /**/
310
311 /* HAS_INET_ATON:
312  *      This symbol, if defined, indicates to the C program that the
313  *      inet_aton() function is available to parse IP address "dotted-quad"
314  *      strings.
315  */
316 #$d_inetaton HAS_INET_ATON              /**/
317
318 /* HAS_KILLPG:
319  *      This symbol, if defined, indicates that the killpg routine is available
320  *      to kill process groups.  If unavailable, you probably should use kill
321  *      with a negative process number.
322  */
323 #$d_killpg HAS_KILLPG   /**/
324
325 /* HAS_LINK:
326  *      This symbol, if defined, indicates that the link routine is
327  *      available to create hard links.
328  */
329 #$d_link HAS_LINK       /**/
330
331 /* HAS_LOCALECONV:
332  *      This symbol, if defined, indicates that the localeconv routine is
333  *      available for numeric and monetary formatting conventions.
334  */
335 #$d_locconv HAS_LOCALECONV      /**/
336
337 /* HAS_LOCKF:
338  *      This symbol, if defined, indicates that the lockf routine is
339  *      available to do file locking.
340  */
341 #$d_lockf HAS_LOCKF             /**/
342
343 /* HAS_LSTAT:
344  *      This symbol, if defined, indicates that the lstat routine is
345  *      available to do file stats on symbolic links.
346  */
347 #$d_lstat HAS_LSTAT             /**/
348
349 /* HAS_MBLEN:
350  *      This symbol, if defined, indicates that the mblen routine is available
351  *      to find the number of bytes in a multibye character.
352  */
353 #$d_mblen HAS_MBLEN             /**/
354
355 /* HAS_MBSTOWCS:
356  *      This symbol, if defined, indicates that the mbstowcs routine is
357  *      available to covert a multibyte string into a wide character string.
358  */
359 #$d_mbstowcs    HAS_MBSTOWCS            /**/
360
361 /* HAS_MBTOWC:
362  *      This symbol, if defined, indicates that the mbtowc routine is available
363  *      to covert a multibyte to a wide character.
364  */
365 #$d_mbtowc HAS_MBTOWC           /**/
366
367 /* HAS_MEMCMP:
368  *      This symbol, if defined, indicates that the memcmp routine is available
369  *      to compare blocks of memory.
370  */
371 #$d_memcmp HAS_MEMCMP   /**/
372
373 /* HAS_MEMCPY:
374  *      This symbol, if defined, indicates that the memcpy routine is available
375  *      to copy blocks of memory.
376  */
377 #$d_memcpy HAS_MEMCPY   /**/
378
379 /* HAS_MEMMOVE:
380  *      This symbol, if defined, indicates that the memmove routine is available
381  *      to copy potentially overlapping blocks of memory. This should be used
382  *      only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
383  *      own version.
384  */
385 #$d_memmove HAS_MEMMOVE /**/
386
387 /* HAS_MEMSET:
388  *      This symbol, if defined, indicates that the memset routine is available
389  *      to set blocks of memory.
390  */
391 #$d_memset HAS_MEMSET   /**/
392
393 /* HAS_MKDIR:
394  *      This symbol, if defined, indicates that the mkdir routine is available
395  *      to create directories.  Otherwise you should fork off a new process to
396  *      exec /bin/mkdir.
397  */
398 #$d_mkdir HAS_MKDIR             /**/
399
400 /* HAS_MKFIFO:
401  *      This symbol, if defined, indicates that the mkfifo routine is
402  *      available to create FIFOs. Otherwise, mknod should be able to
403  *      do it for you. However, if mkfifo is there, mknod might require
404  *      super-user privileges which mkfifo will not.
405  */
406 #$d_mkfifo HAS_MKFIFO           /**/
407
408 /* HAS_MKTIME:
409  *      This symbol, if defined, indicates that the mktime routine is
410  *      available.
411  */
412 #$d_mktime HAS_MKTIME           /**/
413
414 /* HAS_NICE:
415  *      This symbol, if defined, indicates that the nice routine is
416  *      available.
417  */
418 #$d_nice HAS_NICE               /**/
419
420 /* HAS_PATHCONF:
421  *      This symbol, if defined, indicates that pathconf() is available
422  *      to determine file-system related limits and options associated
423  *      with a given filename.
424  */
425 /* HAS_FPATHCONF:
426  *      This symbol, if defined, indicates that pathconf() is available
427  *      to determine file-system related limits and options associated
428  *      with a given open file descriptor.
429  */
430 #$d_pathconf HAS_PATHCONF               /**/
431 #$d_fpathconf HAS_FPATHCONF             /**/
432
433 /* HAS_PAUSE:
434  *      This symbol, if defined, indicates that the pause routine is
435  *      available to suspend a process until a signal is received.
436  */
437 #$d_pause HAS_PAUSE             /**/
438
439 /* HAS_PIPE:
440  *      This symbol, if defined, indicates that the pipe routine is
441  *      available to create an inter-process channel.
442  */
443 #$d_pipe HAS_PIPE               /**/
444
445 /* HAS_POLL:
446  *      This symbol, if defined, indicates that the poll routine is
447  *      available to poll active file descriptors. You may safely
448  *      include <poll.h> when this symbol is defined.
449  */
450 #$d_poll HAS_POLL               /**/
451
452 /* HAS_READDIR:
453  *      This symbol, if defined, indicates that the readdir routine is
454  *      available to read directory entries. You may have to include
455  *      <dirent.h>. See I_DIRENT.
456  */
457 #$d_readdir HAS_READDIR         /**/
458
459 /* HAS_SEEKDIR:
460  *      This symbol, if defined, indicates that the seekdir routine is
461  *      available. You may have to include <dirent.h>. See I_DIRENT.
462  */
463 #$d_seekdir HAS_SEEKDIR         /**/
464
465 /* HAS_TELLDIR:
466  *      This symbol, if defined, indicates that the telldir routine is
467  *      available. You may have to include <dirent.h>. See I_DIRENT.
468  */
469 #$d_telldir HAS_TELLDIR         /**/
470
471 /* HAS_REWINDDIR:
472  *      This symbol, if defined, indicates that the rewinddir routine is
473  *      available. You may have to include <dirent.h>. See I_DIRENT.
474  */
475 #$d_rewinddir HAS_REWINDDIR             /**/
476
477 /* HAS_READLINK:
478  *      This symbol, if defined, indicates that the readlink routine is
479  *      available to read the value of a symbolic link.
480  */
481 #$d_readlink HAS_READLINK               /**/
482
483 /* HAS_RENAME:
484  *      This symbol, if defined, indicates that the rename routine is available
485  *      to rename files.  Otherwise you should do the unlink(), link(), unlink()
486  *      trick.
487  */
488 #$d_rename HAS_RENAME   /**/
489
490 /* HAS_RMDIR:
491  *      This symbol, if defined, indicates that the rmdir routine is
492  *      available to remove directories. Otherwise you should fork off a
493  *      new process to exec /bin/rmdir.
494  */
495 #$d_rmdir HAS_RMDIR             /**/
496
497 /* HAS_SELECT:
498  *      This symbol, if defined, indicates that the select routine is
499  *      available to select active file descriptors. If the timeout field
500  *      is used, <sys/time.h> may need to be included.
501  */
502 #$d_select HAS_SELECT   /**/
503
504 /* HAS_SETEGID:
505  *      This symbol, if defined, indicates that the setegid routine is available
506  *      to change the effective gid of the current program.
507  */
508 #$d_setegid HAS_SETEGID         /**/
509
510 /* HAS_SETEUID:
511  *      This symbol, if defined, indicates that the seteuid routine is available
512  *      to change the effective uid of the current program.
513  */
514 #$d_seteuid HAS_SETEUID         /**/
515
516 /* HAS_SETLINEBUF:
517  *      This symbol, if defined, indicates that the setlinebuf routine is
518  *      available to change stderr or stdout from block-buffered or unbuffered
519  *      to a line-buffered mode.
520  */
521 #$d_setlinebuf HAS_SETLINEBUF           /**/
522
523 /* HAS_SETLOCALE:
524  *      This symbol, if defined, indicates that the setlocale routine is
525  *      available to handle locale-specific ctype implementations.
526  */
527 #$d_setlocale HAS_SETLOCALE     /**/
528
529 /* HAS_SETPGID:
530  *      This symbol, if defined, indicates that the setpgid(pid, gpid)
531  *      routine is available to set process group ID.
532  */
533 #$d_setpgid HAS_SETPGID /**/
534
535 /* HAS_SETPGRP:
536  *      This symbol, if defined, indicates that the setpgrp routine is
537  *      available to set the current process group.
538  */
539 /* USE_BSD_SETPGRP:
540  *      This symbol, if defined, indicates that setpgrp needs two
541  *      arguments whereas USG one needs none.  See also HAS_SETPGID
542  *      for a POSIX interface.
543  */
544 #$d_setpgrp HAS_SETPGRP         /**/
545 #$d_bsdsetpgrp USE_BSD_SETPGRP  /**/
546
547 /* HAS_SETPGRP2:
548  *      This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
549  *      routine is available to set the current process group.
550  */
551 #$d_setpgrp2 HAS_SETPGRP2               /**/
552
553 /* HAS_SETPRIORITY:
554  *      This symbol, if defined, indicates that the setpriority routine is
555  *      available to set a process's priority.
556  */
557 #$d_setprior HAS_SETPRIORITY            /**/
558
559 /* HAS_SETREGID:
560  *      This symbol, if defined, indicates that the setregid routine is
561  *      available to change the real and effective gid of the current
562  *      process.
563  */
564 /* HAS_SETRESGID:
565  *      This symbol, if defined, indicates that the setresgid routine is
566  *      available to change the real, effective and saved gid of the current
567  *      process.
568  */
569 #$d_setregid HAS_SETREGID               /**/
570 #$d_setresgid HAS_SETRESGID             /**/
571
572 /* HAS_SETREUID:
573  *      This symbol, if defined, indicates that the setreuid routine is
574  *      available to change the real and effective uid of the current
575  *      process.
576  */
577 /* HAS_SETRESUID:
578  *      This symbol, if defined, indicates that the setresuid routine is
579  *      available to change the real, effective and saved uid of the current
580  *      process.
581  */
582 #$d_setreuid HAS_SETREUID               /**/
583 #$d_setresuid HAS_SETRESUID             /**/
584
585 /* HAS_SETRGID:
586  *      This symbol, if defined, indicates that the setrgid routine is available
587  *      to change the real gid of the current program.
588  */
589 #$d_setrgid HAS_SETRGID         /**/
590
591 /* HAS_SETRUID:
592  *      This symbol, if defined, indicates that the setruid routine is available
593  *      to change the real uid of the current program.
594  */
595 #$d_setruid HAS_SETRUID         /**/
596
597 /* HAS_SETSID:
598  *      This symbol, if defined, indicates that the setsid routine is
599  *      available to set the process group ID.
600  */
601 #$d_setsid HAS_SETSID   /**/
602
603 /* Shmat_t:
604  *      This symbol holds the return type of the shmat() system call.
605  *      Usually set to 'void *' or 'char *'.
606  */
607 /* HAS_SHMAT_PROTOTYPE:
608  *      This symbol, if defined, indicates that the sys/shm.h includes
609  *      a prototype for shmat().  Otherwise, it is up to the program to
610  *      guess one.  Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
611  *      but not always right so it should be emitted by the program only
612  *      when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
613  */
614 #define Shmat_t $shmattype      /**/
615 #$d_shmatprototype HAS_SHMAT_PROTOTYPE  /**/
616
617 /* HAS_STRCHR:
618  *      This symbol is defined to indicate that the strchr()/strrchr()
619  *      functions are available for string searching. If not, try the
620  *      index()/rindex() pair.
621  */
622 /* HAS_INDEX:
623  *      This symbol is defined to indicate that the index()/rindex()
624  *      functions are available for string searching.
625  */
626 #$d_strchr HAS_STRCHR   /**/
627 #$d_index HAS_INDEX     /**/
628
629 /* HAS_STRCOLL:
630  *      This symbol, if defined, indicates that the strcoll routine is
631  *      available to compare strings using collating information.
632  */
633 #$d_strcoll HAS_STRCOLL /**/
634
635 /* USE_STRUCT_COPY:
636  *      This symbol, if defined, indicates that this C compiler knows how
637  *      to copy structures.  If undefined, you'll need to use a block copy
638  *      routine of some sort instead.
639  */
640 #$d_strctcpy    USE_STRUCT_COPY /**/
641
642 /* HAS_STRTOD:
643  *      This symbol, if defined, indicates that the strtod routine is
644  *      available to provide better numeric string conversion than atof().
645  */
646 #$d_strtod HAS_STRTOD   /**/
647
648 /* HAS_STRTOL:
649  *      This symbol, if defined, indicates that the strtol routine is available
650  *      to provide better numeric string conversion than atoi() and friends.
651  */
652 #$d_strtol HAS_STRTOL   /**/
653
654 /* HAS_STRTOUL:
655  *      This symbol, if defined, indicates that the strtoul routine is
656  *      available to provide conversion of strings to unsigned long.
657  */
658 #$d_strtoul HAS_STRTOUL /**/
659
660 /* HAS_STRXFRM:
661  *      This symbol, if defined, indicates that the strxfrm() routine is
662  *      available to transform strings.
663  */
664 #$d_strxfrm HAS_STRXFRM /**/
665
666 /* HAS_SYMLINK:
667  *      This symbol, if defined, indicates that the symlink routine is available
668  *      to create symbolic links.
669  */
670 #$d_symlink HAS_SYMLINK /**/
671
672 /* HAS_SYSCALL:
673  *      This symbol, if defined, indicates that the syscall routine is
674  *      available to call arbitrary system calls. If undefined, that's tough.
675  */
676 #$d_syscall HAS_SYSCALL /**/
677
678 /* HAS_SYSCONF:
679  *      This symbol, if defined, indicates that sysconf() is available
680  *      to determine system related limits and options.
681  */
682 #$d_sysconf HAS_SYSCONF /**/
683
684 /* HAS_SYSTEM:
685  *      This symbol, if defined, indicates that the system routine is
686  *      available to issue a shell command.
687  */
688 #$d_system HAS_SYSTEM   /**/
689
690 /* HAS_TCGETPGRP:
691  *      This symbol, if defined, indicates that the tcgetpgrp routine is
692  *      available to get foreground process group ID.
693  */
694 #$d_tcgetpgrp HAS_TCGETPGRP             /**/
695
696 /* HAS_TCSETPGRP:
697  *      This symbol, if defined, indicates that the tcsetpgrp routine is
698  *      available to set foreground process group ID.
699  */
700 #$d_tcsetpgrp HAS_TCSETPGRP             /**/
701
702 /* HAS_TRUNCATE:
703  *      This symbol, if defined, indicates that the truncate routine is
704  *      available to truncate files.
705  */
706 #$d_truncate HAS_TRUNCATE       /**/
707
708 /* HAS_TZNAME:
709  *      This symbol, if defined, indicates that the tzname[] array is
710  *      available to access timezone names.
711  */
712 #$d_tzname HAS_TZNAME           /**/
713
714 /* HAS_UMASK:
715  *      This symbol, if defined, indicates that the umask routine is
716  *      available to set and get the value of the file creation mask.
717  */
718 #$d_umask HAS_UMASK             /**/
719
720 /* HAS_VFORK:
721  *      This symbol, if defined, indicates that vfork() exists.
722  */
723 #$d_vfork HAS_VFORK     /**/
724
725 /* HASVOLATILE:
726  *      This symbol, if defined, indicates that this C compiler knows about
727  *      the volatile declaration.
728  */
729 #$d_volatile    HASVOLATILE     /**/
730 #ifndef HASVOLATILE
731 #define volatile
732 #endif
733
734 /* HAS_WAIT4:
735  *      This symbol, if defined, indicates that wait4() exists.
736  */
737 #$d_wait4 HAS_WAIT4     /**/
738
739 /* HAS_WAITPID:
740  *      This symbol, if defined, indicates that the waitpid routine is
741  *      available to wait for child process.
742  */
743 #$d_waitpid HAS_WAITPID /**/
744
745 /* HAS_WCSTOMBS:
746  *      This symbol, if defined, indicates that the wcstombs routine is
747  *      available to convert wide character strings to multibyte strings.
748  */
749 #$d_wcstombs HAS_WCSTOMBS       /**/
750
751 /* HAS_WCTOMB:
752  *      This symbol, if defined, indicates that the wctomb routine is available
753  *      to covert a wide character to a multibyte.
754  */
755 #$d_wctomb HAS_WCTOMB           /**/
756
757 /* I_ARPA_INET:
758  *      This symbol, if defined, indicates to the C program that it should
759  *      include <arpa/inet.h> to get inet_addr and friends declarations.
760  */
761 #$i_arpainet    I_ARPA_INET             /**/
762
763 /* I_DBM:
764  *      This symbol, if defined, indicates that <dbm.h> exists and should
765  *      be included.
766  */
767 /* I_RPCSVC_DBM:
768  *      This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
769  *      should be included.
770  */
771 #$i_dbm I_DBM   /**/
772 #$i_rpcsvcdbm I_RPCSVC_DBM      /**/
773
774 /* I_DIRENT:
775  *      This symbol, if defined, indicates to the C program that it should
776  *      include <dirent.h>. Using this symbol also triggers the definition
777  *      of the Direntry_t define which ends up being 'struct dirent' or
778  *      'struct direct' depending on the availability of <dirent.h>.
779  */
780 /* DIRNAMLEN:
781  *      This symbol, if defined, indicates to the C program that the length
782  *      of directory entry names is provided by a d_namlen field.  Otherwise
783  *      you need to do strlen() on the d_name field.
784  */
785 /* Direntry_t:
786  *      This symbol is set to 'struct direct' or 'struct dirent' depending on
787  *      whether dirent is available or not. You should use this pseudo type to
788  *      portably declare your directory entries.
789  */
790 #$i_dirent I_DIRENT             /**/
791 #$d_dirnamlen DIRNAMLEN /**/
792 #define Direntry_t $direntrytype
793
794 /* I_DLFCN:
795  *      This symbol, if defined, indicates that <dlfcn.h> exists and should
796  *      be included.
797  */
798 #$i_dlfcn I_DLFCN               /**/
799
800 /* I_FCNTL:
801  *      This manifest constant tells the C program to include <fcntl.h>.
802  */
803 #$i_fcntl I_FCNTL       /**/
804
805 /* I_FLOAT:
806  *      This symbol, if defined, indicates to the C program that it should
807  *      include <float.h> to get definition of symbols like DBL_MAX or
808  *      DBL_MIN, i.e. machine dependent floating point values.
809  */
810 #$i_float I_FLOAT               /**/
811
812 /* I_LIMITS:
813  *      This symbol, if defined, indicates to the C program that it should
814  *      include <limits.h> to get definition of symbols like WORD_BIT or
815  *      LONG_MAX, i.e. machine dependant limitations.
816  */
817 #$i_limits I_LIMITS             /**/
818
819 /* I_LOCALE:
820  *      This symbol, if defined, indicates to the C program that it should
821  *      include <locale.h>.
822  */
823 #$i_locale      I_LOCALE                /**/
824
825 /* I_MATH:
826  *      This symbol, if defined, indicates to the C program that it should
827  *      include <math.h>.
828  */
829 #$i_math I_MATH         /**/
830
831 /* I_MEMORY:
832  *      This symbol, if defined, indicates to the C program that it should
833  *      include <memory.h>.
834  */
835 #$i_memory I_MEMORY             /**/
836
837 /* I_NDBM:
838  *      This symbol, if defined, indicates that <ndbm.h> exists and should
839  *      be included.
840  */
841 #$i_ndbm I_NDBM /**/
842
843 /* I_NET_ERRNO:
844  *      This symbol, if defined, indicates that <net/errno.h> exists and 
845  *      should be included.
846  */
847 #$i_neterrno I_NET_ERRNO                /**/
848
849 /* I_NETINET_IN:
850  *      This symbol, if defined, indicates to the C program that it should
851  *      include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
852  */
853 #$i_niin I_NETINET_IN   /**/
854
855 /* I_SFIO:
856  *      This symbol, if defined, indicates to the C program that it should
857  *      include <sfio.h>.
858  */
859 #$i_sfio        I_SFIO          /**/
860
861 /* I_STDDEF:
862  *      This symbol, if defined, indicates that <stddef.h> exists and should
863  *      be included.
864  */
865 #$i_stddef I_STDDEF     /**/
866
867 /* I_STDLIB:
868  *      This symbol, if defined, indicates that <stdlib.h> exists and should
869  *      be included.
870  */
871 #$i_stdlib I_STDLIB             /**/
872
873 /* I_STRING:
874  *      This symbol, if defined, indicates to the C program that it should
875  *      include <string.h> (USG systems) instead of <strings.h> (BSD systems).
876  */
877 #$i_string I_STRING             /**/
878
879 /* I_SYS_DIR:
880  *      This symbol, if defined, indicates to the C program that it should
881  *      include <sys/dir.h>.
882  */
883 #$i_sysdir I_SYS_DIR            /**/
884
885 /* I_SYS_FILE:
886  *      This symbol, if defined, indicates to the C program that it should
887  *      include <sys/file.h> to get definition of R_OK and friends.
888  */
889 #$i_sysfile I_SYS_FILE          /**/
890
891 /* I_SYS_IOCTL:
892  *      This symbol, if defined, indicates that <sys/ioctl.h> exists and should
893  *      be included. Otherwise, include <sgtty.h> or <termio.h>.
894  */
895 #$i_sysioctl    I_SYS_IOCTL             /**/
896
897 /* I_SYS_NDIR:
898  *      This symbol, if defined, indicates to the C program that it should
899  *      include <sys/ndir.h>.
900  */
901 #$i_sysndir I_SYS_NDIR  /**/
902
903 /* I_SYS_PARAM:
904  *      This symbol, if defined, indicates to the C program that it should
905  *      include <sys/param.h>.
906  */
907 #$i_sysparam I_SYS_PARAM                /**/
908
909 /* I_SYS_RESOURCE:
910  *      This symbol, if defined, indicates to the C program that it should
911  *      include <sys/resource.h>.
912  */
913 #$i_sysresrc I_SYS_RESOURCE             /**/
914
915 /* I_SYS_SELECT:
916  *      This symbol, if defined, indicates to the C program that it should
917  *      include <sys/select.h> in order to get definition of struct timeval.
918  */
919 #$i_sysselct I_SYS_SELECT       /**/
920
921 /* I_SYS_STAT:
922  *      This symbol, if defined, indicates to the C program that it should
923  *      include <sys/stat.h>.
924  */
925 #$i_sysstat     I_SYS_STAT              /**/
926
927 /* I_SYS_TIMES:
928  *      This symbol, if defined, indicates to the C program that it should
929  *      include <sys/times.h>.
930  */
931 #$i_systimes    I_SYS_TIMES             /**/
932
933 /* I_SYS_TYPES:
934  *      This symbol, if defined, indicates to the C program that it should
935  *      include <sys/types.h>.
936  */
937 #$i_systypes    I_SYS_TYPES             /**/
938
939 /* I_SYS_UN:
940  *      This symbol, if defined, indicates to the C program that it should
941  *      include <sys/un.h> to get UNIX domain socket definitions.
942  */
943 #$i_sysun I_SYS_UN              /**/
944
945 /* I_SYS_WAIT:
946  *      This symbol, if defined, indicates to the C program that it should
947  *      include <sys/wait.h>.
948  */
949 #$i_syswait I_SYS_WAIT  /**/
950
951 /* I_TERMIO:
952  *      This symbol, if defined, indicates that the program should include
953  *      <termio.h> rather than <sgtty.h>.  There are also differences in
954  *      the ioctl() calls that depend on the value of this symbol.
955  */
956 /* I_TERMIOS:
957  *      This symbol, if defined, indicates that the program should include
958  *      the POSIX termios.h rather than sgtty.h or termio.h.
959  *      There are also differences in the ioctl() calls that depend on the
960  *      value of this symbol.
961  */
962 /* I_SGTTY:
963  *      This symbol, if defined, indicates that the program should include
964  *      <sgtty.h> rather than <termio.h>.  There are also differences in
965  *      the ioctl() calls that depend on the value of this symbol.
966  */
967 #$i_termio I_TERMIO             /**/
968 #$i_termios I_TERMIOS           /**/
969 #$i_sgtty I_SGTTY               /**/
970
971 /* I_UNISTD:
972  *      This symbol, if defined, indicates to the C program that it should
973  *      include <unistd.h>.
974  */
975 #$i_unistd I_UNISTD             /**/
976
977 /* I_UTIME:
978  *      This symbol, if defined, indicates to the C program that it should
979  *      include <utime.h>.
980  */
981 #$i_utime I_UTIME               /**/
982
983 /* I_VALUES:
984  *      This symbol, if defined, indicates to the C program that it should
985  *      include <values.h> to get definition of symbols like MINFLOAT or
986  *      MAXLONG, i.e. machine dependant limitations.  Probably, you
987  *      should use <limits.h> instead, if it is available.
988  */
989 #$i_values I_VALUES             /**/
990
991 /* I_STDARG:
992  *      This symbol, if defined, indicates that <stdarg.h> exists and should
993  *      be included.
994  */
995 /* I_VARARGS:
996  *      This symbol, if defined, indicates to the C program that it should
997  *      include <varargs.h>.
998  */
999 #$i_stdarg I_STDARG             /**/
1000 #$i_varargs I_VARARGS   /**/
1001
1002 /* I_VFORK:
1003  *      This symbol, if defined, indicates to the C program that it should
1004  *      include vfork.h.
1005  */
1006 #$i_vfork I_VFORK       /**/
1007
1008 /* CAN_PROTOTYPE:
1009  *      If defined, this macro indicates that the C compiler can handle
1010  *      function prototypes.
1011  */
1012 /* _:
1013  *      This macro is used to declare function parameters for folks who want
1014  *      to make declarations with prototypes using a different style than
1015  *      the above macros.  Use double parentheses.  For example:
1016  *
1017  *              int main _((int argc, char *argv[]));
1018  */
1019 #$prototype     CAN_PROTOTYPE   /**/
1020 #ifdef CAN_PROTOTYPE
1021 #define _(args) args
1022 #else
1023 #define _(args) ()
1024 #endif
1025
1026 /* SH_PATH:
1027  *      This symbol contains the full pathname to the shell used on this
1028  *      on this system to execute Bourne shell scripts.  Usually, this will be
1029  *      /bin/sh, though it's possible that some systems will have /bin/ksh,
1030  *      /bin/pdksh, /bin/ash, /bin/bash, or even something such as
1031  *      D:/bin/sh.exe.
1032  */
1033 #define SH_PATH "$sh"  /**/
1034
1035 /* STDCHAR:
1036  *      This symbol is defined to be the type of char used in stdio.h.
1037  *      It has the values "unsigned char" or "char".
1038  */
1039 #define STDCHAR $stdchar        /**/
1040
1041 /* HAS_ACCESSX:
1042  *      This symbol, if defined, indicates that the accessx routine is
1043  *      available to do extended access checks.
1044  */
1045 #$d_accessx HAS_ACCESSX         /**/
1046
1047 /* HAS_EACCESS:
1048  *      This symbol, if defined, indicates that the eaccess routine is
1049  *      available to do extended access checks.
1050  */
1051 #$d_eaccess HAS_EACCESS         /**/
1052
1053 /* I_SYS_ACCESS:
1054  *     This symbol, if defined, indicates to the C program that it should
1055  *     include <sys/access.h>.
1056  */
1057 #$i_sysaccess   I_SYS_ACCESS                /**/
1058
1059 /* I_SYS_SECURITY:
1060  *     This symbol, if defined, indicates to the C program that it should
1061  *     include <sys/security.h>.
1062  */
1063 #$i_syssecrt   I_SYS_SECURITY   /**/
1064
1065 /* MEM_ALIGNBYTES:
1066  *       This symbol contains the number of bytes required to align a
1067  *       double. Usual values are 2, 4 and 8.
1068  *       On NeXT starting with 3.2, you can build "Fat" Multiple Architecture
1069  *       Binaries (MAB) for targets with varying alignment.  This only matters
1070  *       for perl, where the config.h can be generated and installed on one
1071  *       system, and used by a different architecture to build an extension.
1072  *       The default is eight, for safety.
1073  */
1074 #define MEM_ALIGNBYTES $alignbytes      /**/
1075
1076 /* BYTEORDER:
1077  *      This symbol holds the hexadecimal constant defined in byteorder,
1078  *      i.e. 0x1234 or 0x4321, etc...
1079  *      On NeXT 3.2 (and greater), you can build "Fat" Multiple Architecture
1080  *      Binaries (MAB) on either big endian or little endian machines.
1081  *      The endian-ness is available at compile-time.  This only matters
1082  *      for perl, where the config.h can be generated and installed on 
1083  *      one system, and used by a different architecture to build an
1084  *      extension.  Older versions of NeXT that might not have
1085  *      defined either *_ENDIAN__ were all on Motorola 680x0 series,
1086  *      so the default case (for NeXT) is big endian to catch them. 
1087  *      This might matter for NeXT 3.0.
1088  */
1089 #ifndef NeXT
1090 #define BYTEORDER 0x$byteorder  /* large digits for MSB */
1091 #else  /* NeXT */
1092 #ifdef __LITTLE_ENDIAN__
1093 #define BYTEORDER 0x1234
1094 #else /* __BIG_ENDIAN__ */
1095 #define BYTEORDER 0x4321
1096 #endif /* ENDIAN CHECK */
1097 #endif /* NeXT */
1098
1099 /* CASTI32:
1100  *      This symbol is defined if the C compiler can cast negative
1101  *      or large floating point numbers to 32-bit ints.
1102  */
1103 #$d_casti32     CASTI32         /**/
1104
1105 /* CASTNEGFLOAT:
1106  *      This symbol is defined if the C compiler can cast negative
1107  *      numbers to unsigned longs, ints and shorts.
1108  */
1109 /* CASTFLAGS:
1110  *      This symbol contains flags that say what difficulties the compiler
1111  *      has casting odd floating values to unsigned long:
1112  *              0 = ok
1113  *              1 = couldn't cast < 0
1114  *              2 = couldn't cast >= 0x80000000
1115  *              4 = couldn't cast in argument expression list
1116  */
1117 #$d_castneg     CASTNEGFLOAT            /**/
1118 #define CASTFLAGS $castflags            /**/
1119
1120 /* VOID_CLOSEDIR:
1121  *      This symbol, if defined, indicates that the closedir() routine
1122  *      does not return a value.
1123  */
1124 #$d_void_closedir VOID_CLOSEDIR         /**/
1125
1126 /* HAS_FD_SET:
1127  *      This symbol, when defined, indicates presence of the fd_set typedef
1128  *      in <sys/types.h>
1129  */
1130 #$d_fd_set HAS_FD_SET   /**/
1131
1132 /* Gconvert:
1133  *      This preprocessor macro is defined to convert a floating point
1134  *      number to a string without a trailing decimal point.  This
1135  *      emulates the behavior of sprintf("%g"), but is sometimes much more
1136  *      efficient.  If gconvert() is not available, but gcvt() drops the
1137  *      trailing decimal point, then gcvt() is used.  If all else fails,
1138  *      a macro using sprintf("%g") is used. Arguments for the Gconvert
1139  *      macro are: value, number of digits, whether trailing zeros should
1140  *      be retained, and the output buffer.
1141  *      Possible values are:
1142  *              d_Gconvert='gconvert((x),(n),(t),(b))'
1143  *              d_Gconvert='gcvt((x),(n),(b))'
1144  *              d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1145  *      The last two assume trailing zeros should not be kept.
1146  */
1147 #define Gconvert(x,n,t,b) $d_Gconvert
1148
1149 /* HAS_GNULIBC:
1150  *      This symbol, if defined, indicates to the C program that 
1151  *      the GNU C library is being used.
1152  */
1153 #$d_gnulibc HAS_GNULIBC         /**/
1154 /* HAS_ISASCII:
1155  *      This manifest constant lets the C program know that isascii 
1156  *      is available.
1157  */
1158 #$d_isascii HAS_ISASCII         /**/
1159
1160 /* HAS_LCHOWN:
1161  *      This symbol, if defined, indicates that the lchown routine is
1162  *      available to operate on a symbolic link (instead of following the
1163  *      link).
1164  */
1165 #$d_lchown HAS_LCHOWN           /**/
1166
1167 /* HAS_OPEN3:
1168  *      This manifest constant lets the C program know that the three
1169  *      argument form of open(2) is available.
1170  */
1171 #$d_open3 HAS_OPEN3             /**/
1172
1173 /* HAS_SAFE_BCOPY:
1174  *      This symbol, if defined, indicates that the bcopy routine is available
1175  *      to copy potentially overlapping memory blocks. Otherwise you should
1176  *      probably use memmove() or memcpy(). If neither is defined, roll your
1177  *      own version.
1178  */
1179 #$d_safebcpy HAS_SAFE_BCOPY     /**/
1180
1181 /* HAS_SAFE_MEMCPY:
1182  *      This symbol, if defined, indicates that the memcpy routine is available
1183  *      to copy potentially overlapping memory blocks. Otherwise you should
1184  *      probably use memmove() or memcpy(). If neither is defined, roll your
1185  *      own version.
1186  */
1187 #$d_safemcpy HAS_SAFE_MEMCPY    /**/
1188
1189 /* HAS_SANE_MEMCMP:
1190  *      This symbol, if defined, indicates that the memcmp routine is available
1191  *      and can be used to compare relative magnitudes of chars with their high
1192  *      bits set.  If it is not defined, roll your own version.
1193  */
1194 #$d_sanemcmp HAS_SANE_MEMCMP    /**/
1195
1196 /* HAS_SIGACTION:
1197  *      This symbol, if defined, indicates that Vr4's sigaction() routine
1198  *      is available.
1199  */
1200 #$d_sigaction HAS_SIGACTION     /**/
1201
1202 /* HAS_SIGSETJMP:
1203  *      This variable indicates to the C program that the sigsetjmp()
1204  *      routine is available to save the calling process's registers
1205  *      and stack environment for later use by siglongjmp(), and
1206  *      to optionally save the process's signal mask.  See
1207  *      Sigjmp_buf, Sigsetjmp, and Siglongjmp.
1208  */
1209 /* Sigjmp_buf:
1210  *      This is the buffer type to be used with Sigsetjmp and Siglongjmp.
1211  */
1212 /* Sigsetjmp:
1213  *      This macro is used in the same way as sigsetjmp(), but will invoke
1214  *      traditional setjmp() if sigsetjmp isn't available.
1215  *      See HAS_SIGSETJMP.
1216  */
1217 /* Siglongjmp:
1218  *      This macro is used in the same way as siglongjmp(), but will invoke
1219  *      traditional longjmp() if siglongjmp isn't available.
1220  *      See HAS_SIGSETJMP.
1221  */
1222 #$d_sigsetjmp HAS_SIGSETJMP     /**/
1223 #ifdef HAS_SIGSETJMP
1224 #define Sigjmp_buf sigjmp_buf
1225 #define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask))
1226 #define Siglongjmp(buf,retval) siglongjmp((buf),(retval))
1227 #else
1228 #define Sigjmp_buf jmp_buf
1229 #define Sigsetjmp(buf,save_mask) setjmp((buf))
1230 #define Siglongjmp(buf,retval) longjmp((buf),(retval))
1231 #endif
1232
1233 /* USE_STDIO_PTR:
1234  *      This symbol is defined if the _ptr and _cnt fields (or similar)
1235  *      of the stdio FILE structure can be used to access the stdio buffer
1236  *      for a file handle.  If this is defined, then the FILE_ptr(fp)
1237  *      and FILE_cnt(fp) macros will also be defined and should be used
1238  *      to access these fields.
1239  */
1240 /* FILE_ptr:
1241  *      This macro is used to access the _ptr field (or equivalent) of the
1242  *      FILE structure pointed to by its argument. This macro will always be
1243  *      defined if USE_STDIO_PTR is defined.
1244  */
1245 /* STDIO_PTR_LVALUE:
1246  *      This symbol is defined if the FILE_ptr macro can be used as an
1247  *      lvalue.
1248  */
1249 /* FILE_cnt:
1250  *      This macro is used to access the _cnt field (or equivalent) of the
1251  *      FILE structure pointed to by its argument. This macro will always be
1252  *      defined if USE_STDIO_PTR is defined.
1253  */
1254 /* STDIO_CNT_LVALUE:
1255  *      This symbol is defined if the FILE_cnt macro can be used as an
1256  *      lvalue.
1257  */
1258 #$d_stdstdio USE_STDIO_PTR      /**/
1259 #ifdef USE_STDIO_PTR
1260 #define FILE_ptr(fp)    $stdio_ptr
1261 #$d_stdio_ptr_lval STDIO_PTR_LVALUE             /**/
1262 #define FILE_cnt(fp)    $stdio_cnt
1263 #$d_stdio_cnt_lval STDIO_CNT_LVALUE             /**/
1264 #endif
1265
1266 /* USE_STDIO_BASE:
1267  *      This symbol is defined if the _base field (or similar) of the
1268  *      stdio FILE structure can be used to access the stdio buffer for
1269  *      a file handle.  If this is defined, then the FILE_base(fp) macro
1270  *      will also be defined and should be used to access this field.
1271  *      Also, the FILE_bufsiz(fp) macro will be defined and should be used
1272  *      to determine the number of bytes in the buffer.  USE_STDIO_BASE
1273  *      will never be defined unless USE_STDIO_PTR is.
1274  */
1275 /* FILE_base:
1276  *      This macro is used to access the _base field (or equivalent) of the
1277  *      FILE structure pointed to by its argument. This macro will always be
1278  *      defined if USE_STDIO_BASE is defined.
1279  */
1280 /* FILE_bufsiz:
1281  *      This macro is used to determine the number of bytes in the I/O
1282  *      buffer pointed to by _base field (or equivalent) of the FILE
1283  *      structure pointed to its argument. This macro will always be defined
1284  *      if USE_STDIO_BASE is defined.
1285  */
1286 #$d_stdiobase USE_STDIO_BASE    /**/
1287 #ifdef USE_STDIO_BASE
1288 #define FILE_base(fp)   $stdio_base
1289 #define FILE_bufsiz(fp) $stdio_bufsiz
1290 #endif
1291
1292 /* HAS_VPRINTF:
1293  *      This symbol, if defined, indicates that the vprintf routine is available
1294  *      to printf with a pointer to an argument list.  If unavailable, you
1295  *      may need to write your own, probably in terms of _doprnt().
1296  */
1297 /* USE_CHAR_VSPRINTF:
1298  *      This symbol is defined if this system has vsprintf() returning type
1299  *      (char*).  The trend seems to be to declare it as "int vsprintf()".  It
1300  *      is up to the package author to declare vsprintf correctly based on the
1301  *      symbol.
1302  */
1303 #$d_vprintf HAS_VPRINTF /**/
1304 #$d_charvspr USE_CHAR_VSPRINTF  /**/
1305
1306 /* DOUBLESIZE:
1307  *      This symbol contains the size of a double, so that the C preprocessor
1308  *      can make decisions based on it.
1309  */
1310 #define DOUBLESIZE $doublesize          /**/
1311
1312 /* I_TIME:
1313  *      This symbol, if defined, indicates to the C program that it should
1314  *      include <time.h>.
1315  */
1316 /* I_SYS_TIME:
1317  *      This symbol, if defined, indicates to the C program that it should
1318  *      include <sys/time.h>.
1319  */
1320 /* I_SYS_TIME_KERNEL:
1321  *      This symbol, if defined, indicates to the C program that it should
1322  *      include <sys/time.h> with KERNEL defined.
1323  */
1324 #$i_time I_TIME         /**/
1325 #$i_systime I_SYS_TIME          /**/
1326 #$i_systimek I_SYS_TIME_KERNEL          /**/
1327
1328 /* INTSIZE:
1329  *      This symbol contains the value of sizeof(int) so that the C
1330  *      preprocessor can make decisions based on it.
1331  */
1332 /* LONGSIZE:
1333  *      This symbol contains the value of sizeof(long) so that the C
1334  *      preprocessor can make decisions based on it.
1335  */
1336 /* SHORTSIZE:
1337  *      This symbol contains the value of sizeof(short) so that the C
1338  *      preprocessor can make decisions based on it.
1339  */
1340 #define INTSIZE $intsize                /**/
1341 #define LONGSIZE $longsize              /**/
1342 #define SHORTSIZE $shortsize            /**/
1343
1344 /* VAL_O_NONBLOCK:
1345  *      This symbol is to be used during open() or fcntl(F_SETFL) to turn on
1346  *      non-blocking I/O for the file descriptor. Note that there is no way
1347  *      back, i.e. you cannot turn it blocking again this way. If you wish to
1348  *      alternatively switch between blocking and non-blocking, use the
1349  *      ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
1350  */
1351 /* VAL_EAGAIN:
1352  *      This symbol holds the errno error code set by read() when no data was
1353  *      present on the non-blocking file descriptor.
1354  */
1355 /* RD_NODATA:
1356  *      This symbol holds the return code from read() when no data is present
1357  *      on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
1358  *      not defined, then you can't distinguish between no data and EOF by
1359  *      issuing a read(). You'll have to find another way to tell for sure!
1360  */
1361 /* EOF_NONBLOCK:
1362  *      This symbol, if defined, indicates to the C program that a read() on
1363  *      a non-blocking file descriptor will return 0 on EOF, and not the value
1364  *      held in RD_NODATA (-1 usually, in that case!).
1365  */
1366 #define VAL_O_NONBLOCK $o_nonblock
1367 #define VAL_EAGAIN $eagain
1368 #define RD_NODATA $rd_nodata
1369 #$d_eofnblk EOF_NONBLOCK
1370
1371 /* PTRSIZE:
1372  *      This symbol contains the size of a pointer, so that the C preprocessor
1373  *      can make decisions based on it.  It will be sizeof(void *) if
1374  *      the compiler supports (void *); otherwise it will be
1375  *      sizeof(char *).
1376  */
1377 #define PTRSIZE $ptrsize                /**/
1378
1379 /* Drand01:
1380  *      This macro is to be used to generate uniformly distributed
1381  *      random numbers over the range [0., 1.[.  You may have to supply
1382  *      an 'extern double drand48();' in your program since SunOS 4.1.3
1383  *      doesn't provide you with anything relevant in it's headers.
1384  *      See HAS_DRAND48_PROTO.
1385  */
1386 /* Rand_seed_t:
1387  *      This symbol defines the type of the argument of the
1388  *      random seed function.
1389  */
1390 /* seedDrand01:
1391  *      This symbol defines the macro to be used in seeding the
1392  *      random number generator (see Drand01).
1393  */
1394 /* RANDBITS:
1395  *      This symbol indicates how many bits are produced by the
1396  *      function used to generate normalized random numbers.
1397  *      Values include 15, 16, 31, and 48.
1398  */
1399 #define Drand01()               $drand01                /**/
1400 #define Rand_seed_t             $randseedtype           /**/
1401 #define seedDrand01(x)  $seedfunc((Rand_seed_t)x)       /**/
1402 #define RANDBITS                $randbits               /**/
1403
1404 /* SSize_t:
1405  *      This symbol holds the type used by functions that return
1406  *      a count of bytes or an error condition.  It must be a signed type.
1407  *      It is usually ssize_t, but may be long or int, etc.
1408  *      It may be necessary to include <sys/types.h> or <unistd.h>
1409  *      to get any typedef'ed information.
1410  *      We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
1411  */
1412 #define SSize_t $ssizetype       /* signed count of bytes */
1413
1414 /* EBCDIC:
1415  *     This symbol, if defined, indicates that this system uses
1416  *      EBCDIC encoding.
1417  */
1418 #$ebcdic        EBCDIC          /**/
1419
1420 /* OSNAME:
1421  *      This symbol contains the name of the operating system, as determined
1422  *      by Configure.  You shouldn't rely on it too much; the specific
1423  *      feature tests from Configure are generally more reliable.
1424  */
1425 #define OSNAME "$osname"                /**/
1426
1427 /* CAT2:
1428  *      This macro catenates 2 tokens together.
1429  */
1430 /* STRINGIFY:
1431  *      This macro surrounds its token with double quotes.
1432  */
1433 #if $cpp_stuff == 1
1434 #define CAT2(a,b)a/**/b
1435 #define STRINGIFY(a)"a"
1436                 /* If you can get stringification with catify, tell me how! */
1437 #endif
1438 #if $cpp_stuff == 42
1439 #define CAT2(a,b)a ## b
1440 #define StGiFy(a)# a
1441 #define STRINGIFY(a)StGiFy(a)
1442 #endif
1443 #if $cpp_stuff != 1 && $cpp_stuff != 42
1444 #include "Bletch: How does this C preprocessor catenate tokens?"
1445 #endif
1446
1447 /* CPPSTDIN:
1448  *      This symbol contains the first part of the string which will invoke
1449  *      the C preprocessor on the standard input and produce to standard
1450  *      output.  Typical value of "cc -E" or "/lib/cpp", but it can also
1451  *      call a wrapper. See CPPRUN.
1452  */
1453 /* CPPMINUS:
1454  *      This symbol contains the second part of the string which will invoke
1455  *      the C preprocessor on the standard input and produce to standard
1456  *      output.  This symbol will have the value "-" if CPPSTDIN needs a minus
1457  *      to specify standard input, otherwise the value is "".
1458  */
1459 /* CPPRUN:
1460  *      This symbol contains the string which will invoke a C preprocessor on
1461  *      the standard input and produce to standard output. It needs to end
1462  *      with CPPLAST, after all other preprocessor flags have been specified.
1463  *      The main difference with CPPSTDIN is that this program will never be a
1464  *      pointer to a shell wrapper, i.e. it will be empty if no preprocessor is
1465  *      available directly to the user. Note that it may well be different from
1466  *      the preprocessor used to compile the C program.
1467  */
1468 #define CPPSTDIN "$cppstdin"
1469 #define CPPMINUS "$cppminus"
1470 #define CPPRUN "$cpprun"
1471
1472 /* HAS_ACCESS:
1473  *      This manifest constant lets the C program know that the access()
1474  *      system call is available to check for accessibility using real UID/GID.
1475  *      (always present on UNIX.)
1476  */
1477 #$d_access HAS_ACCESS           /**/
1478
1479 /* HAS_CSH:
1480  *      This symbol, if defined, indicates that the C-shell exists.
1481  */
1482 /* CSH:
1483  *      This symbol, if defined, contains the full pathname of csh.
1484  */
1485 #$d_csh HAS_CSH         /**/
1486 #ifdef HAS_CSH
1487 #define CSH "$full_csh" /**/
1488 #endif
1489
1490 /* HAS_ENDGRENT:
1491  *      This symbol, if defined, indicates that the getgrent routine is
1492  *      available for finalizing sequential access of the group database.
1493  */
1494 #$d_endgrent HAS_ENDGRENT               /**/
1495
1496 /* HAS_ENDHOSTENT:
1497  *      This symbol, if defined, indicates that the endhostent() routine is
1498  *      available to close whatever was being used for host queries.
1499  */
1500 #$d_endhent HAS_ENDHOSTENT              /**/
1501
1502 /* HAS_ENDNETENT:
1503  *      This symbol, if defined, indicates that the endnetent() routine is
1504  *      available to close whatever was being used for network queries.
1505  */
1506 #$d_endnent HAS_ENDNETENT               /**/
1507
1508 /* HAS_ENDPROTOENT:
1509  *      This symbol, if defined, indicates that the endprotoent() routine is
1510  *      available to close whatever was being used for protocol queries.
1511  */
1512 #$d_endpent HAS_ENDPROTOENT             /**/
1513
1514 /* HAS_ENDPWENT:
1515  *      This symbol, if defined, indicates that the getgrent routine is
1516  *      available for finalizing sequential access of the passwd database.
1517  */
1518 #$d_endpwent HAS_ENDPWENT               /**/
1519
1520 /* HAS_ENDSERVENT:
1521  *      This symbol, if defined, indicates that the endservent() routine is
1522  *      available to close whatever was being used for service queries.
1523  */
1524 #$d_endsent HAS_ENDSERVENT              /**/
1525
1526 /* HAS_GETGRENT:
1527  *      This symbol, if defined, indicates that the getgrent routine is
1528  *      available for sequential access of the group database.
1529  */
1530 #$d_getgrent HAS_GETGRENT               /**/
1531
1532 /* HAS_GETHOSTBYADDR:
1533  *      This symbol, if defined, indicates that the gethostbyaddr() routine is
1534  *      available to look up hosts by their IP addresses.
1535  */
1536 #$d_gethbyaddr HAS_GETHOSTBYADDR                /**/
1537
1538 /* HAS_GETHOSTBYNAME:
1539  *      This symbol, if defined, indicates that the gethostbyname() routine is
1540  *      available to look up host names in some data base or other.
1541  */
1542 #$d_gethbyname HAS_GETHOSTBYNAME                /**/
1543
1544 /* HAS_GETHOSTENT:
1545  *      This symbol, if defined, indicates that the gethostent() routine is
1546  *      available to look up host names in some data base or another.
1547  */
1548 #$d_gethent HAS_GETHOSTENT              /**/
1549
1550 /* HAS_GETNETBYADDR:
1551  *      This symbol, if defined, indicates that the getnetbyaddr() routine is
1552  *      available to look up networks by their IP addresses.
1553  */
1554 #$d_getnbyaddr HAS_GETNETBYADDR         /**/
1555
1556 /* HAS_GETNETBYNAME:
1557  *      This symbol, if defined, indicates that the getnetbyname() routine is
1558  *      available to look up networks by their names.
1559  */
1560 #$d_getnbyname HAS_GETNETBYNAME         /**/
1561
1562 /* HAS_GETNETENT:
1563  *      This symbol, if defined, indicates that the getnetent() routine is
1564  *      available to look up network names in some data base or another.
1565  */
1566 #$d_getnent HAS_GETNETENT               /**/
1567
1568 /* HAS_GETPROTOENT:
1569  *      This symbol, if defined, indicates that the getprotoent() routine is
1570  *      available to look up protocols in some data base or another.
1571  */
1572 #$d_getpent HAS_GETPROTOENT             /**/
1573
1574 /* HAS_GETPROTOBYNAME:
1575  *      This symbol, if defined, indicates that the getprotobyname()
1576  *      routine is available to look up protocols by their name.
1577  */
1578 /* HAS_GETPROTOBYNUMBER:
1579  *      This symbol, if defined, indicates that the getprotobynumber()
1580  *      routine is available to look up protocols by their number.
1581  */
1582 #$d_getpbyname HAS_GETPROTOBYNAME               /**/
1583 #$d_getpbynumber HAS_GETPROTOBYNUMBER           /**/
1584
1585 /* HAS_GETPWENT:
1586  *      This symbol, if defined, indicates that the getpwent routine is
1587  *      available for sequential access of the passwd database.
1588  *      If this is not available, the older getpw() function may be available.
1589  */
1590 #$d_getpwent HAS_GETPWENT               /**/
1591
1592 /* HAS_GETSERVENT:
1593  *      This symbol, if defined, indicates that the getservent() routine is
1594  *      available to look up network services in some data base or another.
1595  */
1596 #$d_getsent HAS_GETSERVENT              /**/
1597
1598 /* HAS_GETSERVBYNAME:
1599  *      This symbol, if defined, indicates that the getservbyname()
1600  *      routine is available to look up services by their name.
1601  */
1602 /* HAS_GETSERVBYPORT:
1603  *      This symbol, if defined, indicates that the getservbyport()
1604  *      routine is available to look up services by their port.
1605  */
1606 #$d_getsbyname HAS_GETSERVBYNAME                /**/
1607 #$d_getsbyport HAS_GETSERVBYPORT                /**/
1608
1609 /* HAS_HTONL:
1610  *      This symbol, if defined, indicates that the htonl() routine (and
1611  *      friends htons() ntohl() ntohs()) are available to do network
1612  *      order byte swapping.
1613  */
1614 /* HAS_HTONS:
1615  *      This symbol, if defined, indicates that the htons() routine (and
1616  *      friends htonl() ntohl() ntohs()) are available to do network
1617  *      order byte swapping.
1618  */
1619 /* HAS_NTOHL:
1620  *      This symbol, if defined, indicates that the ntohl() routine (and
1621  *      friends htonl() htons() ntohs()) are available to do network
1622  *      order byte swapping.
1623  */
1624 /* HAS_NTOHS:
1625  *      This symbol, if defined, indicates that the ntohs() routine (and
1626  *      friends htonl() htons() ntohl()) are available to do network
1627  *      order byte swapping.
1628  */
1629 #$d_htonl HAS_HTONL             /**/
1630 #$d_htonl HAS_HTONS             /**/
1631 #$d_htonl HAS_NTOHL             /**/
1632 #$d_htonl HAS_NTOHS             /**/
1633
1634 /* HAS_LONG_DOUBLE:
1635  *      This symbol will be defined if the C compiler supports long
1636  *      doubles.
1637  */
1638 /* LONG_DOUBLESIZE:
1639  *      This symbol contains the size of a long double, so that the 
1640  *      C preprocessor can make decisions based on it.  It is only
1641  *      defined if the system supports long doubles.
1642  */
1643 #$d_longdbl HAS_LONG_DOUBLE             /**/
1644 #ifdef HAS_LONG_DOUBLE
1645 #define LONG_DOUBLESIZE $longdblsize            /**/
1646 #endif
1647
1648 /* HAS_LONG_LONG:
1649  *      This symbol will be defined if the C compiler supports long long.
1650  */
1651 /* LONGLONGSIZE:
1652  *      This symbol contains the size of a long long, so that the 
1653  *      C preprocessor can make decisions based on it.  It is only
1654  *      defined if the system supports long long.
1655  */
1656 #$d_longlong HAS_LONG_LONG              /**/
1657 #ifdef HAS_LONG_LONG
1658 #define LONGLONGSIZE $longlongsize              /**/
1659 #endif
1660
1661 /* HAS_MSG:
1662  *      This symbol, if defined, indicates that the entire msg*(2) library is
1663  *      supported (IPC mechanism based on message queues).
1664  */
1665 #$d_msg HAS_MSG         /**/
1666
1667 /* HAS_SEM:
1668  *      This symbol, if defined, indicates that the entire sem*(2) library is
1669  *      supported.
1670  */
1671 #$d_sem HAS_SEM         /**/
1672
1673 /* HAS_SETGRENT:
1674  *      This symbol, if defined, indicates that the setgrent routine is
1675  *      available for initializing sequential access of the group database.
1676  */
1677 #$d_setgrent HAS_SETGRENT               /**/
1678
1679 /* HAS_SETGROUPS:
1680  *      This symbol, if defined, indicates that the setgroups() routine is
1681  *      available to set the list of process groups.  If unavailable, multiple
1682  *      groups are probably not supported.
1683  */
1684 #$d_setgrps HAS_SETGROUPS               /**/
1685
1686 /* HAS_SETHOSTENT:
1687  *      This symbol, if defined, indicates that the sethostent() routine is
1688  *      available.
1689  */
1690 #$d_sethent HAS_SETHOSTENT              /**/
1691
1692 /* HAS_SETNETENT:
1693  *      This symbol, if defined, indicates that the setnetent() routine is
1694  *      available.
1695  */
1696 #$d_setnent HAS_SETNETENT               /**/
1697
1698 /* HAS_SETPROTOENT:
1699  *      This symbol, if defined, indicates that the setprotoent() routine is
1700  *      available.
1701  */
1702 #$d_setpent HAS_SETPROTOENT             /**/
1703
1704 /* HAS_SETPWENT:
1705  *      This symbol, if defined, indicates that the setpwent routine is
1706  *      available for initializing sequential access of the passwd database.
1707  */
1708 #$d_setpwent HAS_SETPWENT               /**/
1709
1710 /* HAS_SETSERVENT:
1711  *      This symbol, if defined, indicates that the setservent() routine is
1712  *      available.
1713  */
1714 #$d_setsent HAS_SETSERVENT              /**/
1715
1716 /* HAS_SETVBUF:
1717  *      This symbol, if defined, indicates that the setvbuf routine is
1718  *      available to change buffering on an open stdio stream.
1719  *      to a line-buffered mode.
1720  */
1721 #$d_setvbuf HAS_SETVBUF         /**/
1722
1723 /* HAS_SHM:
1724  *      This symbol, if defined, indicates that the entire shm*(2) library is
1725  *      supported.
1726  */
1727 #$d_shm HAS_SHM         /**/
1728
1729 /* HAS_SOCKET:
1730  *      This symbol, if defined, indicates that the BSD socket interface is
1731  *      supported.
1732  */
1733 /* HAS_SOCKETPAIR:
1734  *      This symbol, if defined, indicates that the BSD socketpair() call is
1735  *      supported.
1736  */
1737 /* HAS_MSG_CTRUNC:
1738  *      This symbol, if defined, indicates that the MSG_CTRUNC is supported.
1739  *      Checking just with #ifdef might not be enough because this symbol
1740  *      has been known to be an enum.
1741  */
1742 /* HAS_MSG_DONTROUTE:
1743  *      This symbol, if defined, indicates that the MSG_DONTROUTE is supported.
1744  *      Checking just with #ifdef might not be enough because this symbol
1745  *      has been known to be an enum.
1746  */
1747 /* HAS_MSG_OOB:
1748  *      This symbol, if defined, indicates that the MSG_OOB is supported.
1749  *      Checking just with #ifdef might not be enough because this symbol
1750  *      has been known to be an enum.
1751  */
1752 /* HAS_MSG_PEEK:
1753  *      This symbol, if defined, indicates that the MSG_PEEK is supported.
1754  *      Checking just with #ifdef might not be enough because this symbol
1755  *      has been known to be an enum.
1756  */
1757 /* HAS_MSG_PROXY:
1758  *      This symbol, if defined, indicates that the MSG_PROXY is supported.
1759  *      Checking just with #ifdef might not be enough because this symbol
1760  *      has been known to be an enum.
1761  */
1762 /* HAS_SCM_RIGHTS:
1763  *      This symbol, if defined, indicates that the SCM_RIGHTS is supported.
1764  *      Checking just with #ifdef might not be enough because this symbol
1765  *      has been known to be an enum.
1766  */
1767 /* HAS_SENDMSG:
1768  *      This symbol, if defined, indicates that the sendmsg is supported
1769  *      to send messages between sockets.  You will also need struct
1770  *      iovec from <sys/uio.h>, HAS_STRUCT_IOVEC and I_SYSUIO.
1771  */
1772 /* HAS_RECVMSG:
1773  *      This symbol, if defined, indicates that the recvmsg is supported
1774  *      to send messages between sockets.  You will also need struct
1775  *      iovec from <sys/uio.h>, HAS_STRUCT_IOVEC and I_SYSUIO.
1776  */
1777 /* HAS_STRUCT_MSGHDR:
1778  *      This symbol, if defined, indicates that the struct msghdr
1779  *      (BSD 4.3 or 4.4) is supported.  You will also need struct
1780  *      iovec from <sys/uio.h>, HAS_STRUCT_IOVEC and I_SYSUIO.
1781  */
1782 /* HAS_STRUCT_CMSGHDR:
1783  *      This symbol, if defined, indicates that the struct cmsghdr
1784  *      (BSD 4.4) is supported.  You will also need struct
1785  *      iovec from <sys/uio.h>, HAS_STRUCT_IOVEC and I_SYSUIO.
1786  */
1787 #$d_socket      HAS_SOCKET              /**/
1788 #$d_sockpair    HAS_SOCKETPAIR  /**/
1789 #$d_msg_ctrunc  HAS_MSG_CTRUNC  /**/
1790 #$d_msg_dontroute       HAS_MSG_DONTROUTE       /**/
1791 #$d_msg_oob     HAS_MSG_OOB     /**/
1792 #$d_msg_peek    HAS_MSG_PEEK    /**/
1793 #$d_msg_proxy   HAS_MSG_PROXY   /**/
1794 #$d_scm_rights  HAS_SCM_RIGHTS  /**/
1795 #$d_sendmsg     HAS_SENDMSG     /**/
1796 #$d_recvmsg     HAS_RECVMSG     /**/
1797 #$d_msghdr_s    HAS_STRUCT_MSGHDR       /**/
1798 #$d_cmsghdr_s   HAS_STRUCT_CMSGHDR      /**/
1799
1800 /* USE_STAT_BLOCKS:
1801  *      This symbol is defined if this system has a stat structure declaring
1802  *      st_blksize and st_blocks.
1803  */
1804 #$d_statblks USE_STAT_BLOCKS    /**/
1805
1806 /* HAS_STRERROR:
1807  *      This symbol, if defined, indicates that the strerror routine is
1808  *      available to translate error numbers to strings. See the writeup
1809  *      of Strerror() in this file before you try to define your own.
1810  */
1811 /* HAS_SYS_ERRLIST:
1812  *      This symbol, if defined, indicates that the sys_errlist array is
1813  *      available to translate error numbers to strings. The extern int
1814  *      sys_nerr gives the size of that table.
1815  */
1816 /* Strerror:
1817  *      This preprocessor symbol is defined as a macro if strerror() is
1818  *      not available to translate error numbers to strings but sys_errlist[]
1819  *      array is there.
1820  */
1821 #$d_strerror HAS_STRERROR               /**/
1822 #$d_syserrlst HAS_SYS_ERRLIST   /**/
1823 #define Strerror(e) $d_strerrm
1824
1825 /* HAS_UNION_SEMUN:
1826  *      This symbol, if defined, indicates that the union semun is
1827  *      defined by including <sys/sem.h>.  If not, the user code
1828  *      probably needs to define it as:
1829  *      union semun {
1830  *          int val;
1831  *          struct semid_ds *buf;
1832  *          unsigned short *array;
1833  *      }
1834  */
1835 /* USE_SEMCTL_SEMUN:
1836  *      This symbol, if defined, indicates that union semun is
1837  *      used for semctl IPC_STAT.
1838  */
1839 /* USE_SEMCTL_SEMID_DS:
1840  *      This symbol, if defined, indicates that struct semid_ds * is
1841  *      used for semctl IPC_STAT.
1842  */
1843 #$d_union_semun HAS_UNION_SEMUN /**/
1844 #$d_semctl_semun USE_SEMCTL_SEMUN       /**/
1845 #$d_semctl_semid_ds USE_SEMCTL_SEMID_DS /**/
1846
1847 /* Signal_t:
1848  *      This symbol's value is either "void" or "int", corresponding to the
1849  *      appropriate return type of a signal handler.  Thus, you can declare
1850  *      a signal handler using "Signal_t (*handler)()", and define the
1851  *      handler using "Signal_t handler(sig)".
1852  */
1853 #define Signal_t $signal_t      /* Signal handler's return type */
1854
1855 /* Groups_t:
1856  *      This symbol holds the type used for the second argument to
1857  *      getgroups() and setgropus().  Usually, this is the same as
1858  *      gidtype (gid_t) , but sometimes it isn't.
1859  *      It can be int, ushort, uid_t, etc... 
1860  *      It may be necessary to include <sys/types.h> to get any 
1861  *      typedef'ed information.  This is only required if you have
1862  *      getgroups() or setgropus()..
1863  */
1864 #if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS)
1865 #define Groups_t $groupstype    /* Type for 2nd arg to [sg]etgroups() */
1866 #endif
1867
1868 /* I_GRP:
1869  *      This symbol, if defined, indicates to the C program that it should
1870  *      include <grp.h>.
1871  */
1872 /* GRPASSWD:
1873  *      This symbol, if defined, indicates to the C program that struct group
1874  *      in <grp.h> contains gr_passwd.
1875  */
1876 #$i_grp I_GRP           /**/
1877 #$d_grpasswd GRPASSWD   /**/
1878
1879 /* I_NETDB:
1880  *      This symbol, if defined, indicates that <netdb.h> exists and
1881  *      should be included.
1882  */
1883 #$i_netdb I_NETDB               /**/
1884
1885 /* I_PWD:
1886  *      This symbol, if defined, indicates to the C program that it should
1887  *      include <pwd.h>.
1888  */
1889 /* PWQUOTA:
1890  *      This symbol, if defined, indicates to the C program that struct passwd
1891  *      contains pw_quota.
1892  */
1893 /* PWAGE:
1894  *      This symbol, if defined, indicates to the C program that struct passwd
1895  *      contains pw_age.
1896  */
1897 /* PWCHANGE:
1898  *      This symbol, if defined, indicates to the C program that struct passwd
1899  *      contains pw_change.
1900  */
1901 /* PWCLASS:
1902  *      This symbol, if defined, indicates to the C program that struct passwd
1903  *      contains pw_class.
1904  */
1905 /* PWEXPIRE:
1906  *      This symbol, if defined, indicates to the C program that struct passwd
1907  *      contains pw_expire.
1908  */
1909 /* PWCOMMENT:
1910  *      This symbol, if defined, indicates to the C program that struct passwd
1911  *      contains pw_comment.
1912  */
1913 /* PWGECOS:
1914  *      This symbol, if defined, indicates to the C program that struct passwd
1915  *      contains pw_gecos.
1916  */
1917 /* PWPASSWD:
1918  *      This symbol, if defined, indicates to the C program that struct passwd
1919  *      contains pw_passwd.
1920  */
1921 #$i_pwd I_PWD           /**/
1922 #$d_pwquota PWQUOTA     /**/
1923 #$d_pwage PWAGE /**/
1924 #$d_pwchange PWCHANGE   /**/
1925 #$d_pwclass PWCLASS     /**/
1926 #$d_pwexpire PWEXPIRE   /**/
1927 #$d_pwcomment PWCOMMENT /**/
1928 #$d_pwgecos PWGECOS     /**/
1929 #$d_pwpasswd PWPASSWD   /**/
1930
1931 /* I_SYSUIO:
1932  *      This symbol, if defined, indicates that <sys/uio.h> exists and
1933  *      should be included.
1934  */
1935 #$i_sysuio      I_SYSUIO                /**/
1936
1937 /* Free_t:
1938  *      This variable contains the return type of free().  It is usually
1939  * void, but occasionally int.
1940  */
1941 /* Malloc_t:
1942  *      This symbol is the type of pointer returned by malloc and realloc.
1943  */
1944 #define Malloc_t $malloctype                    /**/
1945 #define Free_t $freetype                        /**/
1946
1947 /* MYMALLOC:
1948  *      This symbol, if defined, indicates that we're using our own malloc.
1949  */
1950 #$d_mymalloc MYMALLOC                   /**/
1951
1952 /* SIG_NAME:
1953  *      This symbol contains a list of signal names in order of
1954  *      signal number. This is intended
1955  *      to be used as a static array initialization, like this:
1956  *              char *sig_name[] = { SIG_NAME };
1957  *      The signals in the list are separated with commas, and each signal
1958  *      is surrounded by double quotes. There is no leading SIG in the signal
1959  *      name, i.e. SIGQUIT is known as "QUIT".
1960  *      Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
1961  *      etc., where nn is the actual signal number (e.g. NUM37).
1962  *      The signal number for sig_name[i] is stored in sig_num[i].
1963  *      The last element is 0 to terminate the list with a NULL.  This
1964  *      corresponds to the 0 at the end of the sig_num list.
1965  */
1966 /* SIG_NUM:
1967  *      This symbol contains a list of signal numbers, in the same order as the
1968  *      SIG_NAME list. It is suitable for static array initialization, as in:
1969  *              int sig_num[] = { SIG_NUM };
1970  *      The signals in the list are separated with commas, and the indices
1971  *      within that list and the SIG_NAME list match, so it's easy to compute
1972  *      the signal name from a number or vice versa at the price of a small
1973  *      dynamic linear lookup. 
1974  *      Duplicates are allowed, but are moved to the end of the list.
1975  *      The signal number corresponding to sig_name[i] is sig_number[i].
1976  *      if (i < NSIG) then sig_number[i] == i.  
1977  *      The last element is 0, corresponding to the 0 at the end of
1978  *      the sig_name list.
1979  */
1980 #define SIG_NAME $sig_name_init         /**/
1981 #define SIG_NUM  $sig_num_init          /**/
1982
1983 /* VOIDFLAGS:
1984  *      This symbol indicates how much support of the void type is given by this
1985  *      compiler.  What various bits mean:
1986  *
1987  *          1 = supports declaration of void
1988  *          2 = supports arrays of pointers to functions returning void
1989  *          4 = supports comparisons between pointers to void functions and
1990  *                  addresses of void functions
1991  *          8 = suports declaration of generic void pointers
1992  *
1993  *      The package designer should define VOIDUSED to indicate the requirements
1994  *      of the package.  This can be done either by #defining VOIDUSED before
1995  *      including config.h, or by defining defvoidused in Myinit.U.  If the
1996  *      latter approach is taken, only those flags will be tested.  If the
1997  *      level of void support necessary is not present, defines void to int.
1998  */
1999 #ifndef VOIDUSED
2000 #define VOIDUSED $defvoidused
2001 #endif
2002 #define VOIDFLAGS $voidflags
2003 #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
2004 #define void int                /* is void to be avoided? */
2005 #define M_VOID                  /* Xenix strikes again */
2006 #endif
2007
2008 /* ARCHLIB:
2009  *      This variable, if defined, holds the name of the directory in
2010  *      which the user wants to put architecture-dependent public
2011  *      library files for $package.  It is most often a local directory
2012  *      such as /usr/local/lib.  Programs using this variable must be
2013  *      prepared to deal with filename expansion.  If ARCHLIB is the
2014  *      same as PRIVLIB, it is not defined, since presumably the
2015  *      program already searches PRIVLIB.
2016  */
2017 /* ARCHLIB_EXP:
2018  *      This symbol contains the ~name expanded version of ARCHLIB, to be used
2019  *      in programs that are not prepared to deal with ~ expansion at run-time.
2020  */
2021 #$d_archlib ARCHLIB "$archlib"          /**/
2022 #$d_archlib ARCHLIB_EXP "$archlibexp"           /**/
2023
2024 /* DLSYM_NEEDS_UNDERSCORE:
2025  *      This symbol, if defined, indicates that we need to prepend an
2026  *      underscore to the symbol name before calling dlsym().  This only
2027  *      makes sense if you *have* dlsym, which we will presume is the
2028  *      case if you're using dl_dlopen.xs.
2029  */
2030 #$d_dlsymun     DLSYM_NEEDS_UNDERSCORE  /**/
2031
2032 /* HAS_FSEEKO:
2033  *      This symbol, if defined, indicates that the fseeko routine is
2034  *      available to fseek beyond 32 bits (useful for ILP32 hosts).
2035  */
2036 #$d_fseeko HAS_FSEEKO           /**/
2037
2038 /* HAS_FTELLO:
2039  *      This symbol, if defined, indicates that the ftello routine is
2040  *      available to ftell from beyond 32 bits (useful for ILP32 hosts).
2041  */
2042 #$d_ftello HAS_FTELLO           /**/
2043
2044 /* HAS_READV:
2045  *      This symbol, if defined, indicates that the readv routine is
2046  *      available to do gather reads.  You will also need <sys/uio.h>
2047  *      and there I_SYSUIO.
2048  */
2049 #$d_readv HAS_READV             /**/
2050
2051 /* USE_SFIO:
2052  *      This symbol, if defined, indicates that sfio should
2053  *      be used.
2054  */
2055 #$d_sfio        USE_SFIO                /**/
2056
2057 /* HAS_WRITEV:
2058  *      This symbol, if defined, indicates that the writev routine is
2059  *      available to do scatter writes.
2060  */
2061 #$d_writev HAS_WRITEV           /**/
2062
2063 /* HAS_DBMINIT64:
2064  *      This symbol, if defined, indicates that the dbminit64 routine is
2065  *      available to open dbm files larger than 2 gigabytes.
2066  */
2067 /* HAS_DBMCLOSE64:
2068  *      This symbol, if defined, indicates that the dbmclose64 routine is
2069  *      available to close dbm files larger than 2 gigabytes.
2070  */
2071 /* HAS_FETCH64:
2072  *      This symbol, if defined, indicates that the fetch64 routine is
2073  *      available to fetch from dbm files larger than 2 gigabytes.
2074  */
2075 /* HAS_STORE64:
2076  *      This symbol, if defined, indicates that the store64 routine is
2077  *      available to store to dbm files larger than 2 gigabytes.
2078  */
2079 /* HAS_DELETE64:
2080  *      This symbol, if defined, indicates that the delete64 routine is
2081  *      available to delete from dbm files larger than 2 gigabytes.
2082  */
2083 /* HAS_FIRSTKEY64:
2084  *      This symbol, if defined, indicates that the firstkey64 routine is
2085  *      available to firstkey in dbm files larger than 2 gigabytes.
2086  */
2087 /* HAS_NEXTKEY64:
2088  *      This symbol, if defined, indicates that the nextkey64 routine is
2089  *      available to nextkey in dbm files larger than 2 gigabytes.
2090  */
2091 #$d_dbminit64   HAS_DBMINIT64   /**/
2092 #$d_dbmclose64  HAS_DBMCLOSE64  /**/
2093 #$d_fetch64     HAS_FETCH64             /**/
2094 #$d_store64     HAS_STORE64             /**/
2095 #$d_delete64    HAS_DELETE64            /**/
2096 #$d_firstkey64  HAS_FIRSTKEY64  /**/
2097 #$d_nextkey64   HAS_NEXTKEY64   /**/
2098
2099 /* USE_DYNAMIC_LOADING:
2100  *      This symbol, if defined, indicates that dynamic loading of
2101  *      some sort is available.
2102  */
2103 #$usedl USE_DYNAMIC_LOADING             /**/
2104
2105 /* DB_Prefix_t:
2106  *      This symbol contains the type of the prefix structure element
2107  *      in the <db.h> header file.  In older versions of DB, it was
2108  *      int, while in newer ones it is u_int32_t.
2109  */
2110 /* DB_Hash_t:
2111  *      This symbol contains the type of the prefix structure element
2112  *      in the <db.h> header file.  In older versions of DB, it was
2113  *      int, while in newer ones it is size_t.
2114  */
2115 #define DB_Hash_t       $db_hashtype            /**/
2116 #define DB_Prefix_t     $db_prefixtype          /**/
2117
2118 /* I_INTTYPES:
2119  *     This symbol, if defined, indicates to the C program that it should
2120  *     include <inttypes.h>.
2121  */
2122 /* HAS_INT64_T:
2123  *     This symbol will defined if the C compiler supports int64_t.
2124  *     Usually the <inttypes.h> needs to be included, but sometimes
2125  *      <sys/types.h> is enough.
2126  */
2127 #$i_inttypes   I_INTTYPES                /**/
2128 #$d_int64t     HAS_INT64_T               /**/
2129
2130 /* I_POLL:
2131  *      This symbol, if defined, indicates that <poll.h> exists and
2132  *      should be included.
2133  */
2134 #$i_poll        I_POLL          /**/
2135
2136 /* HAS_FSTAT64:
2137  *      This symbol, if defined, indicates that the fstat64 routine is
2138  *      available to stat files (fds) larger than 2 gigabytes.
2139  */
2140 /* HAS_FTRUNCATE64:
2141  *      This symbol, if defined, indicates that the ftruncate64 routine is
2142  *      available to tell files larger than 2 gigabytes.
2143  */
2144 /* HAS_LSEEK64:
2145  *      This symbol, if defined, indicates that the lseek64 routine is
2146  *      available to seek files larger than 2 gigabytes.
2147  */
2148 /* HAS_LSTAT64:
2149  *      This symbol, if defined, indicates that the lstat64 routine is
2150  *      available to stat files (symlinks) larger than 2 gigabytes.
2151  */
2152 /* HAS_OPEN64:
2153  *      This symbol, if defined, indicates that the open64 routine is
2154  *      available to open files larger than 2 gigabytes.
2155  */
2156 /* HAS_OPENDIR64:
2157  *      This symbol, if defined, indicates that the opendir64 routine is
2158  *      available to opendir files larger than 2 gigabytes.
2159  */
2160 /* HAS_READDIR64:
2161  *      This symbol, if defined, indicates that the readdir64 routine is
2162  *      available to readdir files larger than 2 gigabytes.
2163  */
2164 /* HAS_SEEKDIR64:
2165  *      This symbol, if defined, indicates that the seekdir64 routine is
2166  *      available to seekdir files larger than 2 gigabytes.
2167  */
2168 /* HAS_STAT64:
2169  *      This symbol, if defined, indicates that the stat64 routine is
2170  *      available to stat files larger than 2 gigabytes.
2171  */
2172 /* HAS_TELLDIR64:
2173  *      This symbol, if defined, indicates that the telldir64 routine is
2174  *      available to telldir files larger than 2 gigabytes.
2175  */
2176 /* HAS_TRUNCATE64:
2177  *      This symbol, if defined, indicates that the truncate64 routine is
2178  *      available to truncate files larger than 2 gigabytes.
2179  */
2180 /* HAS_OFF64_T:
2181  *      This symbol will be defined if the C compiler supports off64_t.
2182  */
2183 /* HAS_STRUCT_DIRENT64:
2184  *      This symbol will be defined if the C compiler supports struct dirent64.
2185  */
2186 #$d_fstat64     HAS_FSTAT64             /**/
2187 #$d_ftruncate64 HAS_FTRUNCATE64 /**/
2188 #$d_lseek64     HAS_LSEEK64             /**/
2189 #$d_lstat64     HAS_LSTAT64             /**/
2190 #$d_open64      HAS_OPEN64              /**/
2191 #$d_opendir64   HAS_OPENDIR64   /**/
2192 #$d_readdir64   HAS_READDIR64   /**/
2193 #$d_seekdir64   HAS_SEEKDIR64   /**/
2194 #$d_stat64      HAS_STAT64              /**/
2195 #$d_telldir64   HAS_TELLDIR64   /**/
2196 #$d_truncate64  HAS_TRUNCATE64  /**/
2197 #$d_off64t      HAS_OFF64_T     /**/
2198 #$d_dirent64_s   HAS_STRUCT_DIRENT64    /**/
2199
2200 /* PRIVLIB:
2201  *      This symbol contains the name of the private library for this package.
2202  *      The library is private in the sense that it needn't be in anyone's
2203  *      execution path, but it should be accessible by the world.  The program
2204  *      should be prepared to do ~ expansion.
2205  */
2206 /* PRIVLIB_EXP:
2207  *      This symbol contains the ~name expanded version of PRIVLIB, to be used
2208  *      in programs that are not prepared to deal with ~ expansion at run-time.
2209  */
2210 #define PRIVLIB "$privlib"              /**/
2211 #define PRIVLIB_EXP "$privlibexp"               /**/
2212
2213 /* SELECT_MIN_BITS:
2214  *      This symbol holds the minimum number of bits operated by select.
2215  *      That is, if you do select(n, ...), how many bits at least will be
2216  *      cleared in the masks if some activity is detected.  Usually this
2217  *      is either n or 32*ceil(n/32), especially many little-endians do
2218  *      the latter.  This is only useful if you have select(), naturally.
2219  */
2220 #define SELECT_MIN_BITS         $selectminbits  /**/
2221
2222 /* SITEARCH:
2223  *      This symbol contains the name of the private library for this package.
2224  *      The library is private in the sense that it needn't be in anyone's
2225  *      execution path, but it should be accessible by the world.  The program
2226  *      should be prepared to do ~ expansion.
2227  *      The standard distribution will put nothing in this directory.
2228  *      Individual sites may place their own extensions and modules in
2229  *      this directory.
2230  */
2231 /* SITEARCH_EXP:
2232  *      This symbol contains the ~name expanded version of SITEARCH, to be used
2233  *      in programs that are not prepared to deal with ~ expansion at run-time.
2234  */
2235 #define SITEARCH "$sitearch"            /**/
2236 #define SITEARCH_EXP "$sitearchexp"             /**/
2237
2238 /* SITELIB:
2239  *      This symbol contains the name of the private library for this package.
2240  *      The library is private in the sense that it needn't be in anyone's
2241  *      execution path, but it should be accessible by the world.  The program
2242  *      should be prepared to do ~ expansion.
2243  *      The standard distribution will put nothing in this directory.
2244  *      Individual sites may place their own extensions and modules in
2245  *      this directory.
2246  */
2247 /* SITELIB_EXP:
2248  *      This symbol contains the ~name expanded version of SITELIB, to be used
2249  *      in programs that are not prepared to deal with ~ expansion at run-time.
2250  */
2251 #define SITELIB "$sitelib"              /**/
2252 #define SITELIB_EXP "$sitelibexp"               /**/
2253
2254 /* STARTPERL:
2255  *      This variable contains the string to put in front of a perl
2256  *      script to make sure (one hopes) that it runs with perl and not
2257  *      some shell.
2258  */
2259 #define STARTPERL "$startperl"          /**/
2260
2261 /* HAS_FGETPOS64:
2262  *      This symbol, if defined, indicates that the fgetpos64 routine is
2263  *      available to getpos files larger than 2 gigabytes.
2264  */
2265 /* HAS_FOPEN64:
2266  *      This symbol, if defined, indicates that the fopen64 routine is
2267  *      available to open files larger than 2 gigabytes.
2268  */
2269 /* HAS_FREOPEN64:
2270  *      This symbol, if defined, indicates that the freopen64 routine is
2271  *      available to reopen files larger than 2 gigabytes.
2272  */
2273 /* HAS_FSEEK64:
2274  *      This symbol, if defined, indicates that the fseek64 routine is
2275  *      available to seek files larger than 2 gigabytes.
2276  */
2277 /* HAS_FSEEKO64:
2278  *      This symbol, if defined, indicates that the fseeko64 routine is
2279  *      available to seek files larger than 2 gigabytes.
2280  */
2281 /* HAS_FSETPOS64:
2282  *      This symbol, if defined, indicates that the fsetpos64 routine is
2283  *      available to setpos files larger than 2 gigabytes.
2284  */
2285 /* HAS_FTELL64:
2286  *      This symbol, if defined, indicates that the ftell64 routine is
2287  *      available to tell files larger than 2 gigabytes.
2288  */
2289 /* HAS_FTELLO64:
2290  *      This symbol, if defined, indicates that the ftello64 routine is
2291  *      available to tell files larger than 2 gigabytes.
2292  */
2293 /* HAS_TMPFILE64:
2294  *      This symbol, if defined, indicates that the tmpfile64 routine is
2295  *      available to tmpfile files larger than 2 gigabytes.
2296  */
2297 #$d_fgetpos64   HAS_FGETPOS64   /**/
2298 #$d_fopen64     HAS_FOPEN64             /**/
2299 #$d_freopen64   HAS_FREOPEN64   /**/
2300 #$d_fseek64     HAS_FSEEK64             /**/
2301 #$d_fseeko64    HAS_FSEEKO64            /**/
2302 #$d_fsetpos64   HAS_FSETPOS64   /**/
2303 #$d_ftell64     HAS_FTELL64             /**/
2304 #$d_ftello64    HAS_FTELLO64            /**/
2305 #$d_tmpfile64   HAS_TMPFILE64   /**/
2306
2307 /* USE_64_BITS:
2308  *      This symbol, if defined, indicates that 64-bit interfaces should
2309  *      be used when available.  If not defined, the native default interfaces
2310  *      will be used (be they 32 or 64 bits).
2311  */
2312 #$use64bits     USE_64_BITS             /**/
2313
2314 /* USE_PERLIO:
2315  *      This symbol, if defined, indicates that the PerlIO abstraction should
2316  *      be used throughout.  If not defined, stdio should be
2317  *      used in a fully backward compatible manner.
2318  */
2319 #$useperlio     USE_PERLIO              /**/
2320
2321 /* HAS_DRAND48_PROTO:
2322  *      This symbol, if defined, indicates that the system provides
2323  *      a prototype for the drand48() function.  Otherwise, it is up
2324  *      to the program to supply one.  A good guess is
2325  *              extern double drand48 _((void));
2326  */
2327 #$d_drand48proto        HAS_DRAND48_PROTO       /**/
2328
2329 /* HAS_GETHOST_PROTOS:
2330  *      This symbol, if defined, indicates that <netdb.h> includes
2331  *      prototypes for gethostent(), gethostbyname(), and
2332  *      gethostbyaddr().  Otherwise, it is up to the program to guess
2333  *      them.  See netdbtype.U for probing for various Netdb_xxx_t types.
2334  */
2335 #$d_gethostprotos       HAS_GETHOST_PROTOS      /**/
2336
2337 /* HAS_GETNET_PROTOS:
2338  *      This symbol, if defined, indicates that <netdb.h> includes
2339  *      prototypes for getnetent(), getnetbyname(), and
2340  *      getnetbyaddr().  Otherwise, it is up to the program to guess
2341  *      them.  See netdbtype.U for probing for various Netdb_xxx_t types.
2342  */
2343 #$d_getnetprotos        HAS_GETNET_PROTOS       /**/
2344
2345 /* HAS_GETPROTO_PROTOS:
2346  *      This symbol, if defined, indicates that <netdb.h> includes
2347  *      prototypes for getprotoent(), getprotobyname(), and
2348  *      getprotobyaddr().  Otherwise, it is up to the program to guess
2349  *      them.  See netdbtype.U for probing for various Netdb_xxx_t types.
2350  */
2351 #$d_getprotoprotos      HAS_GETPROTO_PROTOS     /**/
2352
2353 /* HAS_GETSERV_PROTOS:
2354  *      This symbol, if defined, indicates that <netdb.h> includes
2355  *      prototypes for getservent(), getservbyname(), and
2356  *      getservbyaddr().  Otherwise, it is up to the program to guess
2357  *      them.  See netdbtype.U for probing for various Netdb_xxx_t types.
2358  */
2359 #$d_getservprotos       HAS_GETSERV_PROTOS      /**/
2360
2361 /* Netdb_host_t:
2362  *      This symbol holds the type used for the 1st argument
2363  *      to gethostbyaddr().
2364  */
2365 /* Netdb_hlen_t:
2366  *      This symbol holds the type used for the 2nd argument
2367  *      to gethostbyaddr().
2368  */
2369 /* Netdb_name_t:
2370  *      This symbol holds the type used for the argument to
2371  *      gethostbyname().
2372  */
2373 /* Netdb_net_t:
2374  *      This symbol holds the type used for the 1st argument to
2375  *      getnetbyaddr().
2376  */
2377 #define Netdb_host_t            $netdb_host_type /**/
2378 #define Netdb_hlen_t            $netdb_hlen_type /**/
2379 #define Netdb_name_t            $netdb_name_type /**/
2380 #define Netdb_net_t             $netdb_net_type /**/
2381
2382 /* Select_fd_set_t:
2383  *      This symbol holds the type used for the 2nd, 3rd, and 4th
2384  *      arguments to select.  Usually, this is 'fd_set *', if HAS_FD_SET
2385  *      is defined, and 'int *' otherwise.  This is only useful if you 
2386  *      have select(), of course.
2387  */
2388 #define Select_fd_set_t         $selecttype     /**/
2389
2390 /* ARCHNAME:
2391  *      This symbol holds a string representing the architecture name.
2392  *      It may be used to construct an architecture-dependant pathname
2393  *      where library files may be held under a private library, for
2394  *      instance.
2395  */
2396 #define ARCHNAME "$archname"            /**/
2397
2398 /* PTHREAD_CREATE_JOINABLE:
2399  *      This symbol, if defined, indicates how to create pthread
2400  *      in joinable (aka undetached) state.  Not defined here if
2401  *      pthread.h already has defined PTHREAD_CREATE_JOINABLE.
2402  *      If defined, possible values are PTHREAD_CREATE_UNDETACHED
2403  *      and __UNDETACHED.
2404  */
2405 #$d_pthread_create_joinable HAS_PTHREAD_CREATE_JOINABLE
2406 #ifdef HAS_PTHREAD_CREATE_JOINABLE
2407 #$d_pthread_create_joinable PTHREAD_CREATE_JOINABLE $pthread_create_joinable /**/
2408 #endif
2409
2410 /* HAS_PTHREAD_YIELD:
2411  *      This symbol, if defined, indicates that the pthread_yield 
2412  *      routine is available to yield the execution of the current
2413  *      thread.  sched_yield is preferable to pthread_yield.
2414  */
2415 /* SCHED_YIELD:
2416  *      This symbol defines the way to yield the execution of
2417  *      the current thread.  Known ways are sched_yield,
2418  *      pthread_yield, and pthread_yield with NULL.
2419  */
2420 /* HAS_SCHED_YIELD:
2421  *      This symbol, if defined, indicates that the sched_yield
2422  *      routine is available to yield the execution of the current
2423  *      thread.  sched_yield is preferable to pthread_yield.
2424  */
2425 #$d_pthread_yield HAS_PTHREAD_YIELD     /**/
2426 #define SCHED_YIELD     $sched_yield    /**/
2427 #$d_sched_yield HAS_SCHED_YIELD /**/
2428
2429 /* I_MACH_CTHREADS:
2430  *     This symbol, if defined, indicates to the C program that it should
2431  *     include <mach/cthreads.h>.
2432  */
2433 #$i_machcthr   I_MACH_CTHREADS  /**/
2434
2435 /* MULTIPLICITY:
2436  *      This symbol, if defined, indicates that Perl should
2437  *      be built to use multiplicity.
2438  */
2439 #$usemultiplicity       MULTIPLICITY            /**/
2440
2441 /* USE_THREADS:
2442  *      This symbol, if defined, indicates that Perl should
2443  *      be built to use threads.
2444  */
2445 /* OLD_PTHREADS_API:
2446  *      This symbol, if defined, indicates that Perl should
2447  *      be built to use the old draft POSIX threads API.
2448  */
2449 #$usethreads    USE_THREADS             /**/
2450 #$d_oldpthreads OLD_PTHREADS_API                /**/
2451
2452 /* Time_t:
2453  *      This symbol holds the type returned by time(). It can be long,
2454  *      or time_t on BSD sites (in which case <sys/types.h> should be
2455  *      included).
2456  */
2457 #define Time_t $timetype                /* Time type */
2458
2459 /* HAS_TIMES:
2460  *      This symbol, if defined, indicates that the times() routine exists.
2461  *      Note that this became obsolete on some systems (SUNOS), which now
2462  * use getrusage(). It may be necessary to include <sys/times.h>.
2463  */
2464 #$d_times HAS_TIMES             /**/
2465
2466 /* Fpos_t:
2467  *      This symbol holds the type used to declare file positions in libc.
2468  *      It can be fpos_t, long, uint, etc... It may be necessary to include
2469  *      <sys/types.h> to get any typedef'ed information.
2470  */
2471 #define Fpos_t $fpostype                /* File position type */
2472
2473 /* Gid_t:
2474  *      This symbol holds the return type of getgid() and the type of
2475  *      argument to setrgid() and related functions.  Typically,
2476  *      it is the type of group ids in the kernel. It can be int, ushort,
2477  *      uid_t, etc... It may be necessary to include <sys/types.h> to get
2478  *      any typedef'ed information.
2479  */
2480 #define Gid_t $gidtype          /* Type for getgid(), etc... */
2481
2482 /* Off_t:
2483  *      This symbol holds the type used to declare offsets in the kernel.
2484  *      It can be int, long, off_t, etc... It may be necessary to include
2485  *      <sys/types.h> to get any typedef'ed information.
2486  */
2487 /* LSEEKSIZE:
2488  *      This symbol holds the number of bytes used by the Off_t.
2489  */
2490 #define Off_t $lseektype                /* <offset> type */
2491 #define LSEEKSIZE $lseeksize            /* <offset> size */
2492
2493 /* Mode_t:
2494  *      This symbol holds the type used to declare file modes 
2495  *      for systems calls.  It is usually mode_t, but may be
2496  *      int or unsigned short.  It may be necessary to include <sys/types.h>
2497  *      to get any typedef'ed information.
2498  */
2499 #define Mode_t $modetype         /* file mode parameter for system calls */
2500
2501 /* Pid_t:
2502  *      This symbol holds the type used to declare process ids in the kernel.
2503  *      It can be int, uint, pid_t, etc... It may be necessary to include
2504  *      <sys/types.h> to get any typedef'ed information.
2505  */
2506 #define Pid_t $pidtype          /* PID type */
2507
2508 /* Size_t:
2509  *      This symbol holds the type used to declare length parameters
2510  *      for string functions.  It is usually size_t, but may be
2511  *      unsigned long, int, etc.  It may be necessary to include
2512  *      <sys/types.h> to get any typedef'ed information.
2513  */
2514 #define Size_t $sizetype         /* length paramater for string functions */
2515
2516 /* Uid_t:
2517  *      This symbol holds the type used to declare user ids in the kernel.
2518  *      It can be int, ushort, uid_t, etc... It may be necessary to include
2519  *      <sys/types.h> to get any typedef'ed information.
2520  */
2521 #define Uid_t $uidtype          /* UID type */
2522
2523 #endif
2524 !GROK!THIS!