home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 400-499 / ff473.lzh / CNewsSrc / cnews_src.lzh / relay / system.h < prev    next >
C/C++ Source or Header  |  1990-05-28  |  1KB  |  30 lines

  1. /* :ts=4
  2.  * parsed form of the "sys" file
  3.  * Beware that in C++, struct system collides with system(3) in transmit.c
  4.  * This can be fixed by using "::system(...)" or by renaming struct system.
  5.  */
  6.  
  7. struct system {
  8.     char *sy_name;        /* machine name */
  9.     char *sy_excl;        /* exclusion list of machines */
  10.     char *sy_ngs;        /* newsgroup subscription list */
  11.     char *sy_distr;        /* distribution list */
  12.     char *sy_cmd;        /* command to transmit articles */
  13.     unsigned sy_lochops;    /* flags Ln value: local hops */
  14.     char sy_flags;        /* ornaments, encoded as bits */
  15.     struct system *sy_next;    /* link to next system */
  16. };
  17.  
  18. /* sy_flags bits */
  19. #define FLG_BATCH    (1<<0)        /* F: sy_cmd is batch filename */
  20. #define FLG_SZBATCH    (1<<1)        /* f: F, and include byte count */
  21. #define FLG_IHAVE    (1<<2)        /* I: NNTP ihave - F, write msg. ids */
  22. #define FLG_LOCAL    (1<<3)        /* L: send local articles only */
  23. #define FLG_MOD        (1<<4)        /* m: send moderated groups only */
  24. #define FLG_UNMOD    (1<<5)        /* u: send unmoderated groups only */
  25. #define FLG_NBATCH    (1<<6)        /* n: NNTP batch: filename & msg-id */
  26.  
  27. /* imports from system.c */
  28. extern struct system *oursys(), *nextsys();
  29. extern void sysdeflt(), rewndsys();
  30.