home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / PAX20.ZIP / CONFIG.H < prev    next >
C/C++ Source or Header  |  1990-11-12  |  6KB  |  190 lines

  1. /* config.h
  2.  * This file was produced by running the config.h.SH script, which
  3.  * gets its values from config.sh, which is generally produced by
  4.  * running Configure.
  5.  *
  6.  * Feel free to modify any of this as the need arises.  Note, however,
  7.  * that running config.h.SH again will wipe out any changes you've made.
  8.  * For a more permanent change edit config.sh and rerun config.h.SH.
  9.  */
  10.  
  11.  
  12. /* EUNICE:
  13.  *    This symbol, if defined, indicates that the program is being compiled
  14.  *    under the EUNICE package under VMS.  The program will need to handle
  15.  *    things like files that don't go away the first time you unlink them,
  16.  *    due to version numbering.  It will also need to compensate for lack
  17.  *    of a respectable link() command.
  18.  */
  19. /* VMS:
  20.  *    This symbol, if defined, indicates that the program is running under
  21.  *    VMS.  It is currently only set in conjunction with the EUNICE symbol.
  22.  */
  23. /* #define    EUNICE        /**/
  24. /* #define    VMS        /**/
  25.  
  26. /* CPPSTDIN:
  27.  *    This symbol contains the first part of the string which will invoke
  28.  *    the C preprocessor on the standard input and produce to standard
  29.  *    output.     Typical value of "cc -E" or "/lib/cpp".
  30.  */
  31. /* CPPMINUS:
  32.  *    This symbol contains the second part of the string which will invoke
  33.  *    the C preprocessor on the standard input and produce to standard
  34.  *    output.  This symbol will have the value "-" if CPPSTDIN needs a minus
  35.  *    to specify standard input, otherwise the value is "".
  36.  */
  37. #define CPPSTDIN "cpp"
  38. #define CPPMINUS "-"
  39.  
  40. /* FCNTL:
  41.  *    This symbol, if defined, indicates to the C program that it should
  42.  *    include fcntl.h.
  43.  */
  44. #define    FCNTL        /**/
  45.  
  46. /* GETOPT:
  47.  *    This symbol, if defined, indicates that the getopt() routine exists.
  48.  */
  49. #define    GETOPT        /**/
  50.  
  51. /* IOCTL:
  52.  *    This symbol, if defined, indicates that sys/ioctl.h exists and should
  53.  *    be included.
  54.  */
  55. /* #define    IOCTL        /**/
  56.  
  57. /* MEMCPY:
  58.  *    This symbol, if defined, indicates that the memcpy routine is available
  59.  *    to copy blocks of memory.  Otherwise you should probably use bcopy().
  60.  *    If neither is defined, roll your own.
  61.  */
  62. #define    MEMCPY        /**/
  63.  
  64. /* MKDIR:
  65.  *    This symbol, if defined, indicates that the mkdir routine is available
  66.  *    to create directories.  Otherwise you should fork off a new process to
  67.  *    exec /bin/mkdir.
  68.  */
  69. #define    MKDIR        /**/
  70.  
  71. /* STRCSPN:
  72.  *    This symbol, if defined, indicates that the strcspn routine is available
  73.  *    to scan strings.
  74.  */
  75. #define    STRCSPN        /**/
  76.  
  77. /* TMINSYS:
  78.  *    This symbol is defined if this system declares "struct tm" in
  79.  *    in <sys/time.h> rather than <time.h>.  We can't just say
  80.  *    -I/usr/include/sys because some systems have both time files, and
  81.  *    the -I trick gets the wrong one.
  82.  */
  83. /* #define    TMINSYS     /**/
  84.  
  85. /* vfork:
  86.  *    This symbol, if defined, remaps the vfork routine to fork if the
  87.  *    vfork() routine isn't supported here.
  88.  */
  89. #define    vfork fork    /**/
  90.  
  91. /* VOIDSIG:
  92.  *    This symbol is defined if this system declares "void (*signal())()" in
  93.  *    signal.h.  The old way was to declare it as "int (*signal())()".  It
  94.  *    is up to the package author to declare things correctly based on the
  95.  *    symbol.
  96.  */
  97. #define    VOIDSIG     /**/
  98.  
  99. /* GIDTYPE:
  100.  *    This symbol has a value like gid_t, int, ushort, or whatever type is
  101.  *    used to declare group ids in the kernel.
  102.  */
  103. #define GIDTYPE unsigned        /**/
  104.  
  105. /* Reg1:
  106.  *    This symbol, along with Reg2, Reg3, etc. is either the word "register"
  107.  *    or null, depending on whether the C compiler pays attention to this
  108.  *    many register declarations.  The intent is that you don't have to
  109.  *    order your register declarations in the order of importance, so you
  110.  *    can freely declare register variables in sub-blocks of code and as
  111.  *    function parameters.  Do not use Reg<n> more than once per routine.
  112.  */
  113.  
  114. #define Reg1 register        /**/
  115. #define Reg2 register        /**/
  116. #define Reg3         /**/
  117. #define Reg4         /**/
  118. #define Reg5         /**/
  119. #define Reg6         /**/
  120. #define Reg7         /**/
  121. #define Reg8         /**/
  122. #define Reg9         /**/
  123. #define Reg10         /**/
  124. #define Reg11         /**/
  125. #define Reg12         /**/
  126. #define Reg13         /**/
  127. #define Reg14         /**/
  128. #define Reg15         /**/
  129. #define Reg16         /**/
  130.  
  131. /* UIDTYPE:
  132.  *    This symbol has a value like uid_t, int, ushort, or whatever type is
  133.  *    used to declare user ids in the kernel.
  134.  */
  135. #define UIDTYPE unsigned        /**/
  136.  
  137. /* index:
  138.  *    This preprocessor symbol is defined, along with rindex, if the system
  139.  *    uses the strchr and strrchr routines instead.
  140.  */
  141. /* rindex:
  142.  *    This preprocessor symbol is defined, along with index, if the system
  143.  *    uses the strchr and strrchr routines instead.
  144.  */
  145. #define    index strchr    /* cultural */
  146. #define    rindex strrchr    /*  differences? */
  147.  
  148. /* LIMITSH:
  149.  *    This symbol, if defined, indicates that the <limits.h> header is
  150.  *    available and should be used to define system limits.
  151.  */
  152. #define    LIMITSH        /**/
  153.  
  154. /* #include        $d_machdr    /* major,minor,mkdev macros */
  155.  
  156. /* MEMSET:
  157.  *    This symbol, if defined, indicates that the memset routine is available
  158.  *    to copy blocks of memory.  Otherwise you should probably use bcopy().
  159.  *    If neither is defined, roll your own.
  160.  */
  161. #define    MEMSET        /**/
  162.  
  163. /* RMDIR:
  164.  *    This symbol, if defined, indicates that the rmdir routine is
  165.  *    available to scan strings.
  166.  */
  167. #define    RMDIR        /**/
  168.  
  169. /* STRERROR:
  170.  *    This symbol, if defined, indicates that the strerror routine is
  171.  *    available to print error messages.
  172.  */
  173. #define    STRERROR        /**/
  174.  
  175. /* STRTOK:
  176.  *    This symbol, if defined, indicates that the strtok routine is
  177.  *    available to scan strings.
  178.  */
  179. #define    STRTOK        /**/
  180.  
  181. #include        <sys/types.h>    /**/
  182. #include        <sys/dir.h>    /**/
  183. #define    dirent direct
  184. /* OFFSET:
  185.  *    This symbol has a value like long, off_t, or whatever type is
  186.  *    used to declare file offsets in the kernel.
  187.  */
  188. #define OFFSET off_t        /**/
  189.  
  190.