# 2.11BSD#431 - /usr/src/new/rn/common.h

##### Variables

    badcr             X
    buf               X
    cantcreate        X
    cantopen          X
    cmd_buf           X
    countdown         X
    cwd               X
    debug             X
    defeditor         X
    dfltcmd           X
    filestat          X
    hforhelp          X
    indstr            X
    initlines         X
    marking           X
    mode              X
    nextrcline        X
    nocd              X
    nullstr           X
    readerr           X
    scanon            X
    sh                X
    unsubto           X

##### Macros

    ACTIVE            X
    ARTFILE           X
    ARTHELP           X
    ARTSEARCH         X
    ASYNC_PARSE       X
    ATTRIBUTION       X
    BACKTICK          X
    BERKELEY          X
    BITSPERBYTE       X
    BSD42             X
    CACHEFIRST        X
    CACHESUBJ         X
    CANCEL            X
    CANCELHEADER      X
    CATCHUP           X
    CBUFLEN           X
    CLEAREOL          X
    CONDSUB           X
    Ctl               X
    DEB_CHECKPOINTING X
    DEB_CTLAREA_BITMAPX
    DEB_FEED_XREF     X
    DEB_FILEXP        X
    DEB_HASH          X
    DEB_INNERSRCH     X
    DEB_NEWSRC_LINE   X
    DEB_SEARCH_AHEAD  X
    DEB_SOFT_POINTERS X
    DEB_XREF_MARKER   X
    DEFEDITOR         X
    DELAYMARK         X
    DELBOGUS          X
    DIRMAKER          X
    ELSE              X
    ESCSUBS           X
    FALSE             X
    FINDNEWNG         X
    FINISHCMD         X
    FLUSH             X
    FULLNAMEFILE      X
    GCOSFIELD         X
    GETLOGIN          X
    GETWD             X
    GLOBINIT          X
    HASHSIZ           X
    HEADNAME          X
    IF                X
    INNERSEARCH       X
    KILLFILES         X
    KILLGLOBAL        X
    KILLLOCAL         X
    LASTNAME          X
    LBUFLEN           X
    LIB               X
    LINKART           X
    LOCKNAME          X
    LOGDIRFIELD       X
    LONGKEY           X
    MAILCALL          X
    MAILFILE          X
    MAILHEADER        X
    MAILPOSTER        X
    MAKEDIR           X
    MAXFILENAME       X
    MAXRCLINE         X
    MBOXCHAR          X
    MBOXSAVER         X
    MCHASE            X
    MUNGHEADER        X
    NEGCHAR           X
    NEWSETUP          X
    NEWSGROUPS        X
    NEWSHEADER        X
    NEWSNEWSNAME      X
    NEWSPOSTER        X
    NGHELP            X
    NGMAX             X
    NGSEARCH          X
    NGSORONLY         X
    NOFIREWORKS       X
    NOMARKING         X
    NORMSAVER         X
    Null              X
    Nullch            X
    Nullfp            X
    OFFSET            X
    ONLY              X
    ORGFILE           X
    ORGNAME           X
    PAGERHELP         X
    PENDING           X
    PIPESAVER         X
    PREFSHELL         X
    PROMPTTTY         X
    PUSHSIZE          X
    RCBNAME           X
    RCNAME            X
    RCTNAME           X
    RELOCATE          X
    RNDELNAME         X
    RNLIB             X
    RNMACRO           X
    ROOTID            X
    ROTATION          X
    SAVEDIR           X
    SAVENAME          X
    SETENV            X
    SETUIDGID         X
    SH                X
    SOFTNAME          X
    SPOOL             X
    STANDOUT          X
    SUBSHELP          X
    TCSIZE            X
    TERMMOD           X
    TERSE             X
    TILDENAME         X
    TRUE              X
    ULSMARTS          X
    UNDERLINE         X
    UNLINK            X
    VARYNAME          X
    VARYSIZE          X
    VERIFY            X
    WORDERASE         X
    YOUSAID           X
    assert            X
    bool              X
    eaccess           X
    isalnum           X
    putchar           X
    sigignore         X
    sigset            X
    strEQ             X
    strNE             X
    strnEQ            X
    strnNE            X

