install with -s
[unix-history] / usr / src / usr.bin / mail / glob.h
CommitLineData
46053c99 1/* glob.h 2.11 85/04/18 */
2ae9f53f 2
e6a88a51
KS
3/*
4 * A bunch of global variable declarations lie herein.
5 * def.h must be included first.
6 */
7
e6a88a51
KS
8int msgCount; /* Count of messages read in */
9int mypid; /* Current process id */
10int rcvmode; /* True if receiving mail */
11int sawcom; /* Set after first command */
12int hflag; /* Sequence number for network -h */
13char *rflag; /* -r address for network */
31840345 14char *Tflag; /* -T temp file for netnews */
e6a88a51 15char nosrc; /* Don't source /usr/lib/Mail.rc */
f9130461 16char noheader; /* Suprress initial header listing */
e6a88a51
KS
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 */
ef4abe32 23int loading; /* Loading user definitions */
798b9bdb 24int shudann; /* Print headers when possible */
b04d2a11 25int cond; /* Current state of conditional exc. */
e6a88a51
KS
26FILE *itf; /* Input temp file buffer */
27FILE *otf; /* Output temp file buffer */
df1ae8ec 28FILE *pipef; /* Pipe file we have opened */
e6a88a51
KS
29int image; /* File descriptor for image of msg */
30FILE *input; /* Current command input file */
31char *editfile; /* Name of file being edited */
32char *sflag; /* Subject given from non tty */
33int outtty; /* True if standard output a tty */
34int intty; /* True if standard input a tty */
b8200d6f 35int baud; /* Output baud rate */
e6a88a51 36char mbox[PATHSIZE]; /* Name of mailbox file */
b02711eb 37char mailname[PATHSIZE]; /* Name of system mailbox */
e6a88a51
KS
38int uid; /* The invoker's user id */
39char mailrc[PATHSIZE]; /* Name of startup file */
40char deadletter[PATHSIZE]; /* Name of #/dead.letter */
41char homedir[PATHSIZE]; /* Path name of home directory */
145d4d65 42char myname[PATHSIZE]; /* My login id */
e6a88a51
KS
43off_t mailsize; /* Size of system mailbox */
44int lexnumber; /* Number of TNUMBER from scan() */
45char lexstring[STRINGLEN]; /* String from TSTRING, scan() */
46int regretp; /* Pointer to TOS of regret tokens */
47int regretstack[REGDEP]; /* Stack of regretted tokens */
48char *stringstack[REGDEP]; /* Stack of regretted strings */
49int numberstack[REGDEP]; /* Stack of regretted numbers */
50struct message *dot; /* Pointer to current message */
51struct message *message; /* The actual message structure */
52struct var *variables[HSHSIZE]; /* Pointer to active var list */
53struct grouphead *groups[HSHSIZE];/* Pointer to active groups */
b1b8fd1c 54struct ignore *ignore[HSHSIZE];/* Pointer to ignored fields */
46053c99
S
55struct ignore *retain[HSHSIZE];/* Pointer to retained fields */
56int nretained; /* Number of retained fields */
d1361008 57char **altnames; /* List of alternate names for user */
fe9152c6 58char **localnames; /* List of aliases for our local host */
e6a88a51
KS
59int debug; /* Debug flag set */
60int rmail; /* Being called as rmail */
61
62#include <setjmp.h>
63
64jmp_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
c42869b9 74#define NSPACE 25 /* Total number of string spaces */
e6a88a51
KS
75struct 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];