home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume23 / trn / part14 / rcstuff.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-22  |  1.5 KB  |  43 lines

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