changed to reprint prompt when resumed after ^Z
[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/*
f9130461 7 * Sccs Id = "@(#)glob.h 1.6 %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 */
f9130461 17char noheader; /* Suprress initial header listing */
e6a88a51
KS
18int selfsent; /* User sent self something */
19int senderr; /* An error while checking */
20int edit; /* Indicates editing a file */
df1ae8ec 21int readonly; /* Will be unable to rewrite file */
e6a88a51
KS
22int noreset; /* String resets suspended */
23int sourcing; /* Currently reading variant file */
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 */
35char mbox[PATHSIZE]; /* Name of mailbox file */
36char *mailname; /* Name of system mailbox */
37char mailspace[PATHSIZE]; /* Space norm alloc'd for name */
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 */
54int debug; /* Debug flag set */
55int rmail; /* Being called as rmail */
56
57#include <setjmp.h>
58
59jmp_buf srbuf;
60
61
62/*
63 * The pointers for the string allocation routines,
64 * there are NSPACE independent areas.
65 * The first holds STRINGSIZE bytes, the next
66 * twice as much, and so on.
67 */
68
69#define NSPACE 8 /* Total number of string spaces */
70struct strings {
71 char *s_topFree; /* Beginning of this area */
72 char *s_nextFree; /* Next alloctable place here */
73 unsigned s_nleft; /* Number of bytes left here */
74} stringdope[NSPACE];