9 date 92.05.12.22.04.52; author jromine; state Exp;
14 date 92.05.12.22.04.36; author jromine; state Exp;
28 @/* bboards.h - definition of a BBoard structure */
29 /* $Id: formatsbr.h,v 1.1 1992/01/23 23:14:54 jromine Exp $ */
31 #define BBOARDS "bboards" /* name in /etc/passwd */
32 #define BBDB "BBoards" /* file in BBOARDS' home directory */
33 #define BBMODE 0644 /* default BBoards mode */
34 #define DISTADR "dist-" /* prefix for distribution addresses */
37 #define POPUID "pop" /* name in /etc/passwd */
38 #define POPDB "POP" /* file in POPUID's home directory */
39 #define POMODE 0600 /* default POP subscriber maildrop mode */
43 char *bb_name; /* name of the bboard */
44 char **bb_aka; /* aliases for the bboards */
46 char *bb_file; /* file it resides in */
47 char *bb_archive; /* file where archives reside */
48 char *bb_info; /* file where maxima resides */
49 char *bb_map; /* file where binary map resides */
51 char *bb_passwd; /* password for it */
53 char **bb_leader; /* list of local leaders */
55 char *bb_addr; /* network address */
56 char *bb_request; /* network address for requests */
57 char *bb_relay; /* host acting as relay in local domain */
58 char **bb_dist; /* distribution list */
60 unsigned int bb_flags; /* various flags */
61 #define BB_NULL 0x0000
62 #define BB_ARCH 0x0007 /* archive policy */
63 #define BB_ASAV 0x0001 /* save in archives/ directory */
64 #define BB_AREM 0x0002 /* remove without saving */
65 #define BB_INVIS 0x0010 /* invisible to bbc */
66 #define BB_REMOTE 0x0020 /* remote to bbc */
67 #define BB_SEEN 0x0040 /* seen by bbc */
68 #define BBITS "\020\01ARCHIVE\02REMOVE\05INVIS\06REMOTE\07SEEN"
70 union { /* unassigned */
71 unsigned int un_count;
74 #define bb_count bb_un.un_count
75 #define bb_mtime bb_un.un_mtime
77 unsigned int bb_maxima; /* highest BBoard-Id in it */
78 char *bb_date; /* date that maxima was written */
80 struct bboard *bb_next; /* unassigned */
81 struct bboard *bb_link; /* unassigned */
82 struct bboard *bb_chain; /* unassigned */
85 /* flags for setbbent () */
86 #define SB_NULL 0x0000
87 #define SB_STAY 0x0001 /* stay open between calls */
88 #define SB_FAST 0x0002 /* fast parse of file */
91 int setbbent (), endbbent (), setbbfile (), setbbinfo (), setpwinfo (),
92 ldrbb (), ldrchk (), getbbdist ();
95 struct bboard *getbbent (), *getbbnam (), *getbbaka (), *getbbcpy();