home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / MacPerl 5.0.3 / MacPerl Source ƒ / Perl5 / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-10-30  |  40.8 KB  |  1,403 lines  |  [TEXT/MPS ]

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