config.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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. /* #define XENIX_286 /* Running on a XENIX 286 system */
  46. /*
  47. * USG - USG (Unix System V) specific modifications
  48. *
  49. * Define USG if you are running Unix System V or some similar variant
  50. */
  51. #define USG /* Running on a USG System */
  52. /*
  53. * BSD - BSD (Berkely) specific modifications
  54. *
  55. * Define BSD if you are running some version of BSD Unix
  56. */
  57. /* #define BSD /* Running on a BSD System */
  58. /*
  59. * DEF_AR_FILE - tar only (required)
  60. *
  61. * DEF_AR_FILE should contain the full pathname of your favorite archive
  62. * device. Normally this would be a tape drive, but it may be a disk drive
  63. * on those systems that don't have tape drives.
  64. */
  65. #define DEF_AR_FILE "-" /* The default archive on your system */
  66. /*
  67. * TTY - device which interactive queries should be directed to (required)
  68. *
  69. * This is the device to which interactive queries will be sent to and
  70. * received from. On most unix systems, this should be /dev/tty, however, on
  71. * some systems, such as MS-DOS, it my need to be different (e.g. "con:").
  72. */
  73. /* #define TTY "/dev/tty" /* for most versions of UNIX */
  74. /* #define TTY "con:" /* For MS-DOS */
  75. #define TTY "/dev/cons" /* for Plan 9 */
  76. /*
  77. * PAXDIR - if you do not have directory access routines
  78. *
  79. * Define PAXDIR if you do not have Doug Gwyn's dirent package installed
  80. * as a system library or you wish to use the version supplied with PAX.
  81. *
  82. * NOTE: DO NOT DEFINE THIS IF YOU HAVE BERKELEY DIRECTORY ACCESS ROUTINES.
  83. */
  84. /* #define PAXDIR /* use paxdir.h paxdir.c */
  85. /*
  86. * DIRENT - directory access routines (required)
  87. *
  88. * If you have Doug Gwyn's dirent package installed, either as a system
  89. * library, or are using the paxdir.c and paxdir.h routines which come with
  90. * PAX, then define dirent.
  91. *
  92. * NOTE: DO NOT DEFINE THIS IF YOU HAVE BERKELEY DIRECTORY ACCESS ROUTINES.
  93. */
  94. #define DIRENT /* use POSIX compatible directory routines */
  95. /*
  96. * OFFSET - compiler dependent offset type
  97. *
  98. * OFFSET is the type which is returned by lseek(). It is different on
  99. * some systems. Most define it to be off_t, but some define it to be long.
  100. */
  101. #define OFFSET off_t /* for most BSD, USG and other systems */
  102. /* #define OFFSET long /* for most of the rest of them... */
  103. /*
  104. * VOID - compiler support for VOID types
  105. *
  106. * If your system does not support void, then this should be defined to
  107. * int, otherwise, it should be left undefined.
  108. *
  109. * For ANSI Systems this should always be blank.
  110. */
  111. #ifndef __STDC__
  112. /* #define void int /* for system which do support void */
  113. #endif
  114. /*
  115. * SIG_T - return type for the signal routine
  116. *
  117. * Some systems have signal defines to return an int *, other return a
  118. * void *. Please choose the correct value for your system.
  119. */
  120. #define SIG_T void /* signal defined as "void (*signal)()" */
  121. /* #define SIG_T int /* signal defined as "int (*signal)()" */
  122. /*
  123. * STRCSPN - use the strcspn function included with pax
  124. *
  125. * Some systems do not have the strcspn() function in their C libraries.
  126. * For those system define STRCSPN and the one provided in regexp.c will
  127. * be used.
  128. */
  129. /* #define STRCSPN /* implementation does not have strcspn() */
  130. /*
  131. * STRERROR - use the strerror function included with pax
  132. *
  133. * Non-Ansi systems do not have the strerror() function in their C libraries.
  134. * For those system define STRERROR and the one provided in misc.c will
  135. * be used instead.
  136. */
  137. /* #define STRERROR /* implementation does not have strerror() */
  138. /*
  139. /*
  140. * END OF CONFIGURATION SECTION
  141. *
  142. * Nothing beyond this point should need to be changed
  143. */
  144. #ifdef BSD
  145. #ifdef USG
  146. #include "You must first edit config.h and Makefile to configure pax."
  147. #endif
  148. #endif
  149. /*
  150. * Do a little sanity checking
  151. */
  152. #ifdef PAXDIR
  153. # ifndef DIRENT
  154. # define DIRENT
  155. # endif
  156. #endif
  157. #ifdef XENIX_286
  158. # define USG
  159. #endif /* XENIX_286 */
  160. #endif /* _PAX_CONFIG_H */
  161. #ifndef __STDC__
  162. #define __STDC__
  163. #endif