max size of user names changed to PATHSIZE
[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/*
145d4d65 7 * Sccs Id = "@(#)glob.h 1.4 %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 */
798b9bdb 23int shudann; /* Print headers when possible */
e6a88a51
KS
24FILE *itf; /* Input temp file buffer */
25FILE *otf; /* Output temp file buffer */
df1ae8ec 26FILE *pipef; /* Pipe file we have opened */
e6a88a51
KS
27int image; /* File descriptor for image of msg */
28FILE *input; /* Current command input file */
29char *editfile; /* Name of file being edited */
30char *sflag; /* Subject given from non tty */
31int outtty; /* True if standard output a tty */
32int intty; /* True if standard input a tty */
33char mbox[PATHSIZE]; /* Name of mailbox file */
34char *mailname; /* Name of system mailbox */
35char mailspace[PATHSIZE]; /* Space norm alloc'd for name */
36int uid; /* The invoker's user id */
37char mailrc[PATHSIZE]; /* Name of startup file */
38char deadletter[PATHSIZE]; /* Name of #/dead.letter */
39char homedir[PATHSIZE]; /* Path name of home directory */
145d4d65 40char myname[PATHSIZE]; /* My login id */
e6a88a51
KS
41off_t mailsize; /* Size of system mailbox */
42int lexnumber; /* Number of TNUMBER from scan() */
43char lexstring[STRINGLEN]; /* String from TSTRING, scan() */
44int regretp; /* Pointer to TOS of regret tokens */
45int regretstack[REGDEP]; /* Stack of regretted tokens */
46char *stringstack[REGDEP]; /* Stack of regretted strings */
47int numberstack[REGDEP]; /* Stack of regretted numbers */
48struct message *dot; /* Pointer to current message */
49struct message *message; /* The actual message structure */
50struct var *variables[HSHSIZE]; /* Pointer to active var list */
51struct grouphead *groups[HSHSIZE];/* Pointer to active groups */
52int debug; /* Debug flag set */
53int rmail; /* Being called as rmail */
54
55#include <setjmp.h>
56
57jmp_buf srbuf;
58
59
60/*
61 * The pointers for the string allocation routines,
62 * there are NSPACE independent areas.
63 * The first holds STRINGSIZE bytes, the next
64 * twice as much, and so on.
65 */
66
67#define NSPACE 8 /* Total number of string spaces */
68struct strings {
69 char *s_topFree; /* Beginning of this area */
70 char *s_nextFree; /* Next alloctable place here */
71 unsigned s_nleft; /* Number of bytes left here */
72} stringdope[NSPACE];