home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / mmdf / mmdf-IIb.43 / h / bboards.h < prev    next >
Encoding:
C/C++ Source or Header  |  1986-02-01  |  1.5 KB  |  44 lines

  1. /* bboards.h - definition of a BBoard structure */
  2.  
  3. #define    BBOARDS    "bboards"    /* name in /etc/passwd */
  4. #define    DISTADR    "dist-"        /* prefix for distribution addresses */
  5. #define    BBMODE    0644        /* default BBoards mode */
  6.  
  7. struct bboard {
  8.     char   *bb_name;        /* name of the bboard */
  9.     char  **bb_aka;        /* aliases for the bboards */
  10.  
  11.     char   *bb_file;        /* file it resides in */
  12.     char   *bb_archive;        /* file where archives reside */
  13.     char   *bb_info;        /* file where maxima resides */
  14.     char   *bb_map;        /* file where binary map resides */
  15.  
  16.     char   *bb_passwd;        /* password for it */
  17.  
  18.     char  **bb_leader;        /* list of local leaders */
  19.  
  20.     char   *bb_addr;        /* network address */
  21.     char   *bb_request;        /* network address for requests */
  22.     char   *bb_relay;        /* host acting as relay in local domain */
  23.     char  **bb_dist;        /* distribution list */
  24.  
  25.     unsigned int    bb_flags;    /* various flags */
  26. #define    BB_NULL    0x0000
  27. #define    BB_ARCH    0x0007        /* archive policy */
  28. #define   BB_ASAV    0x0001    /*   save in archives/ directory */
  29. #define      BB_AREM    0x0002    /*   remove without saving */
  30. #define      BB_INVIS    0x0010    /* invisible to bbc */
  31.  
  32.     unsigned int    bb_count;    /* unassigned */
  33.     unsigned int    bb_maxima;    /* highest BBoard-Id in it */
  34.     char   *bb_date;        /* date that maxima was written */
  35.  
  36.     struct bboard *bb_next;    /* unassigned */
  37.     struct bboard *bb_link;    /* unassigned */
  38. };
  39.  
  40. int     setbbent (), endbbent (), setbbfile (), ldrbb (), ldrchk (),
  41.     getbbdist ();
  42. char   *getbberr ();
  43. struct bboard  *getbbent (), *getbbnam (), *getbbaka (), *getbbcpy();
  44.