##### typedef's

    ACT_POS           X
    ART_LINE          X
    ART_NUM           X
    ART_POS           X
    ART_UNREAD        X
    MEM_SIZE          X
    NG_NUM            X

       1: /* $Header: common.h,v 4.3.1.4 86/10/31 15:46:09 lwall Exp $
       2:  *
       3:  * $Log:	common.h,v $
       4:  * Revision 4.3.1.4  86/10/31  15:46:09  lwall
       5:  * Expanded maximum number of .newsrc lines for net reorganization.
       6:  *
       7:  * Revision 4.3.1.3  85/05/23  17:19:32  lwall
       8:  * Now allows 'r' and 'f' on null articles.
       9:  *
      10:  * Revision 4.3.1.2  85/05/13  09:30:39  lwall
      11:  * Added CUSTOMLINES option.
      12:  *
      13:  * Revision 4.3.1.1  85/05/10  11:32:04  lwall
      14:  * Branch for patches.
      15:  *
      16:  * Revision 4.3  85/05/01  11:37:11  lwall
      17:  * Baseline for release with 4.3bsd.
      18:  *
      19:  */
      20:
      21: #include "config.h" /* generated by installation script */
      22: #ifdef WHOAMI
      23: #    include <whoami.h>
      24: #endif
      25:
      26: #include <stdio.h>
      27: #include <sys/types.h>
      28: #include <sys/stat.h>
      29: #include <ctype.h>
      30:
      31: #ifndef isalnum
      32: #   define isalnum(c) (isalpha(c) || isdigit(c))
      33: #endif
      34:
      35: #include <errno.h>
      36: #include <signal.h>
      37: #ifdef IOCTL
      38: #include <sys/ioctl.h>
      39: #endif IOCTL
      40:
      41: #ifdef FCNTL
      42: #   include <fcntl.h>
      43: #endif
      44:
      45: #ifdef TERMIO
      46: #   include <termio.h>
      47: #else
      48: #   include <sgtty.h>
      49: #endif
      50:
      51: #ifdef GETPWENT
      52: #   include <pwd.h>
      53: #endif
      54:
      55: #define BITSPERBYTE 8
      56: #define LBUFLEN 512 /* line buffer length */
      57:             /* (don't worry, .newsrc lines can exceed this) */
      58: #ifdef pdp11
      59: #   define CBUFLEN 256  /* command buffer length */
      60: #   define PUSHSIZE 128
      61: #else
      62: #   define CBUFLEN 512  /* command buffer length */
      63: #   define PUSHSIZE 256
      64: #endif
      65: #ifdef pdp11
      66: #   define MAXFILENAME 128
      67: #else
      68: #   define MAXFILENAME 512
      69: #endif
      70: #define LONGKEY 15  /* longest keyword: currently "posting-version" */
      71: #define FINISHCMD 0177
      72:
      73: /* some handy defs */
      74:
      75: #define bool char
      76: #define TRUE (1)
      77: #define FALSE (0)
      78: #define Null(t) ((t)0)
      79: #define Nullch Null(char *)
      80: #define Nullfp Null(FILE *)
      81:
      82: #define Ctl(ch) (ch & 037)
      83:
      84: #define strNE(s1,s2) (strcmp(s1,s2))
      85: #define strEQ(s1,s2) (!strcmp(s1,s2))
      86: #define strnNE(s1,s2,l) (strncmp(s1,s2,l))
      87: #define strnEQ(s1,s2,l) (!strncmp(s1,s2,l))
      88:
      89: /* Things we can figure out ourselves */
      90:
      91: #ifdef SIGTSTP
      92: #   define BERKELEY     /* include job control signals? */
      93: #endif
      94:
      95: #ifdef SIGPROF
      96: #   define BSD42        /* do we have Berkeley 4.2? */
      97: #endif
      98:
      99: #ifdef FIONREAD
     100: #   define PENDING
     101: #else
     102: #   ifdef O_NDELAY
     103: #	define PENDING
     104: #   endif
     105: #endif
     106:
     107: #ifdef EUNICE
     108: #   define LINKART      /* add 1 level of possible indirection */
     109: #   define UNLINK(victim) while (!unlink(victim))
     110: #else
     111: #   define UNLINK(victim) unlink(victim)
     112: #endif
     113:
     114: /* Valid substitutions for strings marked with % comment are:
     115:  *	%a	Current article number
     116:  *	%A	Full name of current article (%P/%c/%a)
     117:  *		(if LINKART defined, is the name of the real article)
     118:  *	%b	Destination of a save command, a mailbox or command
     119:  *	%B	The byte offset to the beginning of the article for saves
     120:  *		with or without the header
     121:  *	%c	Current newsgroup, directory form
     122:  *	%C	Current newsgroup, dot form
     123:  *	%d	%P/%c
     124:  *	%D	Old Distribution: line
     125:  *	%f	Old From: line or Reply-To: line
     126:  *	%F	Newsgroups to followup to from Newsgroups: and Followup-To:
     127:  *	%h	Name of header file to pass to mail or news poster
     128:  *	%H	Host name (yours)
     129:  *	%i	Old Message-I.D.: line, with <>
     130:  *	%I	Inclusion indicator
     131:  *	%l	News administrator login name
     132:  *	%L	Login name (yours)
     133:  *	%M	Number of articles markd with M
     134:  *	%n	Newsgroups from source article
     135:  *	%N	Full name (yours)
     136:  *	%o	Organization (yours)
     137:  *	%O	Original working directory (where you ran rn from)
     138:  *	%p	Your private news directory (-d switch)
     139:  *	%P	Public news spool directory (SPOOLDIR)
     140:  *	%r	Last reference (parent article id)
     141:  *	%R	New references list
     142:  *	%s	Subject, with all Re's and (nf)'s stripped off
     143:  *	%S	Subject, with one Re stripped off
     144:  *	%t	New To: line derived from From: and Reply-To (Internet always)
     145:  *	%T	New To: line derived from Path:
     146:  *	%u	Number of unread articles
     147:  *	%U	Number of unread articles disregarding current article
     148:  *	%x	News library directory, usually /usr/lib/news
     149:  *	%X	Rn library directory, usually %x/rn
     150:  *	%z	Size of current article in bytes.
     151:  *	%~	Home directory
     152:  *	%.	Directory containing . files
     153:  *	%$	current process number
     154:  *	%{name} Environment variable "name".  %{name-default} form allowed.
     155:  *	%[name]	Header line beginning with "Name: ", without "Name: "
     156:  *	%"prompt"
     157:  *		Print prompt and insert what is typed.
     158:  *	%`command`
     159:  *		Insert output of command.
     160:  *	%(test_text=pattern?if_text:else_text)
     161:  *		Substitute if_text if test_text matches pattern, otherwise
     162:  *		substitute else_text.  Use != for negated match.
     163:  *		% substitutions are done on test_text, if_text, and else_text.
     164:  *		(Note: %() only works if CONDSUB defined.)
     165:  *	%digit	Substitute the text matched by the nth bracket in the last
     166:  *		pattern that had brackets.  %0 matches the last bracket
     167:  *		matched, in case you had alternatives.
     168:  *
     169:  *	Put ^ in the middle to capitalize the first letter: %^C = Net.jokes
     170:  *	Put _ in the middle to capitalize last component: %_c = net/Jokes
     171:  *
     172:  *	~ interpretation in filename expansion happens after % expansion, so
     173:  *	you could put ~%{NEWSLOGNAME-news} and it will expand correctly.
     174:  */
     175:
     176: /* *** System Dependent Stuff *** */
     177:
     178: /* NOTE: many of these are defined in the config.h file */
     179:
     180: /* name of organization */
     181: #ifndef ORGNAME
     182: #   define ORGNAME "ACME Widget Company, Widget Falls, Southern North Dakota"
     183: #endif
     184:
     185: #ifndef MBOXCHAR
     186: #   define MBOXCHAR 'F' /* how to recognize a mailbox by 1st char */
     187: #endif
     188:
     189: #ifndef ROOTID
     190: #   define ROOTID 0        /* uid of superuser */
     191: #endif
     192:
     193: #ifdef NORMSIG
     194: #   define sigset signal
     195: #   define sigignore(sig) signal(sig,SIG_IGN)
     196: #endif
     197:
     198: #ifndef LOGDIRFIELD
     199: #   define LOGDIRFIELD 6        /* Which field (origin 1) is the */
     200:                     /* login directory in /etc/passwd? */
     201:                     /* (If it is not kept in passwd, */
     202:                     /* but getpwnam() returns it, */
     203:                     /* define the symbol GETPWENT) */
     204: #endif
     205: #ifndef GCOSFIELD
     206: #   define GCOSFIELD 5
     207: #endif
     208:
     209: #ifndef NEGCHAR
     210: #   define NEGCHAR '!'
     211: #endif
     212:
     213: /* Space conservation section */
     214:
     215: /* To save D space, cut down size of MAXRCLINE, NGMAX, VARYSIZE. */
     216: #define MAXRCLINE 900   /* number of lines allowed in .newsrc */
     217:             /* several parallel arrays affected. */
     218:             /* (You can have more lines in the active file, */
     219:             /* just not in the .newsrc) */
     220: #define HASHSIZ 991 /* should be prime, and at least MAXRCLINE + 10% */
     221: #define NGMAX 10    /* number of newsgroups allowed on command line -10*/
     222:             /* undefine ONLY symbol to disable "only" feature */
     223: #define VARYSIZE 128    /* this makes a block 1024 bytes long in DECville */
     224:             /* this makes a block 512 bytes long in DECville */
     225:             /* (used by virtual array routines) */
     226:
     227: /* Undefine any of the following features to save both I and D space */
     228: /* In general, earlier ones are easier to get along without */
     229: /* Pdp11's without split I and D may have to undefine them all */
     230: /* #define DEBUGGING	/* include debugging code */
     231: /* #define CUSTOMLINES	/* include code for HIDELINE and PAGESTOP */
     232: /* #define PUSHBACK	/* macros and keymaps using pushback buffer */
     233: /* #define SPEEDOVERMEM	/* use more memory to run faster */
     234: #define WORDERASE   /* enable ^W to erase a word */
     235: #define MAILCALL    /* check periodically for mail */
     236: #define CLEAREOL    /* use clear to end-of-line instead of clear screen */
     237: #define NOFIREWORKS /* keep whole screen from flashing on certain */
     238:             /* terminals such as older Televideos */
     239: #define VERIFY      /* echo the command they just typed */
     240: #undef HASHNG       /* hash newsgroup lines for fast lookup-- */
     241:             /* linear search used if not defined */
     242: #define CONDSUB     /* allow %(cond?text:text) */
     243: #define BACKTICK    /* allow %`command` */
     244: #define PROMPTTTY   /* allow %"prompt" */
     245: #define ULSMARTS    /* catch _^H in text and do underlining */
     246: #define TERMMOD     /* allow terminal type modifier on switches */
     247: /* #define BAUDMOD	/* allow baudrate modifier on switches */
     248: #define GETLOGIN    /* use getlogin() routine as backup to environment */
     249:             /* variables USER or LOGNAME */
     250: #define ORGFILE     /* if organization begins with /, look up in file */
     251: #define TILDENAME   /* allow ~logname expansion */
     252: #define SETENV      /* allow command line environment variable setting */
     253: #define GETWD       /* use our getwd() instead of piped in pwd */
     254: #ifndef BSD42       /* 4.2 sites should just use groups for this */
     255: #define SETUIDGID   /* substitute eaccess() for access() so that rn */
     256:             /* can run setuid or setgid */
     257:             /* if not setuid or setgid, you don't need it */
     258: #endif
     259: #define MAKEDIR     /* use our makedir() instead of shell script */
     260: /* #define MEMHELP	/* keep help messages in memory */
     261: /* #define VERBOSE		/* compile in more informative messages */
     262: #define TERSE       /* compile in shorter messages */
     263:             /* (Note: both VERBOSE and TERSE can be defined; -t
     264: 			 * sets terse mode.  One or the other MUST be defined.
     265: 			 */
     266: #ifndef pdp11
     267: #   define CACHESUBJ    /* cache subject lines in memory */
     268:             /* without this ^N still works but runs really slow */
     269:             /* but you save lots and lots of D space */
     270: #   define CACHEFIRST   /* keep absolute first article numbers in memory */
     271:             /* cost: about 2k */
     272: #endif
     273: #define ROTATION    /* enable x, X and ^X commands to work */
     274: #define DELBOGUS    /* ask if bogus newsgroups should be deleted */
     275: #define RELOCATE    /* allow newsgroup rearranging */
     276: #define ESCSUBS     /* escape substitutions in multi-character commands */
     277: #define DELAYMARK   /* allow articles to be temporarily marked as read */
     278:             /* until exit from current newsgroup or Y command */
     279: #define MCHASE      /* unmark xrefed articles on m or M */
     280: #define MUNGHEADER  /* allow alternate header formatting via */
     281:             /* environment variable ALTHEADER (not impl) */
     282: #define ASYNC_PARSE /* allow parsing headers asyncronously to reading */
     283:             /* used by MCHASE and MUNGHEADER */
     284: #define FINDNEWNG   /* check for new newsgroups on startup */
     285: #undef FASTNEW      /* do optimizations on FINDNEWNG for faster startup */
     286:             /* (this optimization can make occasional mistakes */
     287:             /* if a group is removed and another group of the */
     288:             /* same length is added, and if no softpointers are */
     289:             /* affected by said change.) */
     290: #define INNERSEARCH /* search command 'g' with article */
     291: #define CATCHUP     /* catchup command at newsgroup level */
     292: #define NGSEARCH    /* newsgroup pattern matching */
     293: #define ONLY        /* newsgroup restrictions by pattern */
     294: #define KILLFILES   /* automatic article killer files */
     295: #define ARTSEARCH   /* pattern searches among articles */
     296:             /* /, ?, ^N, ^P, k, K */
     297:
     298: /* some dependencies among options */
     299:
     300: #ifndef ARTSEARCH
     301: #   undef KILLFILES
     302: #   undef INNERSEARCH
     303: #   undef CACHESUBJ
     304: #endif
     305:
     306: #ifndef DELAYMARK
     307: #   ifndef MCHASE
     308: #	ifndef MUNGHEADER
     309: #	    undef ASYNC_PARSE
     310: #	endif
     311: #   endif
     312: #endif
     313:
     314: #ifndef SETUIDGID
     315: #   define eaccess access
     316: #endif
     317:
     318: #ifdef ONLY             /* idiot lint doesn't grok #if */
     319: #   define NGSORONLY
     320: #else
     321: #   ifdef NGSEARCH
     322: #	define NGSORONLY
     323: #   endif
     324: #endif
     325:
     326: #ifdef VERBOSE
     327: #   ifdef TERSE
     328: #	define IF(c) if (c)
     329: #	define ELSE else
     330: #   else !TERSE
     331: #	define IF(c)
     332: #	define ELSE
     333: #   endif
     334: #else !VERBOSE
     335: #   ifndef TERSE
     336: #	define TERSE
     337: #   endif
     338: #   define IF(c) "IF" outside of VERBOSE???
     339: #   define ELSE "ELSE" outside of VERBOSE???
     340: #endif
     341:
     342: #ifdef DEBUGGING
     343: #   define assert(ex) {if (!(ex)){fprintf(stderr,"Assertion failed: file %s, line %d\n", __FILE__, __LINE__);sig_catcher(0);}}
     344: #else
     345: #   define assert(ex) ;
     346: #endif
     347:
     348: #ifdef SPEEDOVERMEM
     349: #   define OFFSET(x) (x)
     350: #else
     351: #   define OFFSET(x) ((x)-absfirst)
     352: #endif
     353:
     354: /* If you're strapped for space use the help messages in shell scripts */
     355: /* if {NG,ART,PAGER,SUBS}HELP is undefined, help messages are in memory */
     356: #ifdef MEMHELP  /* undef MEMHELP above to get them all as sh scripts */
     357: #   undef NGHELP
     358: #   undef ARTHELP
     359: #   undef PAGERHELP
     360: #   undef SUBSHELP
     361: #else
     362: #   ifndef NGHELP           /* % and ~ */
     363: #	define NGHELP "%X/ng.help"
     364: #   endif
     365: #   ifndef ARTHELP          /* % and ~ */
     366: #	define ARTHELP "%X/art.help"
     367: #   endif
     368: #   ifndef PAGERHELP        /* % and ~ */
     369: #	define PAGERHELP "%X/pager.help"
     370: #   endif
     371: #   ifndef SUBSHELP     /* % and ~ */
     372: #	define SUBSHELP "%X/subs.help"
     373: #   endif
     374: #endif
     375:
     376: #ifdef CLEAREOL
     377: #   define TCSIZE 512   /* capacity for termcap strings */
     378: #else
     379: #   ifdef pdp11
     380: #	define TCSIZE 256 /* capacity for termcap strings */
     381: #   else
     382: #	define TCSIZE 512 /* capacity for termcap srings */
     383: #   endif
     384: #endif
     385:
     386: /* Additional ideas:
     387:  *	Make the do_newsgroup() routine a separate process.
     388:  *	Keep .newsrc on disk instead of in memory.
     389:  *	Overlays, if you have them.
     390:  *	Get a bigger machine.
     391:  */
     392:
     393: /* End of Space Conservation Section */
     394:
     395: /* More System Dependencies */
     396:
     397: /* news library */
     398: #ifndef LIB     /* ~ and %l only ("~%l" is permissable) */
     399: #   define LIB "/usr/lib/news"
     400: #endif
     401:
     402: /* path to private executables */
     403: #ifndef RNLIB       /* ~, %x and %l only */
     404: #   define RNLIB "%x/rn"
     405: #endif
     406:
     407: /* system-wide RNINIT switches */
     408: #ifndef GLOBINIT
     409: #   define GLOBINIT "%X/INIT"
     410: #endif
     411:
     412: /* where to find news files */
     413: #ifndef SPOOL           /* % and ~ */
     414: #   define SPOOL "/usr/spool/news"
     415: #endif
     416:
     417: /* file containing list of active newsgroups and max article numbers */
     418: #ifndef ACTIVE          /* % and ~ */
     419: #   define ACTIVE "%x/active"
     420: #endif
     421:
     422: /* location of history file */
     423: #ifndef ARTFILE         /* % and ~ */
     424: #    define ARTFILE "%x/history"
     425: #endif
     426:
     427: /* command to setup a new .newsrc */
     428: #ifndef NEWSETUP        /* % and ~ */
     429: #   define NEWSETUP "newsetup"
     430: #endif
     431:
     432: /* command to display a list of un-subscribed-to newsgroups */
     433: #ifndef NEWSGROUPS      /* % and ~ */
     434: #   define NEWSGROUPS "newsgroups"
     435: #endif
     436:
     437: /* preferred shell for use in doshell routine */
     438: /*  ksh or sh would be okay here */
     439: #ifndef PREFSHELL
     440: #   define PREFSHELL "/bin/csh"
     441: #endif
     442:
     443: /* path to fastest starting shell */
     444: #ifndef SH
     445: #   define SH "/bin/sh"
     446: #endif
     447:
     448: /* path to default editor */
     449: #ifndef DEFEDITOR
     450: #   define DEFEDITOR "/usr/ucb/vi"
     451: #endif
     452:
     453: /* location of macro file */
     454: #ifndef RNMACRO
     455: #   ifdef PUSHBACK
     456: #	define RNMACRO "%./.rnmac"
     457: #   endif
     458: #endif
     459:
     460: /* location of full name */
     461: #ifndef FULLNAMEFILE
     462: #   ifndef PASSNAMES
     463: #	define FULLNAMEFILE "%./.fullname"
     464: #   endif
     465: #endif
     466:
     467: /* virtual array file name template */
     468: #ifndef VARYNAME        /* % and ~ */
     469: #   define VARYNAME "/tmp/rnvary.%$"
     470: #endif
     471:
     472: /* file to pass header to followup article poster */
     473: #ifndef HEADNAME        /* % and ~ */
     474: #   define HEADNAME "%./.rnhead"
     475: /* or alternately #define HEADNAME "/tmp/rnhead.%$" */
     476: #endif
     477:
     478: #ifndef MAKEDIR
     479: /* shell script to make n-deep subdirectories */
     480: #   ifndef DIRMAKER     /* % and ~ */
     481: #	define DIRMAKER "%X/makedir"
     482: #   endif
     483: #endif
     484:
     485: /* location of newsrc file */
     486: #ifndef RCNAME      /* % and ~ */
     487: #   define RCNAME "%./.newsrc"
     488: #endif
     489:
     490: /* temporary newsrc file in case we crash while writing out */
     491: #ifndef RCTNAME     /* % and ~ */
     492: #   define RCTNAME "%./.newnewsrc"
     493: #endif
     494:
     495: /* newsrc file at the beginning of this session */
     496: #ifndef RCBNAME     /* % and ~ */
     497: #   define RCBNAME "%./.oldnewsrc"
     498: #endif
     499:
     500: /* if existent, contains process number of current or crashed rn */
     501: #ifndef LOCKNAME        /* % and ~ */
     502: #   define LOCKNAME "%./.rnlock"
     503: #endif
     504:
     505: /* information from last invocation of rn */
     506: #ifndef LASTNAME        /* % and ~ */
     507: #   define LASTNAME "%./.rnlast"
     508: #endif
     509:
     510: /* file with soft pointers into the active file */
     511: #ifndef SOFTNAME        /* % and ~ */
     512: #   define SOFTNAME "%./.rnsoft"
     513: #endif
     514:
     515: /* list of article numbers to mark as unread later (see M and Y cmmands) */
     516: #ifndef RNDELNAME       /* % and ~ */
     517: #   define RNDELNAME "%./.rndelay"
     518: #endif
     519:
     520: /* a motd-like file for rn */
     521: #ifndef NEWSNEWSNAME        /* % and ~ */
     522: #   define NEWSNEWSNAME "%X/newsnews"
     523: #endif
     524:
     525: /* command to send a reply */
     526: #ifndef MAILPOSTER      /* % and ~ */
     527: #   define MAILPOSTER "Rnmail -h %h"
     528: #endif
     529:
     530: #ifdef INTERNET
     531: #   ifndef MAILHEADER       /* % */
     532: #	ifdef CONDSUB
     533: #	    define MAILHEADER "To: %t\nSubject: Re: %S\nNewsgroups: %n\nIn-Reply-To: %i\n%(%[references]!=^$?References\\: %[references]\n)Organization: %o\nCc: \nBcc: \n\n"
     534: #	else
     535: #	    define MAILHEADER "To: %t\nSubject: Re: %S\nNewsgroups: %n\nIn-Reply-To: %i\nReferences: %[references]\nCc: \nBcc: \n\n"
     536: #	endif
     537: #   endif
     538: #else
     539: #   ifndef MAILHEADER       /* % */
     540: #	ifdef CONDSUB
     541: #	    define MAILHEADER "To: %T\nSubject: %(%i=^$?:Re: %S\nNewsgroups: %n\nIn-Reply-To: %i)\n%(%[references]!=^$?References\\: %[references]\n)Organization: %o\nCc: \nBcc: \n\n"
     542: #	else
     543: #	    define MAILHEADER "To: %T\nSubject: Re: %S\nNewsgroups: %n\nIn-Reply-To: %i\nReferences: %[references]\nCc: \nBcc: \n\n"
     544: #	endif
     545: #   endif
     546: #endif
     547:
     548: #ifndef YOUSAID         /* % */
     549: #   define YOUSAID "In article %i you write:"
     550: #endif
     551:
     552: /* command to submit a followup article */
     553: #ifndef NEWSPOSTER      /* % and ~ */
     554: #   define NEWSPOSTER "Pnews -h %h"
     555: #endif
     556:
     557: #ifndef NEWSHEADER      /* % */
     558: #   ifdef CONDSUB
     559: #	define NEWSHEADER "Newsgroups: %(%F=^$?%C:%F)\nSubject: %(%S=^$?%\"\n\nSubject: \":Re: %S)\nSummary: \nExpires: \n%(%R=^$?:References: %R\n)Sender: \nReply-To: %L@%H.UUCP (%N)\nFollowup-To: \nDistribution: %(%i=^$?%\"Distribution: \":%D)\nOrganization: %o\nKeywords: %[keywords]\n\n"
     560: #   else
     561: #	define NEWSHEADER "Newsgroups: %F\nSubject: Re: %S\nSummary: \nExpires: \nReferences: %R\nSender: \nReply-To: %L@%H.UUCP (%N)\nFollowup-To: \nDistribution: %D\nOrganization: %o\nKeywords: %[keywords]\n\n"
     562: #   endif
     563: #endif
     564:
     565: #ifndef ATTRIBUTION     /* % */
     566: #   define ATTRIBUTION "In article %i %f writes:"
     567: #endif
     568:
     569: #ifndef PIPESAVER       /* % */
     570: #   ifdef CONDSUB
     571: #       ifdef SERVER
     572: #               define PIPESAVER "%(%B=^0$?<%P/rrn%a.%$:tail +%Bc %P/rrn%a.%$ |) %b"
     573: #       else
     574: #		define PIPESAVER "%(%B=^0$?<%A:tail +%Bc %A |) %b"
     575: #	endif
     576: #   else
     577: #       ifdef SERVER
     578: #               define PIPESAVER "tail +%Bc %P/rrn%a.%$ | %b"
     579: #       else
     580: #		define PIPESAVER "tail +%Bc %A | %b"
     581: #	endif
     582: #   endif
     583: #endif
     584:
     585: #ifndef NORMSAVER       /* % and ~ */
     586: #    ifdef SERVER
     587: #	define NORMSAVER "%X/norm.saver %P/rrn%a.%$ %P %c %a %B %C \"%b\""
     588: #    else
     589: #   	define NORMSAVER "%X/norm.saver %A %P %c %a %B %C \"%b\""
     590: #    endif
     591: #endif
     592:
     593: #ifndef MBOXSAVER       /* % and ~ */
     594: #   ifdef MININACT      /* 2.10.2 site? */
     595: #       ifdef SERVER
     596: #           define MBOXSAVER "%X/mbox.saver %P/rrn%a.%$ %P %c %a %B %C \"%b\" \"From %T %`date`\""
     597: #       else
     598: #	    define MBOXSAVER "%X/mbox.saver %A %P %c %a %B %C \"%b\" \"From %T %`date`\""
     599: #	endif SERVER
     600: #   else
     601: #	ifdef CONDSUB
     602: #           ifdef SERVER
     603: #               define MBOXSAVER "%X/mbox.saver %P/rrn%a.%$ %P %c %a %B %C \"%b\
     604: " \"From %T %(%[date]=^\\(\\w*\\), \\(\\w*\\)-\\(\\w*\\)-\\(\\w*\\) \\([^ ]*\\)?
     605: %1 %3 %(%2=..?%2: %2) %5 19%4)\""
     606: #           else
     607: #	        define MBOXSAVER "%X/mbox.saver %A %P %c %a %B %C \"%b\" \"From %T %(%[date]=^\\(\\w*\\), \\(\\w*\\)-\\(\\w*\\)-\\(\\w*\\) \\([^ ]*\\)?%1 %3 %(%2=..?%2: %2) %5 19%4)\""
     608: #	    endif
     609:                     /* header munging with a vengeance */
     610: #	else
     611: #           ifdef SERVER
     612: #               define MBOXSAVER "%X/mbox.saver %P/rrn%a.%$ %P %c %a %B %C \"%b\" \"From %T %[posted]\""
     613: #           else
     614: #	        define MBOXSAVER "%X/mbox.saver %A %P %c %a %B %C \"%b\" \"From %T %[posted]\""
     615: #	    endif
     616: #	endif
     617: #   endif
     618: #endif
     619:
     620: #ifdef MKDIRS
     621:
     622: #   ifndef SAVEDIR          /* % and ~ */
     623: #	define SAVEDIR "%p/%c"
     624: #   endif
     625: #   ifndef SAVENAME     /* % */
     626: #	define SAVENAME "%a"
     627: #   endif
     628:
     629: #else
     630:
     631: #   ifndef SAVEDIR          /* % and ~ */
     632: #	define SAVEDIR "%p"
     633: #   endif
     634: #   ifndef SAVENAME     /* % */
     635: #	define SAVENAME "%^C"
     636: #   endif
     637:
     638: #endif
     639:
     640: #ifndef KILLGLOBAL      /* % and ~ */
     641: #   define KILLGLOBAL "%p/KILL"
     642: #endif
     643:
     644: #ifndef KILLLOCAL       /* % and ~ */
     645: #   define KILLLOCAL "%p/%c/KILL"
     646: #endif
     647:
     648: /* how to cancel an article */
     649: #ifndef CANCEL
     650: #   ifdef MININACT          /* 2.10.2 ? */
     651: #	define CANCEL "%x/inews -h < %h"
     652: #   else
     653: #	define CANCEL "inews -h < %h"
     654: #   endif
     655: #endif
     656:
     657: /* how to cancel an article, continued */
     658: #ifndef CANCELHEADER
     659: #   define CANCELHEADER "Newsgroups: %n\nSubject: cmsg cancel %i\nReferences: %R\nReply-To: %L@%H.UUCP (%N)\nDistribution: %D\nOrganization: %o\n"
     660: #endif
     661:
     662: /* where to find the mail file */
     663: #ifndef MAILFILE
     664: #   define MAILFILE "/usr/spool/mail/%L"
     665: #endif
     666:
     667: /* some important types */
     668:
     669: typedef int     NG_NUM;     /* newsgroup number */
     670: typedef long        ART_NUM;    /* article number */
     671: #ifdef pdp11
     672:     typedef short   ART_UNREAD; /* ordinarily this should be long */
     673:                     /* like ART_NUM, but assuming that */
     674:                     /* we stay less than 32767 articles */
     675:                     /* behind saves a lot of space. */
     676:                     /* NOTE: do not make unsigned. */
     677: #else
     678:     typedef long    ART_UNREAD;
     679: #endif
     680: typedef long        ART_POS;    /* char position in article file */
     681: typedef int     ART_LINE;   /* line position in article file */
     682: /* following was short until 6/9/92 */
     683: typedef long        ACT_POS;    /* char position in active file */
     684: typedef unsigned int    MEM_SIZE;   /* for passing to malloc */
     685:
     686: /* *** end of the machine dependent stuff *** */
     687:
     688: /* GLOBAL THINGS */
     689:
     690: /* file statistics area */
     691:
     692: EXT struct stat filestat;
     693:
     694: /* various things of type char */
     695:
     696: char    *index();
     697: char    *rindex();
     698: char    *getenv();
     699: char    *strcat();
     700: char    *strcpy();
     701: char    *sprintf();
     702:
     703: EXT char buf[LBUFLEN+1];    /* general purpose line buffer */
     704: EXT char cmd_buf[CBUFLEN];  /* buffer for formatting system commands */
     705:
     706: EXT char *indstr INIT(">"); /* indent for old article embedded in followup */
     707:
     708: EXT char *cwd INIT(Nullch);     /* current working directory */
     709: EXT char *dfltcmd INIT(Nullch); /* 1st char is default command */
     710:
     711: /* switches */
     712:
     713: #ifdef DEBUGGING
     714:     EXT int debug INIT(0);              /* -D */
     715: #   define DEB_INNERSRCH 32
     716: #   define DEB_FILEXP 64
     717: #   define DEB_HASH 128
     718: #   define DEB_XREF_MARKER 256
     719: #   define DEB_CTLAREA_BITMAP 512
     720: #   define DEB_SOFT_POINTERS 1024
     721: #   define DEB_NEWSRC_LINE 2048
     722: #   define DEB_SEARCH_AHEAD 4096
     723: #   define DEB_CHECKPOINTING 8192
     724: #   define DEB_FEED_XREF 16384
     725: #endif
     726:
     727: #ifdef ARTSEARCH
     728:     EXT int scanon INIT(0);             /* -S */
     729: #endif
     730:
     731: EXT bool mbox_always INIT(FALSE);           /* -M */
     732: EXT bool norm_always INIT(FALSE);           /* -N */
     733: EXT bool checkflag INIT(FALSE);         /* -c */
     734: EXT bool suppress_cn INIT(FALSE);           /* -s */
     735: EXT int countdown INIT(5);  /* how many lines to list before invoking -s */
     736: EXT bool muck_up_clear INIT(FALSE);         /* -loco */
     737: EXT bool erase_screen INIT(FALSE);          /* -e */
     738: #ifdef CLEAREOL
     739: EXT bool can_home_clear INIT(FALSE);        /* fancy -e -- PWP */
     740: #endif CLEAREOL
     741: EXT bool findlast INIT(FALSE);          /* -r */
     742: EXT bool typeahead INIT(FALSE);         /* -T */
     743: #ifdef VERBOSE
     744: #   ifdef TERSE
     745:     EXT bool verbose INIT(TRUE);            /* +t */
     746: #   endif
     747: #endif
     748: #ifdef VERIFY
     749:     EXT bool verify INIT(FALSE);            /* -v */
     750: #endif
     751:
     752: #define NOMARKING 0
     753: #define STANDOUT 1
     754: #define UNDERLINE 2
     755: EXT int marking INIT(NOMARKING);            /* -m */
     756:
     757: EXT ART_LINE initlines INIT(0);     /* -i */
     758:
     759: /* miscellania */
     760:
     761: long atol(), fseek(), ftell();
     762: EXT bool in_ng INIT(FALSE);     /* current state of rn */
     763: EXT char mode INIT('i');        /* current state of rn */
     764:
     765: EXT FILE *tmpfp INIT(Nullfp);   /* scratch fp used for .rnlock, .rnlast, etc. */
     766:
     767: EXT NG_NUM nextrcline INIT(0);  /* 1st unused slot in rcline array */
     768:             /* startup to avoid checking twice in a row */
     769:
     770: extern errno;
     771:
     772: /* Factored strings */
     773:
     774: EXT char nullstr[] INIT("");
     775: EXT char sh[] INIT(SH);
     776: EXT char defeditor[] INIT(DEFEDITOR);
     777: EXT char hforhelp[] INIT("Type h for help.\n");
     778: #ifdef STRICTCR
     779: EXT char badcr[] INIT("\nUnnecessary CR ignored.\n");
     780: #endif
     781: EXT char readerr[] INIT("rn read error");
     782: EXT char unsubto[] INIT("\n\nUnsubscribed to newsgroup %s\n");
     783: EXT char cantopen[] INIT("Can't open %s\n");
     784: EXT char cantcreate[] INIT("Can't create %s\n");
     785:
     786: #ifdef VERBOSE
     787:     EXT char nocd[] INIT("Can't chdir to directory %s\n");
     788: #else
     789:     EXT char nocd[] INIT("Can't find %s\n");
     790: #endif
     791:
     792: #ifdef NOLINEBUF
     793: #define FLUSH ,fflush(stdout)
     794: #else
     795: #define FLUSH
     796: #endif
     797:
     798: #ifdef lint
     799: #undef FLUSH
     800: #define FLUSH
     801: #undef putchar
     802: #define putchar(c)
     803: #endif

