home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / BBSDOORW / UUPC11XT.ZIP / RN / CONFIG.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-21  |  6.3 KB  |  215 lines

  1. /* config.h
  2.  * This file was produced by running the Configure script.
  3.  * Feel free to modify any of this as the need arises.
  4.  * Hand-modified for DOS. jbrown 11/17/90
  5.  */
  6.  
  7. #ifdef __TURBOC__
  8. #define msdos
  9. #endif
  10.  
  11. #ifdef MSDOS
  12. #define msdos
  13. #endif
  14.  
  15. #ifdef msdos
  16. #include "version.h"
  17. #endif
  18.  
  19. /* name of the site.  May be overridden by gethostname, uname, etc. */
  20. #ifdef msdos
  21. /* Not used */
  22. #endif /* msdos */
  23. #define SITENAME "anony.uucp"
  24.  
  25. /* name of the organization, may be a file name */
  26. #ifdef msdos
  27. /* used only if not present in config file */
  28. #endif /* msdos */
  29. #define ORGNAME "/usr/lib/news/orgname"
  30.  
  31. /* login name of news administrator, if any. */
  32. #undef NEWSADMIN /* "usenet" */
  33.  
  34. /* news library, may use only ~ and %l expansion */
  35. #ifdef msdos
  36. /* used only if not present in config file */
  37. #endif /* msdos */
  38. #define LIB "/usr/lib/news"   /* NEEDSWORK */
  39.  
  40. /* rn private library, may use ~ expansion, %x and %l */
  41. #define RNLIB "%x/rn"
  42.  
  43. /* location of the news spool directory, may use ~ expansion, %x and %l */
  44. #ifdef msdos
  45. /* used only if not present in config file */
  46. #endif /* msdos */
  47. #define SPOOL "/usr/spool/news"
  48.  
  49. /* location of the active file, may use ~ expansion, %x and %l */
  50. /* Under UUPC/extended, actually processed elsewhere           */
  51. #ifndef ACTIVE
  52. #define ACTIVE "%x/active"
  53. #endif
  54.  
  55. /* location of spooled mail */
  56. #define MAILFILE "c:/usr/mail/%L"   /* NEEDSWORK */
  57.  
  58. /* directory for temp files */
  59. #ifdef msdos
  60. /* used only if not present in config file */
  61. #endif /* msdos */
  62. #define TMP "/tmp"
  63.  
  64. /* default shell--ok to be a slow shell like csh */
  65. #define PREFSHELL "command"
  66.  
  67. /* default editor */
  68. #define DEFEDITOR "vi"  /* NEEDSWORK */
  69.  
  70. /* root uid */
  71. #define ROOTID 0
  72.  
  73. /* what is the first character of a mailbox? */
  74. #define MBOXCHAR '\001'
  75.  
  76. /* how to cancel an article */
  77. #define CANCEL "$inews -h <%h"   /* NEEDSWORK */
  78.  
  79. /* distribution groups */
  80. #undef LOCDIST /* "$locpref" */
  81. #undef ORGDIST /* "$orgpref" */
  82. #define CITYDIST "la"
  83. #define STATEDIST "ca"
  84. #define CNTRYDIST "usa"
  85. #define CONTDIST "na"
  86.  
  87. #define  index strchr   /* cultural */
  88. #define  rindex strrchr /*  differences? */
  89. #undef   void /* int /* is void to be avoided? */
  90. #define  vfork fork  /* is vfork too virtual? */
  91. #undef   EUNICE      /* no linking? */
  92. #undef   VMS      /* not currently used, here just in case */
  93. #define  GETCWD      /* do we have getcwd()? */
  94. #undef   USENDIR     /* include ndir.c? */
  95. #undef   LIBNDIR     /* include /usr/include/ndir.h? */
  96. #define     DIRTYPE   dirent
  97. #ifndef USENDIR
  98. #define     DIRINC     <direct.h>
  99. #endif
  100. #define  MININACT /* include 2.10.2 optimization? */
  101. #define  PORTABLE /* do we do extra lookups to start up? */
  102. #undef   PASSNAMES   /* do names come from the passwd file? */
  103.             /*  (undef to take name from ~/.fullname) */
  104. #undef   BERKNAMES   /* if so, are they Berkeley format? */
  105.             /* (that is, ":name,stuff:") */
  106. #undef   USGNAMES /* or are they USG format? */
  107.             /* (that is, ":stuff-name(stuff):") */
  108. #undef   WHOAMI      /* should we include whoami.h? */
  109. #undef      RDCHK    /* do we have rdchk()? */
  110. #undef   TERMIO      /* is this a termio system? */
  111. #define     FCNTL    /* should we include fcntl.h? */
  112. #undef      IOCTL    /* are ioctl args all defined in one place? */
  113. #define  NORMSIG     /* use signal rather than sigset? */
  114. #undef   SIGBLOCK /* use sigblock and sigsetmask */
  115. #define        SIGRET   int   /* what does signal() return? */
  116. #undef   HAVETERMLIB /* do we have termlib-style routines? */
  117. #undef   GETUIDGID   /* allow setuid (if possible) */
  118. #undef   GETPWENT /* should we include getpwent? */
  119. #define  INTERNET /* does our mailer do INTERNET addressing? */
  120. #define  GETHOSTNAME /* do we have a gethostname function? */
  121. #undef   DOUNAME     /* do we have a uname function? */
  122. #undef   PHOSTNAME /* "$hostcmd" /* how to get host name with popen */
  123. #define     NORELAY         /* 2.10.3 doesn't have Relay-Version line */
  124. #undef         SERVER          /* rrn server code */
  125. #undef SERVER_FILE   /* "$serverfile" */
  126. #define MKDIR     /* We have mkdir() */
  127.  
  128. /* path to fastest starting shell */
  129. #define SH "command"
  130.  
  131. /* location of macro file */
  132. #ifndef RNMACRO
  133. #   ifdef PUSHBACK
  134. #  define RNMACRO "%./rnmac"
  135. #   endif
  136. #endif
  137.  
  138. /* location of full name */
  139. #ifndef FULLNAMEFILE
  140. #   ifndef PASSNAMES
  141. #  define FULLNAMEFILE "%./fullname"
  142. #   endif
  143. #endif
  144.  
  145. /* virtual array file name template */
  146. #ifndef VARYNAME     /* % and ~ */
  147. #   define VARYNAME "%J/rnvary.%$"
  148. #endif
  149.  
  150. /* file to pass header to followup article poster */
  151. #ifndef HEADNAME     /* % and ~ */
  152. #define HEADNAME "%J/rnhead.%$"
  153. #endif
  154.  
  155. /* location of newsrc file */
  156. #ifndef RCNAME    /* % and ~ */
  157. #   define RCNAME "%./newsrc"
  158. #endif
  159.  
  160. /* temporary newsrc file in case we crash while writing out */
  161. #ifndef RCTNAME      /* % and ~ */
  162. #   define RCTNAME "%./newsrc.new"
  163. #endif
  164.  
  165. /* newsrc file at the beginning of this session */
  166. #ifndef RCBNAME      /* % and ~ */
  167. #   define RCBNAME "%./newsrc.old"
  168. #endif
  169.  
  170. /* if existent, contains process number of current or crashed rn */
  171. #ifndef LOCKNAME     /* % and ~ */
  172. #   define LOCKNAME "%./rnlock"
  173. #endif
  174.  
  175. /* information from last invocation of rn */
  176. #ifndef LASTNAME     /* % and ~ */
  177. #   define LASTNAME "%./rnlast"
  178. #endif
  179.  
  180. /* file with soft pointers into the active file */
  181. #ifndef SOFTNAME     /* % and ~ */
  182. #   define SOFTNAME "%./rnsoft"
  183. #endif
  184.  
  185. /* list of article numbers to mark as unread later (see M and Y cmmands) */
  186. #ifndef RNDELNAME    /* % and ~ */
  187. #   define RNDELNAME "%./rndelay"
  188. #endif
  189.  
  190. /* command to submit a followup article */
  191. #ifndef NEWSPOSTER      /* % and ~ */
  192. #   define NEWSPOSTER "Pnews -h %h"
  193. #endif
  194.  
  195. /* command to send a reply */
  196. #ifndef MAILPOSTER      /* % and ~ */
  197. #   define MAILPOSTER "rnmail -h %h"
  198. #endif
  199.  
  200. #define  chdir(s) CHDIR(s)
  201. #ifndef msdos
  202. #define stripcr(s)   /* nothing */
  203. #endif /* msdos */
  204.  
  205. #define MBOXSAVER "%X/mboxsavr %P %c %a %B %b"
  206.  
  207. #define NORMSAVER "%X/normsavr %P %c %a %B %b"
  208.  
  209.  
  210. #define NEWSHEADER  "Newsgroups: %(%F=^$?%C:%F)\n"
  211. #define NEWSHEADER2 "Subject: %(%S=^$?%\"\n\nSubject: \":Re: %S)\nSummary: \n"
  212. #define NEWSHEADER3 "%(%R=^$?:References: %R\n)"
  213. #define NEWSHEADER4 "Followup-To: \nDistribution: %(%i=^$?%\"Distribution: \":%D)\n"
  214. #define NEWSHEADER5 "Organization: %o\nKeywords: %[keywords]\n\n"
  215.