Commit | Line | Data |
---|---|---|
e6a88a51 KS |
1 | /* |
2 | * A bunch of global variable declarations lie herein. | |
3 | * def.h must be included first. | |
4 | */ | |
5 | ||
6 | /* | |
b8200d6f | 7 | * Sccs Id = "@(#)glob.h 2.5 %G%"; |
e6a88a51 KS |
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 */ | |
31840345 | 16 | char *Tflag; /* -T temp file for netnews */ |
e6a88a51 | 17 | char nosrc; /* Don't source /usr/lib/Mail.rc */ |
f9130461 | 18 | char noheader; /* Suprress initial header listing */ |
e6a88a51 KS |
19 | int selfsent; /* User sent self something */ |
20 | int senderr; /* An error while checking */ | |
21 | int edit; /* Indicates editing a file */ | |
df1ae8ec | 22 | int readonly; /* Will be unable to rewrite file */ |
e6a88a51 KS |
23 | int noreset; /* String resets suspended */ |
24 | int sourcing; /* Currently reading variant file */ | |
798b9bdb | 25 | int shudann; /* Print headers when possible */ |
b04d2a11 | 26 | int cond; /* Current state of conditional exc. */ |
e6a88a51 KS |
27 | FILE *itf; /* Input temp file buffer */ |
28 | FILE *otf; /* Output temp file buffer */ | |
df1ae8ec | 29 | FILE *pipef; /* Pipe file we have opened */ |
e6a88a51 KS |
30 | int image; /* File descriptor for image of msg */ |
31 | FILE *input; /* Current command input file */ | |
32 | char *editfile; /* Name of file being edited */ | |
33 | char *sflag; /* Subject given from non tty */ | |
34 | int outtty; /* True if standard output a tty */ | |
35 | int intty; /* True if standard input a tty */ | |
b8200d6f | 36 | int baud; /* Output baud rate */ |
e6a88a51 KS |
37 | char mbox[PATHSIZE]; /* Name of mailbox file */ |
38 | char *mailname; /* Name of system mailbox */ | |
39 | char mailspace[PATHSIZE]; /* Space norm alloc'd for name */ | |
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 */ | |
145d4d65 | 44 | char myname[PATHSIZE]; /* My login id */ |
e6a88a51 KS |
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 */ | |
d1361008 | 56 | char **altnames; /* List of alternate names for user */ |
e6a88a51 KS |
57 | int debug; /* Debug flag set */ |
58 | int rmail; /* Being called as rmail */ | |
59 | ||
60 | #include <setjmp.h> | |
61 | ||
62 | jmp_buf srbuf; | |
63 | ||
64 | ||
65 | /* | |
66 | * The pointers for the string allocation routines, | |
67 | * there are NSPACE independent areas. | |
68 | * The first holds STRINGSIZE bytes, the next | |
69 | * twice as much, and so on. | |
70 | */ | |
71 | ||
c42869b9 | 72 | #define NSPACE 25 /* Total number of string spaces */ |
e6a88a51 KS |
73 | struct strings { |
74 | char *s_topFree; /* Beginning of this area */ | |
75 | char *s_nextFree; /* Next alloctable place here */ | |
76 | unsigned s_nleft; /* Number of bytes left here */ | |
77 | } stringdope[NSPACE]; |