#### Defined variables

badcr defined in line 779; used 2 times

- in /usr/src/new/rn/ng.c line 992
- in /usr/src/new/rn/rn.c line 489

buf defined in line 703; used 274 times

- in /usr/src/new/rn/addng.c line 61, 68-89(9), 103, 110-112(4)
- in /usr/src/new/rn/art.c line 318, 494, 539-544(3), 584, 617, 640, 652-658(4), 687, 716, 766, 807-808(2)
- in /usr/src/new/rn/artsrch.c line 60, 72-73(2), 277-282(5)
- in /usr/src/new/rn/bits.c line 85-91(3), 97-101(3), 142-145(3), 279-280(3), 481, 583, 629, 636-638(2)
- in /usr/src/new/rn/cheat.c line 52-55(3), 67
- in /usr/src/new/rn/init.c line 219-220(2), 261-263(2), 334-335(3)
- in /usr/src/new/rn/intrp.c line 130-131(3), 146-148(5), 978-980(3), 991-1000(7)
- in /usr/src/new/rn/kfile.c line 82-87(5), 94-99(3), 105-111(6), 188-195(6), 201, 212-217(4), 227
- in /usr/src/new/rn/ng.c line 261, 467-470(3), 547-551(2), 605, 669-672(3), 718-719(2), 753-757(2), 776-779(4), 791, 915
- in /usr/src/new/rn/ngsrch.c line 46
- in /usr/src/new/rn/ngstuff.c line 41, 47, 85-89(3), 97, 103-108(2), 142, 153, 293
- in /usr/src/new/rn/rcstuff.c line 98, 120, 169, 230-231(2), 289, 323-327(2), 340-348(4), 381-385(2), 397-400(3), 519-520(2), 534-546(4), 580-588(3), 594-614(7), 788-792(2), 806-808(3)
- in /usr/src/new/rn/respond.c line 52-60(4), 80, 102, 119-127(6), 136(2), 144(2), 164-168(2), 187-193(3), 212-213(2), 300-301(3), 316, 325-345(10), 360, 368-369(3), 378-385(5)
- in /usr/src/new/rn/rn.c line 204-213(4), 236, 271, 313-318(2), 351-352(2), 362-366(6), 404, 410-413(3), 437, 461-466(3)
- in /usr/src/new/rn/term.c line 412, 456-464(7), 481, 489, 502, 548(2), 727, 780, 877-878(2), 977-985(4), 1007

