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