home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / Source / GNU / perl / patch / config_h.SH < prev    next >
Text File  |  1995-12-03  |  45KB  |  1,481 lines

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