cantcreate defined in line 784; used 9 times

- in /usr/src/new/rn/addng.c line 56
- in /usr/src/new/rn/bits.c line 225
- in /usr/src/new/rn/init.c line 318
- in /usr/src/new/rn/kfile.c line 201
- in /usr/src/new/rn/last.c line 52
- in /usr/src/new/rn/rcstuff.c line 969
- in /usr/src/new/rn/respond.c line 297, 322, 365

cantopen defined in line 783; used 7 times

- in /usr/src/new/rn/backpage.c line 29
- in /usr/src/new/rn/bits.c line 292
- in /usr/src/new/rn/kfile.c line 278
- in /usr/src/new/rn/ngdata.c line 55, 75
- in /usr/src/new/rn/sw.c line 74
- in /usr/src/new/rn/term.c line 131

cmd_buf defined in line 704; used 48 times

- in /usr/src/new/rn/art.c line 607-608(2)
- in /usr/src/new/rn/bits.c line 580
- in /usr/src/new/rn/head.c line 295-297(2)
- in /usr/src/new/rn/kfile.c line 216-221(3), 259-271(5), 278
- in /usr/src/new/rn/ngstuff.c line 61-63(3)
- in /usr/src/new/rn/respond.c line 86-93(4), 158-162(2), 222-227(3), 350-351(3), 390-391(3)
- in /usr/src/new/rn/rn.c line 439-441(2)
- in /usr/src/new/rn/sw.c line 462-466(4)
- in /usr/src/new/rn/term.c line 363-369(4), 375-380(4)
- in /usr/src/new/rn/util.c line 436-437(2)

countdown defined in line 735; used 7 times

- in /usr/src/new/rn/rcstuff.c line 203-207(3)
- in /usr/src/new/rn/sw.c line 311-316(2), 410-411(2)

cwd defined in line 708; used 21 times

- in /usr/src/new/rn/intrp.c line 648
- in /usr/src/new/rn/ngstuff.c line 54-55(2)
- in /usr/src/new/rn/respond.c line 74-75(2), 121, 145
- in /usr/src/new/rn/sw.c line 194-198(4), 379, 456-460(5), 474, 482-486(2), 502

debug defined in line 714; used 70 times

- in /usr/src/new/rn/art.c line 378, 523, 636, 655, 669, 681, 714, 883, 893, 905
- in /usr/src/new/rn/artsrch.c line 154, 264
- in /usr/src/new/rn/bits.c line 63, 73, 136, 169, 187, 321, 340, 351, 367, 373, 390, 434, 539, 569, 578
- in /usr/src/new/rn/cheat.c line 44, 64, 82, 91
- in /usr/src/new/rn/final.c line 86, 146, 192, 217
- in /usr/src/new/rn/head.c line 96, 140, 332
- in /usr/src/new/rn/intrp.c line 170-175(2), 184, 199, 249, 257, 274, 363, 896
- in /usr/src/new/rn/ng.c line 275
- in /usr/src/new/rn/ngdata.c line 95, 113, 166
- in /usr/src/new/rn/rcln.c line 95, 170, 202, 220, 262, 287, 401, 445
- in /usr/src/new/rn/rcstuff.c line 227, 852, 882, 953
- in /usr/src/new/rn/sw.c line 136, 207-214(4), 381-382(2)

defeditor defined in line 776; used 1 times

- in /usr/src/new/rn/kfile.c line 217

dfltcmd defined in line 709; used 15 times

- in /usr/src/new/rn/art.c line 811
- in /usr/src/new/rn/ng.c line 455, 547, 1027-1036(4)
- in /usr/src/new/rn/rn.c line 142-152(3), 176, 182, 189, 209, 479

filestat defined in line 692; used 38 times

- in /usr/src/new/rn/addng.c line 135-139(2)
- in /usr/src/new/rn/art.c line 103-108(3)
- in /usr/src/new/rn/artio.c line 101-103(2)
- in /usr/src/new/rn/init.c line 196-198(3), 332-333(2)
- in /usr/src/new/rn/intrp.c line 764-766(3)
- in /usr/src/new/rn/kfile.c line 240-241(2)
- in /usr/src/new/rn/ng.c line 1011-1012(4)
- in /usr/src/new/rn/ngdata.c line 252-257(3)
- in /usr/src/new/rn/respond.c line 130-131(2), 203
- in /usr/src/new/rn/sw.c line 59-64(6)
- in /usr/src/new/rn/util.c line 221-228(4), 412

hforhelp defined in line 777; used 10 times

- in /usr/src/new/rn/art.c line 871
- in /usr/src/new/rn/ng.c line 780, 996
- in /usr/src/new/rn/rcstuff.c line 358, 404, 618, 813
- in /usr/src/new/rn/respond.c line 197
- in /usr/src/new/rn/rn.c line 363, 496

indstr defined in line 706; used 5 times

- in /usr/src/new/rn/intrp.c line 598
- in /usr/src/new/rn/respond.c line 345, 385
- in /usr/src/new/rn/sw.c line 239, 385

initlines defined in line 757; used 9 times

