Annotation of researchv10no/cmd/netnews/src/rextern.c, revision 1.1.1.1

1.1       root        1: /*
                      2:  * rextern - external definitions for readnews
                      3:  */
                      4: 
                      5: static char    *SccsId = "@(#)rextern.c        2.5     3/30/83";
                      6: 
                      7: #include "rparams.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 "/xa/glickman/news/spool
                     17: #endif
                     18: 
                     19: #ifndef LIBDIR
                     20: /* NOTE:  The following line does NOT have a trailing quote. */
                     21: #define LIBDIR "/xa/glickman/news/lib
                     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: struct hbuf header;                    /* general-use header structure */
                     38: char   bfr[LBUFLEN];                   /* general-use scratch area     */
                     39: char   username[BUFLEN];               /* user's login name            */
                     40: char   userhome[BUFLEN];               /* user's home directory        */
                     41: 
                     42: char   SPOOL[BUFLEN];                  /* spool directory              */
                     43: char   LIB[BUFLEN];                    /* library directory            */
                     44: char   ACTIVE[BUFLEN];                 /* active newsgroups file       */
                     45: char   NGFILE[BUFLEN];                 /* legal newsgroups file        */
                     46: char   LOCKFILE[BUFLEN];               /* system lock file             */
                     47: char   SEQFILE[BUFLEN];                /* system sequence no. file     */
                     48: char   SUBFILE[BUFLEN];                /* system subscriptions         */
                     49: char   USERS[BUFLEN];                  /* user file                    */
                     50: char   HELPFILE[BUFLEN];               /* /bin/mail help               */
                     51: char   CAESAR[BUFLEN];                 /* decryptor program            */
                     52: char   MAILPARSER[BUFLEN];             /* mail header parser mailer    */
                     53: #ifndef ROOTID
                     54: int    ROOTID;                         /* special users id #           */
                     55: #endif
                     56: #ifdef NOTIFY
                     57: char   TELLFILE[BUFLEN];               /* notify the user in this file */
                     58: char   TELLME[BUFLEN];                 /* the user to tell             */
                     59: #endif
                     60: 
                     61: char   *outfile = "/tmp/M1XXXXXX";     /* output file for -M and -c    */
                     62: char   *infile = "/tmp/M2XXXXXX";      /* -T output from Mail          */
                     63: char   FULLSYSNAME[BUFLEN];            /* system name                  */
                     64: char   SYSNAME[BUFLEN];                /* system name chopped at 8     */
                     65: char   ARTFILE[BUFLEN];                /* list of articles on system   */
                     66: char   *NEWSU = NEWSUSR;               /* login name for netnews       */
                     67: char   *NEWSG = NEWSGRP;               /* group name for netnews       */
                     68: int    ngrp, last, line = -1;
                     69: 
                     70: char   filename[BUFLEN], coptbuf[BUFLEN], datebuf[BUFLEN];
                     71: char   titlebuf[BUFLEN];
                     72: char   afline[BUFLEN];
                     73: FILE   *rcfp, *actfp;
                     74: time_t atime;
                     75: char   newsrc[BUFLEN], groupdir[BUFLEN], *rcline[LINES], rcbuf[LBUFLEN];
                     76: char   bitmap[1024], *argvrc[LINES];
                     77: int    bit, obit, readmode = NEXT;
                     78: int    defexp = FALSE;         /* set if def. expiration date used */
                     79: int    actdirect = FORWARD;    /* read direction in ACTIVE file */
                     80: int    rcreadok = FALSE;       /* NEWSRC has been read OK */
                     81: int    zapng = FALSE;          /* ! out this newsgroup on next updaterc */
                     82: long   ngsize;                 /* max article # in this newsgroup */
                     83: struct stat statbuf;
                     84: 
                     85: #ifndef SHELL
                     86: char   *SHELL;
                     87: #endif
                     88: 
                     89: #ifndef MAILER
                     90: char   *MAILER;
                     91: #endif
                     92: 
                     93: char   PAGER[BUFSIZ];

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.