BSD 4_3 release
[unix-history] / usr / contrib / news / src / rextern.c
CommitLineData
95f51977
C
1/*
2 * rextern - external definitions for readnews
3 */
4
5#ifdef SCCSID
6static char *SccsId = "@(#)rextern.c 2.15 4/16/85";
7#endif /* SCCSID */
8
9/*LINTLIBRARY*/
10
11#include "rparams.h"
12
13int uid, gid; /* real user/group I.D. */
14int duid, dgid; /* effective user/group I.D. */
15int SigTrap; /* set if signal trapped */
16int savmask; /* old umask */
17int mode; /* mode of news program */
18struct hbuf header; /* general-use header structure */
19char bfr[LBUFLEN]; /* general-use scratch area */
20
21#ifndef ROOTID
22int ROOTID; /* special users id # */
23#endif
24
25char *outfile = "/tmp/M1XXXXXX"; /* output file for -M and -c */
26char *infile = "/tmp/M2XXXXXX"; /* -T output from Mail */
27int ngrp, line = -1;
28
29char filename[BUFLEN], coptbuf[BUFLEN], datebuf[BUFLEN];
30char afline[BUFLEN];
31FILE *rcfp, *actfp;
32time_t atime;
33char newsrc[BUFLEN], groupdir[BUFLEN], *rcline[LINES], rcbuf[LBUFLEN];
34char *bitmap, *argvrc[LINES];
35long bit, obit, last;
36int readmode = NEXT;
37int news = 0; /* Was there any news to read */
38int actdirect = FORWARD; /* read direction in ACTIVE file */
39int rcreadok = FALSE; /* NEWSRC has been read OK */
40int zapng = FALSE; /* ! out this newsgroup on next updaterc */
41long ngsize; /* max article # in this newsgroup */
42long minartno; /* min article # in this newsgroup */
43
44#ifndef SHELL
45char *SHELL;
46#endif
47
48#ifndef MAILER
49char *MAILER;
50#endif
51
52char *PAGER = "";