- in /usr/src/new/rn/art.c line 178
- in /usr/src/new/rn/sw.c line 270, 398
- in /usr/src/new/rn/term.c line 221-233(6)

marking defined in line 755; used 13 times

- in /usr/src/new/rn/art.c line 273, 357, 416, 466, 589, 847, 854
- in /usr/src/new/rn/sw.c line 289-293(3), 403-404(2)
- in /usr/src/new/rn/term.c line 161

mode defined in line 763; used 18 times

- in /usr/src/new/rn/art.c line 97, 183, 193, 508, 538, 566-569(2)
- in /usr/src/new/rn/intrp.c line 612
- in /usr/src/new/rn/ng.c line 119, 136, 183, 191, 203, 536
- in /usr/src/new/rn/rn.c line 111
- in /usr/src/new/rn/term.c line 869, 876, 882

nextrcline defined in line 767; used 72 times

- in /usr/src/new/rn/addng.c line 77-83(3), 147-151(2)
- in /usr/src/new/rn/help.c line 179
- in /usr/src/new/rn/init.c line 199, 230
- in /usr/src/new/rn/ngsrch.c line 75-78(2), 85
- in /usr/src/new/rn/rcln.c line 70, 199
- in /usr/src/new/rn/rcstuff.c line 97-106(4), 133, 273, 426, 467, 473, 487, 500-509(7), 551, 557, 567, 573, 591-592(2), 600, 610, 623-626(2), 632-643(8), 688, 724-728(2), 751, 759-761(3), 782, 809-810(3), 945, 972
- in /usr/src/new/rn/rn.c line 77, 96, 110-113(3), 238, 246, 263, 366, 376, 457

nocd defined in line 789; used 10 times

- in /usr/src/new/rn/init.c line 106
- in /usr/src/new/rn/ng.c line 190, 527
- in /usr/src/new/rn/ngstuff.c line 55, 68, 112
- in /usr/src/new/rn/respond.c line 75, 245, 400, 429

nullstr defined in line 774; used 23 times

- in /usr/src/new/rn/bits.c line 275, 421
- in /usr/src/new/rn/head.c line 203
- in /usr/src/new/rn/intrp.c line 399, 407, 515, 620, 773-778(2)
- in /usr/src/new/rn/last.c line 35, 48
- in /usr/src/new/rn/ng.c line 302, 1013
- in /usr/src/new/rn/ngdata.c line 143
- in /usr/src/new/rn/only.c line 108
- in /usr/src/new/rn/rcstuff.c line 194, 200
- in /usr/src/new/rn/rn.c line 121
- in /usr/src/new/rn/search.c line 135
- in /usr/src/new/rn/sw.c line 232
- in /usr/src/new/rn/term.c line 36, 155, 183

readerr defined in line 781; used 1 times

- in /usr/src/new/rn/term.c line 735

scanon defined in line 728; used 7 times

- in /usr/src/new/rn/ng.c line 132(2), 604
- in /usr/src/new/rn/sw.c line 325-327(2), 415-416(2)

sh defined in line 775; used 12 times

- in /usr/src/new/rn/help.c line 34, 89, 172, 246
- in /usr/src/new/rn/kfile.c line 221
- in /usr/src/new/rn/rcstuff.c line 908
- in /usr/src/new/rn/respond.c line 93, 303, 413
- in /usr/src/new/rn/rn.c line 441
- in /usr/src/new/rn/util.c line 433-437(2)

unsubto defined in line 782; used 2 times

- in /usr/src/new/rn/bits.c line 154
- in /usr/src/new/rn/rn.c line 378

#### Defined typedef's

ACT_POS defined in line 683; used 8 times

- in /usr/src/new/rn/ngdata.c line 151, 158, 172-174(2), 180-187(3)
- in /usr/src/new/rn/rcstuff.c line 456

ART_LINE defined in line 681; used 9 times

- in line 757
- in /usr/src/new/rn/art.c line 55, 64, 87, 731
- in /usr/src/new/rn/backpage.c line 16, 39, 74
- in /usr/src/new/rn/ng.c line 943

ART_NUM defined in line 670; used 70 times

- in /usr/src/new/rn/addng.c line 84, 123
- in /usr/src/new/rn/art.c line 144, 150
- in /usr/src/new/rn/artio.c line 25
- in /usr/src/new/rn/artsrch.c line 255
- in /usr/src/new/rn/bits.c line 86-87(2), 115, 166, 184, 204, 220, 240, 251-253(2), 270, 280, 304, 330, 484, 548, 592-600(4)
- in /usr/src/new/rn/cheat.c line 119
- in /usr/src/new/rn/head.c line 91, 153, 179, 192, 306
- in /usr/src/new/rn/intrp.c line 748
- in /usr/src/new/rn/kfile.c line 85, 143-148(2), 183
- in /usr/src/new/rn/ng.c line 63-64(2), 132, 268, 275, 365, 377, 545, 831
- in /usr/src/new/rn/ngdata.c line 82, 121, 196-201(3), 231-239(4)
- in /usr/src/new/rn/ngstuff.c line 125-128(2)
- in /usr/src/new/rn/rcln.c line 59-64(2), 188-193(2), 303, 325-327(3), 391-395(3)
- in /usr/src/new/rn/rcstuff.c line 459-462(2)

ART_POS defined in line 680; used 12 times

- in /usr/src/new/rn/art.c line 59-62(2), 85, 126, 631
- in /usr/src/new/rn/backpage.c line 37, 75
- in /usr/src/new/rn/cheat.c line 120
- in /usr/src/new/rn/head.c line 310-313(3)
- in /usr/src/new/rn/ngdata.c line 89

ART_UNREAD defined in line 672; used 7 times

- in line 678
- in /usr/src/new/rn/bits.c line 159, 611
- in /usr/src/new/rn/ng.c line 280
- in /usr/src/new/rn/rcln.c line 370-373(2)
- in /usr/src/new/rn/rcstuff.c line 453

MEM_SIZE defined in line 684; used 38 times

- in /usr/src/new/rn/bits.c line 45, 99, 107, 143-148(2), 347, 384, 496, 507, 594, 602-604(2), 618
- in /usr/src/new/rn/head.c line 197, 215, 278
- in /usr/src/new/rn/rcln.c line 129, 246, 351, 423, 435
- in /usr/src/new/rn/rcstuff.c line 127, 148, 430
- in /usr/src/new/rn/search.c line 358
- in /usr/src/new/rn/sw.c line 61, 85
- in /usr/src/new/rn/term.c line 211
- in /usr/src/new/rn/util.c line 91, 111, 360, 366, 384, 456, 469-474(2), 522-524(2)

NG_NUM defined in line 669; used 26 times

- in line 767
- in /usr/src/new/rn/addng.c line 47, 147
- in /usr/src/new/rn/init.c line 199
- in /usr/src/new/rn/ngdata.c line 84, 198
- in /usr/src/new/rn/rcln.c line 35, 62, 191, 316, 390
- in /usr/src/new/rn/rcstuff.c line 51, 422-426(2), 446-449(3), 457, 679, 709-713(2), 739-740(2), 838, 934
- in /usr/src/new/rn/rn.c line 87

#### Defined macros

ACTIVE defined in line 419; used 1 times

- in line 418

ARTFILE defined in line 424; used 3 times

- in line 423
- in /usr/src/new/rn/bits.c line 343-344(2)

ARTHELP defined in line 366; used 4 times

- in line 358, 365
- in /usr/src/new/rn/help.c line 88-89(2)

ARTSEARCH defined in line 295; used 22 times

- in line 300, 727
- in /usr/src/new/rn/artsrch.c line 28, 38
- in /usr/src/new/rn/cheat.c line 25, 40
- in /usr/src/new/rn/ng.c line 131, 309, 418, 558, 579, 587, 603, 611, 622, 629, 644, 666, 885, 1025
- in /usr/src/new/rn/sw.c line 321, 414

ASYNC_PARSE defined in line 282; used 16 times

- in line 309
- in /usr/src/new/rn/art.c line 119
- in /usr/src/new/rn/bits.c line 307
- in /usr/src/new/rn/head.c line 105, 150, 315
- in /usr/src/new/rn/intrp.c line 551, 563, 654, 666, 713
- in /usr/src/new/rn/ngstuff.c line 271, 279
- in /usr/src/new/rn/respond.c line 57, 340, 380

ATTRIBUTION defined in line 566; used 2 times

- in line 565
- in /usr/src/new/rn/respond.c line 378

BACKTICK defined in line 243; used 2 times

- in /usr/src/new/rn/intrp.c line 305, 459

BERKELEY defined in line 92; never used
BITSPERBYTE defined in line 55; used 12 times

- in /usr/src/new/rn/bits.c line 496, 536, 602
- in /usr/src/new/rn/search.c line 33-37(2), 329-332(4), 595-598(3)

BSD42 defined in line 96; used 2 times

- in line 254
- in /usr/src/new/rn/final.c line 196

CACHEFIRST defined in line 270; used 15 times

- in /usr/src/new/rn/ngdata.c line 34, 125, 206, 212, 222
- in /usr/src/new/rn/rcln.c line 73, 322, 338
- in /usr/src/new/rn/rcstuff.c line 461, 484, 496, 508, 640, 652, 664

CACHESUBJ defined in line 267; used 15 times

- in line 303
- in /usr/src/new/rn/artsrch.c line 269
- in /usr/src/new/rn/bits.c line 531, 614
- in /usr/src/new/rn/cheat.c line 118
- in /usr/src/new/rn/head.c line 190, 210, 279-284(2)
- in /usr/src/new/rn/ng.c line 196, 514, 834-844(3), 889

CANCEL defined in line 653; used 1 times

- in line 649

CANCELHEADER defined in line 659; used 2 times

- in line 658
- in /usr/src/new/rn/respond.c line 300

CATCHUP defined in line 291; used 3 times

- in /usr/src/new/rn/ng.c line 165
- in /usr/src/new/rn/rcln.c line 32
- in /usr/src/new/rn/rn.c line 340

CBUFLEN defined in line 62; used 5 times

- in line 704
- in /usr/src/new/rn/head.c line 295
- in /usr/src/new/rn/intrp.c line 165-166(2)
- in /usr/src/new/rn/respond.c line 50

CLEAREOL defined in line 236; used 15 times

- in line 376, 738
- in /usr/src/new/rn/art.c line 136, 146, 255, 294, 451, 548, 733, 829
- in /usr/src/new/rn/ng.c line 449
- in /usr/src/new/rn/sw.c line 276, 400
- in /usr/src/new/rn/term.c line 167, 1017

CONDSUB defined in line 242; used 10 times

- in line 532, 540, 558, 570, 601
- in /usr/src/new/rn/intrp.c line 78, 263, 289, 417, 512

Ctl defined in line 82; used 35 times

- in /usr/src/new/rn/art.c line 494, 586, 605-610(2), 640, 698, 730, 769, 789-793(3), 799, 824
- in /usr/src/new/rn/artsrch.c line 48, 112-113(2)
- in /usr/src/new/rn/ng.c line 605, 659-664(3), 711(2), 911-915(3), 925, 931, 941
- in /usr/src/new/rn/rn.c line 336
- in /usr/src/new/rn/term.c line 435-436(2), 498, 513-518(2)
- in /usr/src/new/rn/util.c line 540

DEB_CHECKPOINTING defined in line 723; used 3 times

- in /usr/src/new/rn/art.c line 523
- in /usr/src/new/rn/bits.c line 63, 73

DEB_CTLAREA_BITMAP defined in line 719; used 3 times

- in /usr/src/new/rn/bits.c line 539, 569, 578

DEB_FEED_XREF defined in line 724; used 1 times

- in /usr/src/new/rn/bits.c line 321

