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