Annotation of researchv10no/lbin/Mail/glob.h, revision 1.1.1.1

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

unix.superglobalmegacorp.com

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