do chmod last in install
[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/*
b8200d6f 7 * Sccs Id = "@(#)glob.h 2.5 %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 */
31840345 16char *Tflag; /* -T temp file for netnews */
e6a88a51 17char nosrc; /* Don't source /usr/lib/Mail.rc */
f9130461 18char noheader; /* Suprress initial header listing */
e6a88a51
KS
19int selfsent; /* User sent self something */
20int senderr; /* An error while checking */
21int edit; /* Indicates editing a file */
df1ae8ec 22int readonly; /* Will be unable to rewrite file */
e6a88a51
KS
23int noreset; /* String resets suspended */
24int sourcing; /* Currently reading variant file */
798b9bdb 25int shudann; /* Print headers when possible */
b04d2a11 26int cond; /* Current state of conditional exc. */
e6a88a51
KS
27FILE *itf; /* Input temp file buffer */
28FILE *otf; /* Output temp file buffer */
df1ae8ec 29FILE *pipef; /* Pipe file we have opened */
e6a88a51
KS
30int image; /* File descriptor for image of msg */
31FILE *input; /* Current command input file */
32char *editfile; /* Name of file being edited */
33char *sflag; /* Subject given from non tty */
34int outtty; /* True if standard output a tty */
35int intty; /* True if standard input a tty */
b8200d6f 36int baud; /* Output baud rate */
e6a88a51
KS
37char mbox[PATHSIZE]; /* Name of mailbox file */
38char *mailname; /* Name of system mailbox */
39char mailspace[PATHSIZE]; /* Space norm alloc'd for name */
40int uid; /* The invoker's user id */
41char mailrc[PATHSIZE]; /* Name of startup file */
42char deadletter[PATHSIZE]; /* Name of #/dead.letter */
43char homedir[PATHSIZE]; /* Path name of home directory */
145d4d65 44char myname[PATHSIZE]; /* My login id */
e6a88a51
KS
45off_t mailsize; /* Size of system mailbox */
46int lexnumber; /* Number of TNUMBER from scan() */
47char lexstring[STRINGLEN]; /* String from TSTRING, scan() */
48int regretp; /* Pointer to TOS of regret tokens */
49int regretstack[REGDEP]; /* Stack of regretted tokens */
50char *stringstack[REGDEP]; /* Stack of regretted strings */
51int numberstack[REGDEP]; /* Stack of regretted numbers */
52struct message *dot; /* Pointer to current message */
53struct message *message; /* The actual message structure */
54struct var *variables[HSHSIZE]; /* Pointer to active var list */
55struct grouphead *groups[HSHSIZE];/* Pointer to active groups */
d1361008 56char **altnames; /* List of alternate names for user */
e6a88a51
KS
57int debug; /* Debug flag set */
58int rmail; /* Being called as rmail */
59
60#include <setjmp.h>
61
62jmp_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
73struct 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];