changed pclose() to sighold/sigrelse instead of old signal jazz.
[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/*
d1361008 7 * Sccs Id = "@(#)glob.h 2.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 */
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 */
36char mbox[PATHSIZE]; /* Name of mailbox file */
37char *mailname; /* Name of system mailbox */
38char mailspace[PATHSIZE]; /* Space norm alloc'd for name */
39int uid; /* The invoker's user id */
40char mailrc[PATHSIZE]; /* Name of startup file */
41char deadletter[PATHSIZE]; /* Name of #/dead.letter */
42char homedir[PATHSIZE]; /* Path name of home directory */
145d4d65 43char myname[PATHSIZE]; /* My login id */
e6a88a51
KS
44off_t mailsize; /* Size of system mailbox */
45int lexnumber; /* Number of TNUMBER from scan() */
46char lexstring[STRINGLEN]; /* String from TSTRING, scan() */
47int regretp; /* Pointer to TOS of regret tokens */
48int regretstack[REGDEP]; /* Stack of regretted tokens */
49char *stringstack[REGDEP]; /* Stack of regretted strings */
50int numberstack[REGDEP]; /* Stack of regretted numbers */
51struct message *dot; /* Pointer to current message */
52struct message *message; /* The actual message structure */
53struct var *variables[HSHSIZE]; /* Pointer to active var list */
54struct grouphead *groups[HSHSIZE];/* Pointer to active groups */
d1361008 55char **altnames; /* List of alternate names for user */
e6a88a51
KS
56int debug; /* Debug flag set */
57int rmail; /* Being called as rmail */
58
59#include <setjmp.h>
60
61jmp_buf srbuf;
62
63
64/*
65 * The pointers for the string allocation routines,
66 * there are NSPACE independent areas.
67 * The first holds STRINGSIZE bytes, the next
68 * twice as much, and so on.
69 */
70
c42869b9 71#define NSPACE 25 /* Total number of string spaces */
e6a88a51
KS
72struct strings {
73 char *s_topFree; /* Beginning of this area */
74 char *s_nextFree; /* Next alloctable place here */
75 unsigned s_nleft; /* Number of bytes left here */
76} stringdope[NSPACE];