Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

194 lines
5.3 KiB

  1. /* $Source: /u/mark/src/pax/RCS/config.h,v $
  2. *
  3. * $Revision: 1.2 $
  4. *
  5. * config.h - configuration options for PAX
  6. *
  7. * DESCRIPTION
  8. *
  9. * This file contains a number of configurable parameters for the
  10. * PAX software. This files should be edited prior to makeing the
  11. * package.
  12. *
  13. * AUTHOR
  14. *
  15. * Mark H. Colburn, NAPS International (mark@jhereg.mn.org)
  16. *
  17. * Sponsored by The USENIX Association for public distribution.
  18. *
  19. * Copyright (c) 1989 Mark H. Colburn.
  20. * All rights reserved.
  21. *
  22. * Redistribution and use in source and binary forms are permitted
  23. * provided that the above copyright notice and this paragraph are
  24. * duplicated in all such forms and that any documentation,
  25. * advertising materials, and other materials related to such
  26. * distribution and use acknowledge that the software was developed
  27. * by Mark H. Colburn and sponsored by The USENIX Association.
  28. *
  29. * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  30. * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  31. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  32. */
  33. #ifndef _PAX_CONFIG_H
  34. #define _PAX_CONFIG_H
  35. /* Defines */
  36. /* XENIX_286 (SCO ugh, Xenix system V(?) 286, USG with changes...
  37. * You will get a warning about DIRSIZ being redefined, ignore it,
  38. * complain to SCO about include files that are messed up or send
  39. * mail to doug@lentni.UUCP, who can provide some patches to fix
  40. * your include files.
  41. *
  42. * Defining XENIX_286 will automatically define USG.
  43. *
  44. */
  45. #if 0
  46. #define XENIX_286 /* Running on a XENIX 286 system */
  47. #endif
  48. /*
  49. * USG - USG (UNIX System V) specific modifications Xn
  50. *
  51. * Define USG if you are running UNIX System V or some similar variant Xn
  52. */
  53. #define USG /* Running on a USG System */
  54. /*
  55. * BSD - BSD (Berkeley) specific modifications Xn
  56. *
  57. * Define BSD if you are running some version of BSD UNIX Xn
  58. */
  59. #if 0
  60. #define BSD /* Running on a BSD System */
  61. #endif
  62. /*
  63. * DEF_AR_FILE - tar only (required)
  64. *
  65. * DEF_AR_FILE should contain the full pathname of your favorite archive
  66. * device. Normally this would be a tape drive, but it may be a disk drive
  67. * on those systems that don't have tape drives.
  68. */
  69. #define DEF_AR_FILE "/dev/qic" /* The default archive on your system */
  70. /*
  71. * TTY - device which interactive queries should be directed to (required)
  72. *
  73. * This is the device to which interactive queries will be sent to and
  74. * received from. On most unix systems, this should be /dev/tty, however, on
  75. * some systems, such as MS-DOS, it my need to be different (e.g. "con:").
  76. */
  77. #define TTY "/dev/tty" /* for most versions of UNIX */
  78. #if 0
  79. #define TTY "con:" /* For MS-DOS */
  80. #endif
  81. /*
  82. * PAXDIR - if you do not have directory access routines
  83. *
  84. * Define PAXDIR if you do not have Doug Gwyn's dirent package installed
  85. * as a system library or you wish to use the version supplied with PAX.
  86. *
  87. * NOTE: DO NOT DEFINE THIS IF YOU HAVE BERKELEY DIRECTORY ACCESS ROUTINES.
  88. */
  89. #if 0
  90. #define PAXDIR /* use paxdir.h paxdir.c */
  91. #endif
  92. /*
  93. * DIRENT - directory access routines (required)
  94. *
  95. * If you have Doug Gwyn's dirent package installed, either as a system
  96. * library, or are using the paxdir.c and paxdir.h routines which come with
  97. * PAX, then define dirent.
  98. *
  99. * NOTE: DO NOT DEFINE THIS IF YOU HAVE BERKELEY DIRECTORY ACCESS ROUTINES.
  100. */
  101. #undef DIRENT
  102. #define DIRENT /* use POSIX compatible directory routines */
  103. /*
  104. * OFFSET - compiler dependent offset type
  105. *
  106. * OFFSET is the type which is returned by lseek(). It is different on
  107. * some systems. Most define it to be off_t, but some define it to be long.
  108. */
  109. #define OFFSET off_t /* for most BSD, USG and other systems */
  110. #if 0
  111. #define OFFSET long /* for most of the rest of them... */
  112. #endif
  113. /*
  114. * VOID - compiler support for VOID types
  115. *
  116. * If your system does not support void, then this should be defined to
  117. * int, otherwise, it should be left undefined.
  118. *
  119. * For ANSI Systems this should always be blank.
  120. */
  121. #ifndef __STDC__
  122. /* #define void int /* for system which do support void */
  123. #endif
  124. /*
  125. * SIG_T - return type for the signal routine
  126. *
  127. * Some systems have signal defines to return an int *, other return a
  128. * void *. Please choose the correct value for your system.
  129. */
  130. #define SIG_T void /* signal defined as "void (*signal)()" */
  131. #if 0
  132. #define SIG_T int /* signal defined as "int (*signal)()" */
  133. #endif
  134. /*
  135. * STRCSPN - use the strcspn function included with pax
  136. *
  137. * Some systems do not have the strcspn() function in their C libraries.
  138. * For those system define STRCSPN and the one provided in regexp.c will
  139. * be used.
  140. */
  141. #if 0
  142. #define STRCSPN /* implementation does not have strcspn() */
  143. #endif
  144. /*
  145. * STRERROR - use the strerror function included with pax
  146. *
  147. * Non-Ansi systems do not have the strerror() function in their C libraries.
  148. * For those system define STRERROR and the one provided in warn.c will Xn
  149. * be used instead.
  150. */
  151. #ifndef __STDC__
  152. #define STRERROR /* implementation does not have strerror() */
  153. #endif
  154. /*
  155. /*
  156. * END OF CONFIGURATION SECTION
  157. *
  158. * Nothing beyond this point should need to be changed
  159. */
  160. #ifdef BSD
  161. #ifdef USG
  162. #include "You must first edit config.h and Makefile to configure pax."
  163. #endif
  164. #endif
  165. /*
  166. * Do a little sanity checking
  167. */
  168. #ifdef PAXDIR
  169. # ifndef DIRENT
  170. # define DIRENT
  171. # endif
  172. #endif
  173. #ifdef XENIX_286
  174. # define USG
  175. #endif /* XENIX_286 */
  176. #endif /* _PAX_CONFIG_H */