DEB_FILEXP defined in line 716; used 7 times

- in /usr/src/new/rn/intrp.c line 170-175(2), 184, 199, 249, 257, 896

DEB_HASH defined in line 717; used 3 times

- in /usr/src/new/rn/rcstuff.c line 227, 852, 882

DEB_INNERSRCH defined in line 715; used 9 times

- in /usr/src/new/rn/art.c line 378, 636, 655, 669, 681, 714, 883, 893, 905

DEB_NEWSRC_LINE defined in line 721; used 2 times

- in /usr/src/new/rn/bits.c line 136
- in /usr/src/new/rn/rcstuff.c line 953

DEB_SEARCH_AHEAD defined in line 722; used 2 times

- in /usr/src/new/rn/artsrch.c line 264
- in /usr/src/new/rn/cheat.c line 64

DEB_SOFT_POINTERS defined in line 720; used 3 times

- in /usr/src/new/rn/ngdata.c line 95, 113, 166

DEB_XREF_MARKER defined in line 718; used 9 times

- in /usr/src/new/rn/bits.c line 390
- in /usr/src/new/rn/rcln.c line 95, 170, 202, 220, 262, 287, 401, 445

DEFEDITOR defined in line 450; used 2 times

- in line 449, 776

DELAYMARK defined in line 277; used 11 times

- in line 306
- in /usr/src/new/rn/art.c line 151
- in /usr/src/new/rn/bits.c line 50, 214, 266, 486
- in /usr/src/new/rn/intrp.c line 616
- in /usr/src/new/rn/ng.c line 726, 787, 984
- in /usr/src/new/rn/ngstuff.c line 250

DELBOGUS defined in line 274; used 1 times

- in /usr/src/new/rn/rcstuff.c line 784

DIRMAKER defined in line 481; used 2 times

- in line 480
- in /usr/src/new/rn/util.c line 436

ELSE defined in line 339; used 65 times

- in /usr/src/new/rn/artsrch.c line 132
- in /usr/src/new/rn/bits.c line 633
- in /usr/src/new/rn/final.c line 168
- in /usr/src/new/rn/init.c line 211, 268, 283, 293, 308
- in /usr/src/new/rn/intrp.c line 228
- in /usr/src/new/rn/kfile.c line 67, 119, 264
- in /usr/src/new/rn/ng.c line 160, 175, 224, 295, 329, 344, 571, 681, 747, 765, 823
- in /usr/src/new/rn/ngstuff.c line 200, 266, 326
- in /usr/src/new/rn/only.c line 109
- in /usr/src/new/rn/rcln.c line 42
- in /usr/src/new/rn/rcstuff.c line 195, 261, 297, 315, 332, 372, 389, 526, 561, 746, 775, 799, 824, 903, 915
- in /usr/src/new/rn/respond.c line 67, 108, 176, 267, 289, 332, 407, 419
- in /usr/src/new/rn/rn.c line 122, 132, 148, 183, 278, 293, 345, 446
- in /usr/src/new/rn/sw.c line 357, 435, 475, 495
- in /usr/src/new/rn/term.c line 813, 835

ESCSUBS defined in line 276; used 2 times

- in /usr/src/new/rn/help.c line 240
- in /usr/src/new/rn/term.c line 439

FALSE defined in line 77; used 147 times

- in line 731-742(9), 749, 762
- in /usr/src/new/rn/addng.c line 57, 66, 115, 154
- in /usr/src/new/rn/art.c line 53, 65, 86-89(2), 96, 130, 167, 214, 246, 269, 493, 502-503(2), 615, 803-805(2), 901, 912
- in /usr/src/new/rn/artsrch.c line 53, 61-66(2), 90, 262(2), 271-275(3), 281, 287
- in /usr/src/new/rn/bits.c line 210, 284, 597
- in /usr/src/new/rn/cheat.c line 129(2)
- in /usr/src/new/rn/final.c line 159-162(2)
- in /usr/src/new/rn/head.c line 104, 122, 147, 168(2)
- in /usr/src/new/rn/init.c line 58, 222-227(2)
- in /usr/src/new/rn/intrp.c line 357-358(2), 367-368(2)
- in /usr/src/new/rn/kfile.c line 32, 111, 147, 154, 176
- in /usr/src/new/rn/ng.c line 249, 435-438(2), 496-499(2), 512, 525, 696, 704, 796, 841-846(3), 863(2), 893, 907
- in /usr/src/new/rn/ngsrch.c line 47-51(2)
- in /usr/src/new/rn/ngstuff.c line 144-147(2), 262(2), 285
- in /usr/src/new/rn/only.c line 70, 91
- in /usr/src/new/rn/rcstuff.c line 54, 269, 303, 309, 341-345(2), 354, 398, 830
- in /usr/src/new/rn/respond.c line 154, 188, 204, 210
- in /usr/src/new/rn/rn.c line 65, 84, 91-93(2), 192, 239, 310, 320, 423, 464
- in /usr/src/new/rn/search.c line 82, 420-425(2), 432-437(2), 444, 451, 457, 463, 474, 482, 499, 505, 511, 558, 568, 586
- in /usr/src/new/rn/sw.c line 37, 143, 312
- in /usr/src/new/rn/term.c line 172, 410, 432, 483, 495, 504, 630, 764
- in /usr/src/new/rn/util.c line 75, 461

FINDNEWNG defined in line 284; used 6 times

- in /usr/src/new/rn/addng.c line 37
- in /usr/src/new/rn/init.c line 195, 240
- in /usr/src/new/rn/rn.c line 394, 403, 417

FINISHCMD defined in line 71; used 5 times

- in /usr/src/new/rn/ngstuff.c line 41
- in /usr/src/new/rn/respond.c line 52
- in /usr/src/new/rn/term.c line 413, 781, 977

FLUSH defined in line 800; used 292 times

- in line 799
- in /usr/src/new/rn/addng.c line 56, 103
- in /usr/src/new/rn/art.c line 139, 164, 181, 258-263(2), 387, 445, 622, 638, 656, 665, 671, 682, 715, 871, 885, 895, 907
- in /usr/src/new/rn/artsrch.c line 131-135(2), 141, 155, 161, 187, 265
- in /usr/src/new/rn/backpage.c line 29, 46, 82-87(2)
- in /usr/src/new/rn/bits.c line 137-138(2), 154, 170, 188, 225, 275, 292, 385, 391, 435, 540-543(2), 570-573(2), 579
- in /usr/src/new/rn/head.c line 50
- in /usr/src/new/rn/init.c line 106, 210-214(2), 267-271(2), 282-286(2), 292-300(3), 307-311(2), 318, 335-337(2)
- in /usr/src/new/rn/intrp.c line 171-176(2), 185, 200, 227-231(2), 250, 258, 435, 492, 1009
- in /usr/src/new/rn/kfile.c line 118-122(2), 128-134(3), 161, 169, 201, 219, 227, 275-278(2)
- in /usr/src/new/rn/last.c line 52
- in /usr/src/new/rn/ng.c line 159-163(2), 174-178(2), 190, 277, 290, 312, 328-332(2), 416, 472, 509, 527, 570-574(2), 680-684(2), 690, 700, 707, 729, 738, 752, 764, 772, 780, 804, 822-826(2), 891, 898, 992-996(2)
- in /usr/src/new/rn/ngdata.c line 55, 75, 96, 114, 168
- in /usr/src/new/rn/ngsrch.c line 61-64(2), 96
- in /usr/src/new/rn/ngstuff.c line 55, 68, 112, 135, 162, 180-184(2), 199-203(2), 268, 325
- in /usr/src/new/rn/only.c line 43, 81, 108-112(2)
- in /usr/src/new/rn/rcln.c line 41-45(2), 86, 97, 171, 204, 221, 263, 289, 333, 376, 403, 447
- in /usr/src/new/rn/rcstuff.c line 110, 176, 194, 200, 208, 268, 296-300(2), 322, 331-337(3), 358, 371-380(3), 388-394(3), 404, 559, 575, 581, 595-603(3), 611, 618, 745-749(2), 767, 774-778(2), 787, 798-802(2), 813, 823-827(2), 853, 884, 902-906(2), 914-918(2), 939, 954, 969
- in /usr/src/new/rn/respond.c line 66-75(3), 107-111(2), 163, 175, 183, 197, 235, 245, 266-270(2), 288-297(3), 322, 331-335(2), 365, 376, 400, 406-410(2), 418-422(2), 429
- in /usr/src/new/rn/rn.c line 75, 121-125(2), 131-135(2), 200, 206, 237-247(3), 277-281(2), 292-296(2), 328, 350, 378, 416, 445-449(2), 458, 489-496(3)
- in /usr/src/new/rn/search.c line 497, 509, 561
- in /usr/src/new/rn/sw.c line 74, 119, 137, 301, 356-360(2), 429, 442-446(2), 474, 482, 494-498(2)
- in /usr/src/new/rn/term.c line 131, 144-146(2), 293, 304, 531, 613, 828, 834-838(2), 879, 944, 957, 1006
- in /usr/src/new/rn/util.c line 100, 120, 292, 333, 498

FULLNAMEFILE defined in line 463; used 2 times

- in line 461
- in /usr/src/new/rn/intrp.c line 996

GCOSFIELD defined in line 206; used 1 times

- in line 205

GETLOGIN defined in line 248; used 1 times

- in /usr/src/new/rn/intrp.c line 107

GETWD defined in line 253; used 1 times

- in /usr/src/new/rn/util.c line 241

GLOBINIT defined in line 409; used 2 times

- in line 408
- in /usr/src/new/rn/sw.c line 36

HASHSIZ defined in line 220; used 9 times

- in /usr/src/new/rn/rcstuff.c line 45, 62, 229, 469, 625, 721, 857, 883-888(2)

HEADNAME defined in line 474; used 2 times

- in line 473
- in /usr/src/new/rn/intrp.c line 125

IF defined in line 338; used 69 times

- in /usr/src/new/rn/artsrch.c line 130
- in /usr/src/new/rn/bits.c line 628
- in /usr/src/new/rn/final.c line 165
- in /usr/src/new/rn/init.c line 208, 265, 278, 290, 304
- in /usr/src/new/rn/intrp.c line 226
- in /usr/src/new/rn/kfile.c line 58, 116, 159, 171, 262
- in /usr/src/new/rn/ng.c line 157, 172, 222, 292, 326, 342, 567, 679, 744, 759, 821
- in /usr/src/new/rn/ngstuff.c line 197, 235, 244, 253, 264, 298, 305, 324
- in /usr/src/new/rn/only.c line 106
- in /usr/src/new/rn/rcln.c line 40
- in /usr/src/new/rn/rcstuff.c line 191, 295, 313, 329, 368, 387, 524, 548, 743, 772, 794, 821, 899, 911
- in /usr/src/new/rn/respond.c line 63, 105, 170, 263, 286, 329
- in /usr/src/new/rn/rn.c line 118, 129, 144, 178, 276, 290, 343, 443
- in /usr/src/new/rn/sw.c line 355, 433, 469, 490
- in /usr/src/new/rn/term.c line 811, 833

INNERSEARCH defined in line 290; used 18 times

- in line 302
- in /usr/src/new/rn/art.c line 61, 99, 175, 290-295(2), 312, 341, 384, 392, 400, 411, 442, 490, 604, 877
- in /usr/src/new/rn/sw.c line 241, 386

KILLFILES defined in line 294; used 9 times

- in line 301
- in /usr/src/new/rn/artsrch.c line 164
- in /usr/src/new/rn/bits.c line 626
- in /usr/src/new/rn/kfile.c line 40, 48
- in /usr/src/new/rn/ng.c line 71, 219, 495, 530

KILLGLOBAL defined in line 641; used 2 times

