|
|
1.1 ! root 1: /* ! 2: * iextern - external definitions for inews. ! 3: */ ! 4: ! 5: static char *SccsId = "@(#)iextern.c 2.4 3/27/83"; ! 6: ! 7: #include "iparams.h" ! 8: ! 9: /* ! 10: * The following definitions are only effective if they are not previously ! 11: * defined in the makefile. ! 12: */ ! 13: ! 14: #ifndef SPOOLDIR ! 15: /* NOTE: The following line does NOT have a trailing quote. */ ! 16: #define SPOOLDIR "/usr/spool/news ! 17: #endif ! 18: ! 19: #ifndef LIBDIR ! 20: /* NOTE: The following line does NOT have a trailing quote. */ ! 21: #define LIBDIR "/usr/lib/news ! 22: #endif ! 23: ! 24: #ifndef NEWSUSR ! 25: #define NEWSUSR "daemon" ! 26: #endif ! 27: ! 28: #ifndef NEWSGRP ! 29: #define NEWSGRP "daemon" ! 30: #endif ! 31: ! 32: unsigned uid,gid; /* real user/group I.D. */ ! 33: unsigned duid,dgid; /* effective user/group I.D. */ ! 34: int sigtrap; /* set if signal trapped */ ! 35: int savmask; /* old umask */ ! 36: int mode; /* mode of news program */ ! 37: int lockcount = 0; /* no. of times we've called lock */ ! 38: struct hbuf header; /* general-use header structure */ ! 39: char bfr[LBUFLEN]; /* general-use scratch area */ ! 40: char filename[NAMELEN]; /* general-use file name */ ! 41: char username[BUFLEN]; /* user's login name */ ! 42: char userhome[BUFLEN]; /* user's home directory */ ! 43: ! 44: char SPOOL[BUFLEN]; /* spool directory */ ! 45: char LIB[BUFLEN]; /* library directory */ ! 46: char INFILE[BUFLEN]; /* template for temp of stdin */ ! 47: char LOCKFILE[BUFLEN]; /* system lock file */ ! 48: char SEQFILE[BUFLEN]; /* system sequence no. file */ ! 49: char ACTIVE[BUFLEN]; /* active newsgroups file */ ! 50: char NGFILE[BUFLEN]; /* legal newsgroups file */ ! 51: char SUBFILE[BUFLEN]; /* system subscriptions */ ! 52: char ARTFILE[BUFLEN]; /* all articles seen */ ! 53: char ARTICLE[BUFLEN]; /* temporary article */ ! 54: char STASH[BUFLEN]; /* dir for un-recognized articles */ ! 55: char logfname[BUFLEN]; /* the log file */ ! 56: #ifndef ROOTID ! 57: int ROOTID; /* special users id # */ ! 58: #endif ! 59: #ifdef NOTIFY ! 60: char TELLFILE[BUFLEN]; /* notify the user in this file */ ! 61: char TELLME[BUFLEN]; /* the user to tell */ ! 62: #endif NOTIFY ! 63: ! 64: char SYSNAME[BUFLEN]; /* truncated system name */ ! 65: char FULLSYSNAME[BUFLEN]; /* full system name */ ! 66: char *NEWSU = NEWSUSR; /* login name for netnews */ ! 67: char *NEWSG = NEWSGRP; /* group name for netnews */ ! 68: char *DFLTNG = "general"; /* default newsgroup */ ! 69: char whatever[BUFLEN]; /* don't ask: kludge */ ! 70: char nbuf[LBUFLEN]; /* local newsgroup buffer */ ! 71: FILE *infp; /* input file-pointer */ ! 72: FILE *actfp; /* active newsgroups file pointer */ ! 73: int tty; /* set if infp is a tty */ ! 74: char *PARTIAL = "dead.article"; /* place to save partial news */ ! 75: int flag = FALSE; /* set if at least one group O.K. */ ! 76: char *SHELL = "/bin/sh"; /* shell for inews to use */ ! 77: int defexp = FALSE; /* set if def. expiration date used */ ! 78: int is_ctl; /* true for a control message */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.