home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Distributions / ucb / spencer_2bsd.tar.gz / 2bsd.tar / src / Mail / glob.h < prev    next >
C/C++ Source or Header  |  1980-02-17  |  2KB  |  54 lines

  1. /* Copyright (c) 1979 Regents of the University of California */
  2. /*
  3.  * A bunch of global variable declarations lie herein.
  4.  * def.h must be included first.
  5.  */
  6.  
  7. int    msgCount;            /* Count of messages read in */
  8. int    mypid;                /* Current process id */
  9. int    rcvmode;            /* True if receiving mail */
  10. int    sawcom;                /* Set after first command */
  11. int    selfsent;            /* User sent self something */
  12. int    senderr;            /* An error while checking */
  13. int    edit;                /* Indicates editing a file */
  14. int    sourcing;            /* Currently reading variant file */
  15. FILE    *itf;                /* Input temp file buffer */
  16. FILE    *otf;                /* Output temp file buffer */
  17. FILE    *input;                /* Current command input file */
  18. char    *editfile;            /* Name of file being edited */
  19. int    outtty;                /* True if standard output a tty */
  20. int    intty;                /* True if standard input a tty */
  21. char    mbox[PATHSIZE];            /* Name of mailbox file */
  22. char    *mailname;            /* Name of system mailbox */
  23. char    mailspace[PATHSIZE];        /* Space norm alloc'd for name */
  24. int    uid;                /* The invoker's user id */
  25. char    mailrc[PATHSIZE];        /* Name of startup file */
  26. char    deadletter[PATHSIZE];        /* Name of #/dead.letter */
  27. char    homedir[PATHSIZE];        /* Path name of home directory */
  28. char    myname[9];            /* My login id */
  29. off_t    mailsize;            /* Size of system mailbox */
  30. int    lexnumber;            /* Number of TNUMBER from scan() */
  31. char    lexstring[STRINGLEN];        /* String from TSTRING, scan() */
  32. int    regretp;            /* Pointer to TOS of regret tokens */
  33. int    regretstack[REGDEP];        /* Stack of regretted tokens */
  34. char    *stringstack[REGDEP];        /* Stack of regretted strings */
  35. int    numberstack[REGDEP];        /* Stack of regretted numbers */
  36. struct    message    *dot;            /* Pointer to current message */
  37. struct    message    *message;        /* The actual message structure */
  38. struct    var    *variables[HSHSIZE];    /* Pointer to active var list */
  39. struct    grouphead    *groups[HSHSIZE];/* Pointer to active groups */
  40.  
  41. /*
  42.  * The pointers for the string allocation routines,
  43.  * there are NSPACE independent areas.
  44.  * The first holds STRINGSIZE bytes, the next
  45.  * twice as much, and so on.
  46.  */
  47.  
  48. #define    NSPACE    5            /* Total number of string spaces */
  49. struct strings {
  50.     char    *s_topFree;        /* Beginning of this area */
  51.     char    *s_nextFree;        /* Next alloctable place here */
  52.     unsigned s_nleft;        /* Number of bytes left here */
  53. } stringdope[NSPACE];
  54.