1: /*
   2:  * A bunch of global variable declarations lie herein.
   3:  * def.h must be included first.
   4:  */
   5: 
   6: /*
   7:  * Sccs Id = "@(#)glob.h	2.9 1/29/83;
   8:  */
   9: 
  10: int msgCount;           /* Count of messages read in */
  11: int mypid;              /* Current process id */
  12: int rcvmode;            /* True if receiving mail */
  13: int sawcom;             /* Set after first command */
  14: int hflag;              /* Sequence number for network -h */
  15: char    *rflag;             /* -r address for network */
  16: char    *Tflag;             /* -T temp file for netnews */
  17: char    nosrc;              /* Don't source /usr/lib/Mail.rc */
  18: char    noheader;           /* Suprress initial header listing */
  19: int selfsent;           /* User sent self something */
  20: int senderr;            /* An error while checking */
  21: int edit;               /* Indicates editing a file */
  22: int readonly;           /* Will be unable to rewrite file */
  23: int noreset;            /* String resets suspended */
  24: int sourcing;           /* Currently reading variant file */
  25: int loading;            /* Loading user definitions */
  26: int shudann;            /* Print headers when possible */
  27: int cond;               /* Current state of conditional exc. */
  28: FILE    *itf;               /* Input temp file buffer */
  29: FILE    *otf;               /* Output temp file buffer */
  30: FILE    *pipef;             /* Pipe file we have opened */
  31: int image;              /* File descriptor for image of msg */
  32: FILE    *input;             /* Current command input file */
  33: char    *editfile;          /* Name of file being edited */
  34: char    *sflag;             /* Subject given from non tty */
  35: int outtty;             /* True if standard output a tty */
  36: int intty;              /* True if standard input a tty */
  37: int baud;               /* Output baud rate */
  38: char    mbox[PATHSIZE];         /* Name of mailbox file */
  39: char    mailname[PATHSIZE];     /* Name of system mailbox */
  40: int uid;                /* The invoker's user id */
  41: char    mailrc[PATHSIZE];       /* Name of startup file */
  42: char    deadletter[PATHSIZE];       /* Name of #/dead.letter */
  43: char    homedir[PATHSIZE];      /* Path name of home directory */
  44: char    myname[PATHSIZE];       /* My login id */
  45: off_t   mailsize;           /* Size of system mailbox */
  46: int lexnumber;          /* Number of TNUMBER from scan() */
  47: char    lexstring[STRINGLEN];       /* String from TSTRING, scan() */
  48: int regretp;            /* Pointer to TOS of regret tokens */
  49: int regretstack[REGDEP];        /* Stack of regretted tokens */
  50: char    *stringstack[REGDEP];       /* Stack of regretted strings */
  51: int numberstack[REGDEP];        /* Stack of regretted numbers */
  52: struct  message *dot;           /* Pointer to current message */
  53: struct  message *message;       /* The actual message structure */
  54: struct  var *variables[HSHSIZE];    /* Pointer to active var list */
  55: struct  grouphead   *groups[HSHSIZE];/* Pointer to active groups */
  56: struct  ignore      *ignore[HSHSIZE];/* Pointer to ignored fields */
  57: char    **altnames;         /* List of alternate names for user */
  58: char    **localnames;           /* List of aliases for our local host */
  59: int debug;              /* Debug flag set */
  60: int rmail;              /* Being called as rmail */
  61: 
  62: #include <setjmp.h>
  63: 
  64: jmp_buf srbuf;
  65: 
  66: 
  67: /*
  68:  * The pointers for the string allocation routines,
  69:  * there are NSPACE independent areas.
  70:  * The first holds STRINGSIZE bytes, the next
  71:  * twice as much, and so on.
  72:  */
  73: 
  74: #define NSPACE  25          /* Total number of string spaces */
  75: struct strings {
  76:     char    *s_topFree;     /* Beginning of this area */
  77:     char    *s_nextFree;        /* Next alloctable place here */
  78:     unsigned s_nleft;       /* Number of bytes left here */
  79: } stringdope[NSPACE];

Defined variables

Tflag defined in line 16; used 16 times
altnames defined in line 57; used 10 times
baud defined in line 37; used 4 times
cond defined in line 27; used 16 times
deadletter defined in line 42; used 9 times
edit defined in line 21; used 23 times
editfile defined in line 33; used 11 times
groups defined in line 55; used 5 times
hflag defined in line 14; used 5 times
homedir defined in line 43; used 6 times
ignore defined in line 56; used 5 times
image defined in line 31; used 13 times
lexnumber defined in line 46; used 10 times
lexstring defined in line 47; used 12 times
loading defined in line 25; used 13 times
localnames defined in line 58; used 6 times
mailname defined in line 39; used 40 times
mailrc defined in line 41; used 3 times
mbox defined in line 38; used 12 times
message defined in line 53; used 101 times
mypid defined in line 11; used 1 times
noheader defined in line 18; used 3 times
noreset defined in line 23; used 5 times
nosrc defined in line 17; used 2 times
numberstack defined in line 51; used 2 times
outtty defined in line 35; used 4 times
regretp defined in line 48; used 9 times
regretstack defined in line 49; used 2 times
rmail defined in line 60; used 2 times
sawcom defined in line 13; used 4 times
selfsent defined in line 19; used 2 times
senderr defined in line 20; used 11 times
sflag defined in line 34; used 3 times
shudann defined in line 26; never used
sourcing defined in line 24; used 21 times
srbuf defined in line 64; never used
stringdope defined in line 79; used 6 times
stringstack defined in line 50; used 2 times
uid defined in line 40; used 18 times
variables defined in line 54; used 9 times

Defined struct's

strings defined in line 75; used 4 times

Defined macros

NSPACE defined in line 74; used 4 times

Usage of this include

glob.h used 1 times
Last modified: 1983-01-30
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1077
Valid CSS Valid XHTML 1.0 Strict