BSD 4_3 development
[unix-history] / usr / contrib / rn / rcstuff.h
CommitLineData
9c4b96b4
C
1/* $Header: rcstuff.h,v 4.3 85/05/01 11:46:49 lwall Exp $
2 *
3 * $Log: rcstuff.h,v $
4 * Revision 4.3 85/05/01 11:46:49 lwall
5 * Baseline for release with 4.3bsd.
6 *
7 */
8
9EXT char *rcline[MAXRCLINE];/* pointers to lines of .newsrc */
10EXT ART_UNREAD toread[MAXRCLINE];
11 /* number of articles to be read in newsgroup */
12 /* <0 => invalid or unsubscribed newsgroup */
13#define TR_ONE ((ART_UNREAD) 1)
14#define TR_NONE ((ART_UNREAD) 0)
15#define TR_UNSUB ((ART_UNREAD) -1)
16 /* keep this one as -1, some tests use >= TR_UNSUB */
17#define TR_BOGUS ((ART_UNREAD) -2)
18#define TR_JUNK ((ART_UNREAD) -3)
19
20EXT char rcchar[MAXRCLINE]; /* holds the character : or ! while spot is \0 */
21EXT char rcnums[MAXRCLINE]; /* offset from rcline to numbers on line */
22EXT ACT_POS softptr[MAXRCLINE];
23 /* likely ptr to active file entry for newsgroup */
24EXT bool paranoid INIT(FALSE); /* did we detect some inconsistency in .newsrc? */
25
26bool rcstuff_init();
27bool get_ng(); /* return TRUE if newsgroup can be found or added */
28NG_NUM add_newsgroup();
29#ifdef RELOCATE
30 NG_NUM relocate_newsgroup(); /* move newsgroup around */
31#endif
32void list_newsgroups();
33NG_NUM find_ng(); /* return index of newsgroup */
34void cleanup_rc();
35void sethash();
36int hash();
37void newsrc_check();
38void write_rc();
39void get_old_rc();