- in line 640
- in /usr/src/new/rn/kfile.c line 50

KILLLOCAL defined in line 645; used 2 times

- in line 644
- in /usr/src/new/rn/kfile.c line 51

LASTNAME defined in line 507; used 2 times

- in line 506
- in /usr/src/new/rn/last.c line 23

LBUFLEN defined in line 56; used 28 times

- in line 703
- in /usr/src/new/rn/addng.c line 61, 110
- in /usr/src/new/rn/art.c line 73, 191, 197
- in /usr/src/new/rn/artsrch.c line 166, 180, 277
- in /usr/src/new/rn/bits.c line 88, 506
- in /usr/src/new/rn/head.c line 155, 166, 309, 341
- in /usr/src/new/rn/init.c line 219, 261
- in /usr/src/new/rn/kfile.c line 82, 192
- in /usr/src/new/rn/ngstuff.c line 94, 129, 153
- in /usr/src/new/rn/rcstuff.c line 98
- in /usr/src/new/rn/respond.c line 212, 344, 384
- in /usr/src/new/rn/sw.c line 144, 454

LIB defined in line 399; used 1 times

- in line 398

LINKART defined in line 108; used 3 times

- in /usr/src/new/rn/artio.c line 96
- in /usr/src/new/rn/intrp.c line 523, 758

LOCKNAME defined in line 502; used 2 times

- in line 501
- in /usr/src/new/rn/init.c line 255

LOGDIRFIELD defined in line 199; used 1 times

- in line 198

LONGKEY defined in line 70; used 2 times

- in /usr/src/new/rn/head.c line 60, 127

MAILCALL defined in line 235; used 4 times

- in /usr/src/new/rn/final.c line 211
- in /usr/src/new/rn/ng.c line 445, 1002
- in /usr/src/new/rn/ngstuff.c line 72

MAILFILE defined in line 664; used 1 times

- in line 663

MAILHEADER defined in line 543; used 3 times

- in line 531, 539
- in /usr/src/new/rn/respond.c line 325

MAILPOSTER defined in line 527; used 2 times

- in line 526
- in /usr/src/new/rn/respond.c line 317

MAKEDIR defined in line 259; used 2 times

- in line 478
- in /usr/src/new/rn/util.c line 395

MAXFILENAME defined in line 68; used 1 times

- in /usr/src/new/rn/ngdata.c line 203

MAXRCLINE defined in line 216; used 2 times

- in /usr/src/new/rn/ngdata.c line 35
- in /usr/src/new/rn/rcstuff.c line 109

MBOXCHAR defined in line 186; used 1 times

- in line 185

MBOXSAVER defined in line 614; used 2 times

- in line 593
- in /usr/src/new/rn/respond.c line 223

MCHASE defined in line 279; used 5 times

- in line 307
- in /usr/src/new/rn/bits.c line 208, 283, 459
- in /usr/src/new/rn/rcln.c line 183

MUNGHEADER defined in line 280; used 1 times

- in line 308

NEGCHAR defined in line 210; used 10 times

- in line 209
- in /usr/src/new/rn/bits.c line 153
- in /usr/src/new/rn/ng.c line 723, 792
- in /usr/src/new/rn/ngdata.c line 108
- in /usr/src/new/rn/rcln.c line 382
- in /usr/src/new/rn/rcstuff.c line 145, 162, 366
- in /usr/src/new/rn/rn.c line 379

NEWSETUP defined in line 429; used 2 times

- in line 428
- in /usr/src/new/rn/rcstuff.c line 908

NEWSGROUPS defined in line 434; used 2 times

- in line 433
- in /usr/src/new/rn/rn.c line 439

NEWSHEADER defined in line 561; used 2 times

- in line 557
- in /usr/src/new/rn/respond.c line 368

NEWSNEWSNAME defined in line 522; used 2 times

- in line 521
- in /usr/src/new/rn/init.c line 329

NEWSPOSTER defined in line 554; used 2 times

- in line 553
- in /usr/src/new/rn/respond.c line 390

NGHELP defined in line 363; used 4 times

- in line 357-362(2)
- in /usr/src/new/rn/help.c line 171-172(2)

NGMAX defined in line 221; used 1 times

- in /usr/src/new/rn/only.c line 33

NGSEARCH defined in line 292; used 3 times

- in line 321
- in /usr/src/new/rn/ngsrch.c line 34
- in /usr/src/new/rn/rn.c line 270

NGSORONLY defined in line 322; used 2 times

- in /usr/src/new/rn/ngsrch.c line 21, 107

NOFIREWORKS defined in line 237; used 7 times

- in /usr/src/new/rn/art.c line 238, 274, 281
- in /usr/src/new/rn/kfile.c line 59
- in /usr/src/new/rn/term.c line 688, 904, 911

NOMARKING defined in line 752; used 35 times

- in line 755
- in /usr/src/new/rn/help.c line 46, 57, 69, 78, 101, 109, 120, 129, 137-141(2), 151, 161, 187, 196, 202, 208, 215, 223, 229, 258, 264, 272, 281, 287, 293, 302, 309
- in /usr/src/new/rn/ng.c line 856, 871
- in /usr/src/new/rn/rcstuff.c line 231, 698
- in /usr/src/new/rn/sw.c line 289
- in /usr/src/new/rn/term.c line 369, 376

NORMSAVER defined in line 589; used 2 times

- in line 585
- in /usr/src/new/rn/respond.c line 224

Null defined in line 78; used 25 times

- in line 79-80(2)
- in /usr/src/new/rn/addng.c line 136
- in /usr/src/new/rn/bits.c line 604, 615
- in /usr/src/new/rn/head.c line 329
- in /usr/src/new/rn/ng.c line 197, 894
- in /usr/src/new/rn/ngdata.c line 174, 246
- in /usr/src/new/rn/term.c line 58, 273, 298, 322-325(2), 336, 397, 743, 756
- in /usr/src/new/rn/util.c line 67-68(2), 269, 277-282(2), 458

Nullch defined in line 79; used 154 times

- in line 708-709(2)
- in /usr/src/new/rn/addng.c line 61, 110
- in /usr/src/new/rn/art.c line 56, 131, 168, 188-191(2), 209, 223, 242, 620, 652, 658, 807-808(2)
- in /usr/src/new/rn/artsrch.c line 51, 148, 159, 267, 277-282(3)
- in /usr/src/new/rn/bits.c line 279, 328-329(2), 402-409(3), 419, 472, 546-551(2), 621
- in /usr/src/new/rn/cheat.c line 58, 71
- in /usr/src/new/rn/head.c line 127, 166, 183, 200, 207, 268, 341, 347
- in /usr/src/new/rn/init.c line 334
- in /usr/src/new/rn/intrp.c line 70-74(3), 97, 105-108(2), 208, 344-353(10), 369, 439, 732-738(3), 865-883(10), 894, 916, 974-976(2), 987-989(2)
- in /usr/src/new/rn/kfile.c line 82, 192
- in /usr/src/new/rn/last.c line 17, 48
- in /usr/src/new/rn/ng.c line 233-240(3), 263, 833, 846
- in /usr/src/new/rn/ngdata.c line 162, 176
- in /usr/src/new/rn/ngsrch.c line 54-59(3), 103, 119
- in /usr/src/new/rn/ngstuff.c line 63, 103, 126, 165
- in /usr/src/new/rn/only.c line 41, 79, 85
- in /usr/src/new/rn/rcln.c line 63, 119, 357-360(2)
- in /usr/src/new/rn/rcstuff.c line 38-41(4), 98, 113, 951
- in /usr/src/new/rn/respond.c line 80, 90, 227, 344, 384
- in /usr/src/new/rn/rn.c line 411, 470
- in /usr/src/new/rn/search.c line 107, 120-124(2), 188, 208, 370-374(3), 389, 400
- in /usr/src/new/rn/term.c line 254, 295, 793
- in /usr/src/new/rn/util.c line 43-45(2), 58-60(4), 97, 117, 136, 160, 200, 207, 370, 472, 507

Nullfp defined in line 80; used 53 times

- in line 765
- in /usr/src/new/rn/addng.c line 55
- in /usr/src/new/rn/artio.c line 39-44(2), 57-59(2), 69-71(2)
- in /usr/src/new/rn/artsrch.c line 274
- in /usr/src/new/rn/bits.c line 222-224(2), 288, 317, 338, 344, 522
- in /usr/src/new/rn/head.c line 160, 266, 321
- in /usr/src/new/rn/init.c line 258, 317, 331
- in /usr/src/new/rn/intrp.c line 142, 465, 996
- in /usr/src/new/rn/kfile.c line 271
- in /usr/src/new/rn/last.c line 24, 46
- in /usr/src/new/rn/ng.c line 322, 414, 500-502(2), 533, 557
- in /usr/src/new/rn/ngdata.c line 54, 74
- in /usr/src/new/rn/rcstuff.c line 42, 92, 113, 218, 897, 909, 938, 968
- in /usr/src/new/rn/respond.c line 61, 261, 296, 321, 337, 364, 370
- in /usr/src/new/rn/term.c line 253
- in /usr/src/new/rn/util.c line 332

OFFSET defined in line 351; used 16 times

- in /usr/src/new/rn/bits.c line 496, 536, 602, 618-621(2)
- in /usr/src/new/rn/head.c line 197-199(2), 205, 211, 280
- in /usr/src/new/rn/ng.c line 516, 846-847(2), 854, 896-898(2)

ONLY defined in line 293; used 8 times

- in line 318
- in /usr/src/new/rn/init.c line 241
- in /usr/src/new/rn/only.c line 30, 60, 98
- in /usr/src/new/rn/rn.c line 114, 401
- in /usr/src/new/rn/sw.c line 430

ORGFILE defined in line 250; used 1 times

- in /usr/src/new/rn/intrp.c line 631

ORGNAME defined in line 182; used 1 times

- in line 181

PAGERHELP defined in line 369; used 4 times

- in line 359, 368
- in /usr/src/new/rn/help.c line 33-34(2)

PENDING defined in line 103; used 8 times

- in /usr/src/new/rn/bits.c line 530
- in /usr/src/new/rn/cheat.c line 24, 36, 117
- in /usr/src/new/rn/ng.c line 461
- in /usr/src/new/rn/term.c line 125, 546, 589

PIPESAVER defined in line 580; used 2 times

- in line 569
- in /usr/src/new/rn/respond.c line 86

PREFSHELL defined in line 440; used 1 times

- in line 439

PROMPTTTY defined in line 244; used 2 times

- in /usr/src/new/rn/intrp.c line 311, 489

PUSHSIZE defined in line 63; used 5 times

- in /usr/src/new/rn/term.c line 577, 598, 611, 790-794(2)

RCBNAME defined in line 497; used 2 times

- in line 496
- in /usr/src/new/rn/rcstuff.c line 82

RCNAME defined in line 487; used 3 times

- in line 486
- in /usr/src/new/rn/rcstuff.c line 73-77(2)

RCTNAME defined in line 492; used 2 times

- in line 491
- in /usr/src/new/rn/rcstuff.c line 81

RELOCATE defined in line 275; used 6 times

- in /usr/src/new/rn/rcstuff.c line 413, 438, 445, 769
- in /usr/src/new/rn/rn.c line 305, 317

RNDELNAME defined in line 517; used 2 times

- in line 516
- in /usr/src/new/rn/bits.c line 51

RNLIB defined in line 404; used 1 times

- in line 403

RNMACRO defined in line 456; used 2 times

- in line 454
- in /usr/src/new/rn/term.c line 252

ROOTID defined in line 190; used 1 times

- in line 189

ROTATION defined in line 273; used 9 times

- in /usr/src/new/rn/art.c line 345, 706, 796, 802, 818
- in /usr/src/new/rn/ng.c line 437, 910-914(2), 920

