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

  1. /* $Header: artio.h,v 4.3.3.2 91/01/16 02:20:49 davison Trn $
  2.  *
  3.  * $Log:    artio.h,v $
  4.  * Revision 4.3.3.2  91/01/16  02:20:49  davison
  5.  * Added optional prototyping.
  6.  * 
  7.  * Revision 4.3.3.1  90/07/21  20:12:10  davison
  8.  * Initial Trn Release
  9.  * 
  10.  * Revision 4.3.2.2  89/11/27  01:27:53  sob
  11.  * Altered NNTP code per ideas suggested by Bela Lubkin
  12.  * <filbo@gorn.santa-cruz.ca.us>
  13.  * 
  14.  * Revision 4.3.2.1  89/11/26  22:41:24  sob
  15.  * Added RRN support
  16.  * 
  17.  * Revision 4.3  85/05/01  11:35:43  lwall
  18.  * Baseline for release with 4.3bsd.
  19.  * 
  20.  */
  21.  
  22. EXT ART_POS artpos INIT(0);    /* byte position in article file */
  23.  
  24. EXT ART_LINE artline INIT(0);        /* current line number in article file */
  25. EXT FILE *artfp INIT(Nullfp);        /* current article file pointer */
  26. EXT ART_NUM openart INIT(0);        /* what is the currently open article number? */
  27. #ifdef LINKART
  28.     EXT char *linkartname INIT(nullstr);/* real name of article for Eunice */
  29. #endif
  30. #ifdef SERVER
  31. EXT ART_PART openpart INIT(0);    /* how much of that article do we have? */
  32. FILE    *nntpopen ANSI((ART_NUM,ART_PART));
  33.                 /* get an article unless already retrieved */
  34. void    nntpclose ANSI((void));
  35. /* MUST be in increasing order of completeness! */
  36. #define GET_STATUS    1        /* test for existence only */
  37. #define GET_HEADER    2        /* if only header items are desired */
  38. #define GET_ARTICLE    3        /* retreive full article  */
  39. #endif
  40.  
  41. void    artio_init ANSI((void));
  42. FILE    *artopen ANSI((ART_NUM));  /* open an article unless already opened */
  43.