SAVEDIR defined in line 632; used 4 times

- in line 622, 631
- in /usr/src/new/rn/respond.c line 119
- in /usr/src/new/rn/sw.c line 376

SAVENAME defined in line 635; used 3 times

- in line 625, 634
- in /usr/src/new/rn/respond.c line 100

SETENV defined in line 252; used 3 times

- in /usr/src/new/rn/sw.c line 174, 221
- in /usr/src/new/rn/util.c line 441

SETUIDGID defined in line 255; used 2 times

- in line 314
- in /usr/src/new/rn/util.c line 212

SH defined in line 445; used 3 times

- in line 444, 775
- in /usr/src/new/rn/respond.c line 227

SOFTNAME defined in line 512; used 2 times

- in line 511
- in /usr/src/new/rn/rcstuff.c line 83

SPOOL defined in line 414; used 1 times

- in line 413

STANDOUT defined in line 753; used 14 times

- in /usr/src/new/rn/art.c line 273, 466
- in /usr/src/new/rn/help.c line 39, 61, 73, 94, 177, 251
- in /usr/src/new/rn/rcstuff.c line 687
- in /usr/src/new/rn/sw.c line 293
- in /usr/src/new/rn/term.c line 337, 380, 903, 937

SUBSHELP defined in line 372; used 4 times

- in line 360, 371
- in /usr/src/new/rn/help.c line 245-246(2)

TCSIZE defined in line 382; used 1 times

- in /usr/src/new/rn/term.c line 31

TERMMOD defined in line 246; used 1 times

- in /usr/src/new/rn/sw.c line 148

TERSE defined in line 336; used 70 times

- in line 327-335(3), 744
- in /usr/src/new/rn/artsrch.c line 134
- in /usr/src/new/rn/bits.c line 635
- in /usr/src/new/rn/final.c line 170
- in /usr/src/new/rn/init.c line 213, 270, 285, 295, 310
- in /usr/src/new/rn/intrp.c line 230
- in /usr/src/new/rn/kfile.c line 69, 121, 266
- in /usr/src/new/rn/ng.c line 162, 177, 226, 297, 331, 346, 573, 683, 749, 767, 825
- in /usr/src/new/rn/ngstuff.c line 202, 328
- in /usr/src/new/rn/only.c line 111
- in /usr/src/new/rn/rcln.c line 44
- in /usr/src/new/rn/rcstuff.c line 197, 263, 299, 317, 334, 374, 391, 528, 563, 748, 777, 801, 826, 905, 917
- in /usr/src/new/rn/respond.c line 69, 110, 178, 269, 291, 334, 409, 421
- in /usr/src/new/rn/rn.c line 124, 134, 150, 185, 280, 295, 347, 448
- in /usr/src/new/rn/sw.c line 334, 359, 420, 437, 477, 497
- in /usr/src/new/rn/term.c line 815, 837

TILDENAME defined in line 251; used 3 times

- in /usr/src/new/rn/intrp.c line 69, 190, 224

TRUE defined in line 76; used 139 times

- in line 745
- in /usr/src/new/rn/addng.c line 96, 112, 150-152(3)
- in /usr/src/new/rn/art.c line 213, 219, 587, 608-612(4), 620(2), 692-693(2), 703, 720, 742, 806, 820, 868, 887, 910
- in /usr/src/new/rn/artsrch.c line 56, 86-88(2), 97, 121, 159, 229, 284
- in /usr/src/new/rn/bits.c line 244, 638
- in /usr/src/new/rn/cheat.c line 71(2)
- in /usr/src/new/rn/final.c line 154
- in /usr/src/new/rn/init.c line 204, 231
- in /usr/src/new/rn/intrp.c line 372-375(2), 434(2), 689(2), 702(2)
- in /usr/src/new/rn/kfile.c line 96
- in /usr/src/new/rn/ng.c line 209-210(2), 223-227(2), 239-246(5), 436, 578, 586, 621, 628, 636, 643, 671-672(2), 712, 841, 893, 906, 918, 933-935(2), 945-947(2), 975
- in /usr/src/new/rn/ngdata.c line 102
- in /usr/src/new/rn/ngsrch.c line 57-59(3)
- in /usr/src/new/rn/ngstuff.c line 83, 130-132(2), 195
- in /usr/src/new/rn/only.c line 40-41(4), 65-68(2), 76-79(3), 87, 94
- in /usr/src/new/rn/rcln.c line 87, 334, 378
- in /usr/src/new/rn/rcstuff.c line 93, 182, 211, 466, 586, 607
- in /usr/src/new/rn/respond.c line 152, 191
- in /usr/src/new/rn/rn.c line 138, 229-233(2), 248-264(5), 271, 286, 323, 369, 407, 435, 472, 483
- in /usr/src/new/rn/search.c line 466, 498, 510, 519, 556, 562-566(2), 584
- in /usr/src/new/rn/sw.c line 35, 41, 143
- in /usr/src/new/rn/term.c line 414, 526, 532
- in /usr/src/new/rn/util.c line 70, 442

ULSMARTS defined in line 245; used 4 times

- in /usr/src/new/rn/art.c line 88, 308, 358, 371

UNDERLINE defined in line 754; used 4 times

- in /usr/src/new/rn/sw.c line 291, 404
- in /usr/src/new/rn/term.c line 910, 939

UNLINK defined in line 111; used 20 times

- in /usr/src/new/rn/addng.c line 59
- in /usr/src/new/rn/artio.c line 48, 58, 70
- in /usr/src/new/rn/backpage.c line 27
- in /usr/src/new/rn/bits.c line 289
- in /usr/src/new/rn/final.c line 62-68(3)
- in /usr/src/new/rn/kfile.c line 189, 242
- in /usr/src/new/rn/ng.c line 505
- in /usr/src/new/rn/rcstuff.c line 924, 962-964(2), 982-986(3)
- in /usr/src/new/rn/respond.c line 352, 392

VARYNAME defined in line 469; used 2 times

- in line 468
- in /usr/src/new/rn/backpage.c line 24

VARYSIZE defined in line 223; used 2 times

- in /usr/src/new/rn/backpage.c line 52, 91

VERIFY defined in line 239; used 12 times

- in line 748
- in /usr/src/new/rn/ng.c line 548, 754
- in /usr/src/new/rn/rcstuff.c line 324, 382, 543, 789
- in /usr/src/new/rn/respond.c line 165
- in /usr/src/new/rn/rn.c line 210
- in /usr/src/new/rn/sw.c line 347, 425
- in /usr/src/new/rn/term.c line 973

WORDERASE defined in line 234; used 1 times

- in /usr/src/new/rn/term.c line 497

YOUSAID defined in line 549; used 2 times

- in line 548
- in /usr/src/new/rn/respond.c line 338

assert defined in line 345; used 5 times

- in /usr/src/new/rn/art.c line 117
- in /usr/src/new/rn/artsrch.c line 208
- in /usr/src/new/rn/term.c line 652, 756, 793

bool defined in line 75; used 79 times

- in line 731-749(11), 762
- in /usr/src/new/rn/addng.c line 42-43(2), 144
- in /usr/src/new/rn/art.c line 53, 65, 71, 86-89(2), 96
- in /usr/src/new/rn/artsrch.c line 48-56(4), 252
- in /usr/src/new/rn/head.c line 24, 110, 180-181(2)
- in /usr/src/new/rn/init.c line 52, 58, 201-204(2)
- in /usr/src/new/rn/intrp.c line 357-358(2), 422
- in /usr/src/new/rn/kfile.c line 32, 147-149(2)
- in /usr/src/new/rn/ngsrch.c line 43, 100, 112-113(2)
- in /usr/src/new/rn/ngstuff.c line 41-42(2), 103, 130
- in /usr/src/new/rn/only.c line 56
- in /usr/src/new/rn/rcln.c line 66, 146-147(2), 323
- in /usr/src/new/rn/rcstuff.c line 48, 54, 247-250(2)
- in /usr/src/new/rn/respond.c line 48-52(2), 99, 316, 360
- in /usr/src/new/rn/rn.c line 63-65(2), 84-86(2), 156, 404, 411
- in /usr/src/new/rn/search.c line 82, 406, 571, 589
- in /usr/src/new/rn/sw.c line 54, 143
- in /usr/src/new/rn/term.c line 405-410(2), 721
- in /usr/src/new/rn/util.c line 442

eaccess defined in line 315; used 3 times

- in /usr/src/new/rn/ng.c line 154-155(2)
- in /usr/src/new/rn/sw.c line 488

isalnum defined in line 32; used 1 times

- in line 31

putchar defined in line 802; used 1 times

- in line 801

sigignore defined in line 195; used 2 times

- in /usr/src/new/rn/final.c line 34, 142

sigset defined in line 194; used 23 times

- in /usr/src/new/rn/final.c line 27-48(13), 73, 84, 153, 195, 201, 209
- in /usr/src/new/rn/util.c line 40-41(2), 79-80(2)

strEQ defined in line 85; used 8 times

- in /usr/src/new/rn/head.c line 81
- in /usr/src/new/rn/intrp.c line 194, 217
- in /usr/src/new/rn/rcstuff.c line 719, 729
- in /usr/src/new/rn/sw.c line 34, 154, 376

strNE defined in line 84; used 5 times

- in /usr/src/new/rn/bits.c line 402, 432, 452
- in /usr/src/new/rn/rcln.c line 345
- in /usr/src/new/rn/sw.c line 155

strnEQ defined in line 87; used 11 times

- in /usr/src/new/rn/addng.c line 72
- in /usr/src/new/rn/bits.c line 513
- in /usr/src/new/rn/intrp.c line 729
- in /usr/src/new/rn/kfile.c line 84, 193
- in /usr/src/new/rn/ngdata.c line 177
- in /usr/src/new/rn/ngsrch.c line 132
- in /usr/src/new/rn/rcstuff.c line 132, 139
- in /usr/src/new/rn/sw.c line 260
- in /usr/src/new/rn/util.c line 487

strnNE defined in line 86; used 5 times

- in /usr/src/new/rn/head.c line 255(2), 270(2)
- in /usr/src/new/rn/ngdata.c line 164

#### Usage of this include

common.h used 28 times

- in /usr/src/new/rn/addng.c line 20
- in /usr/src/new/rn/art.c line 25
- in /usr/src/new/rn/artio.c line 10
- in /usr/src/new/rn/artsrch.c line 10
- in /usr/src/new/rn/backpage.c line 10
- in /usr/src/new/rn/bits.c line 23
- in /usr/src/new/rn/cheat.c line 10
- in /usr/src/new/rn/final.c line 10
- in /usr/src/new/rn/head.c line 16
- in /usr/src/new/rn/help.c line 16
- in /usr/src/new/rn/init.c line 22
- in /usr/src/new/rn/intrp.c line 25
- in /usr/src/new/rn/kfile.c line 19
- in /usr/src/new/rn/last.c line 10
- in /usr/src/new/rn/ndir.c line 19
- in /usr/src/new/rn/ng.c line 28
- in /usr/src/new/rn/ngdata.c line 10
- in /usr/src/new/rn/ngsrch.c line 10
- in /usr/src/new/rn/ngstuff.c line 16
- in /usr/src/new/rn/only.c line 10
- in /usr/src/new/rn/rcln.c line 19
- in /usr/src/new/rn/rcstuff.c line 25
- in /usr/src/new/rn/respond.c line 25
- in /usr/src/new/rn/rn.c line 32
- in /usr/src/new/rn/search.c line 28
- in /usr/src/new/rn/sw.c line 16
- in /usr/src/new/rn/term.c line 20
- in /usr/src/new/rn/util.c line 16

Last modified: 1992-06-10 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 3771 |