1: /*
2: * A bunch of global variable declarations lie herein.
3: * def.h must be included first.
4: */
5:
6: /*
7: * Sccs Id = "@(#)glob.h 2.9 1/29/83;
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 */
16: char *Tflag; /* -T temp file for netnews */
17: char nosrc; /* Don't source /usr/lib/Mail.rc */
18: char ; /* Suprress initial header listing */
19: int selfsent; /* User sent self something */
20: int senderr; /* An error while checking */
21: int edit; /* Indicates editing a file */
22: int readonly; /* Will be unable to rewrite file */
23: int noreset; /* String resets suspended */
24: int sourcing; /* Currently reading variant file */
25: int loading; /* Loading user definitions */
26: int shudann; /* Print headers when possible */
27: int cond; /* Current state of conditional exc. */
28: FILE *itf; /* Input temp file buffer */
29: FILE *otf; /* Output temp file buffer */
30: FILE *pipef; /* Pipe file we have opened */
31: int image; /* File descriptor for image of msg */
32: FILE *input; /* Current command input file */
33: char *editfile; /* Name of file being edited */
34: char *sflag; /* Subject given from non tty */
35: int outtty; /* True if standard output a tty */
36: int intty; /* True if standard input a tty */
37: int baud; /* Output baud rate */
38: char mbox[PATHSIZE]; /* Name of mailbox file */
39: char mailname[PATHSIZE]; /* Name of system mailbox */
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 */
44: char myname[PATHSIZE]; /* My login id */
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 */
56: struct ignore *ignore[HSHSIZE];/* Pointer to ignored fields */
57: char **altnames; /* List of alternate names for user */
58: char **localnames; /* List of aliases for our local host */
59: int debug; /* Debug flag set */
60: int rmail; /* Being called as rmail */
61:
62: #include <setjmp.h>
63:
64: jmp_buf srbuf;
65:
66:
67: /*
68: * The pointers for the string allocation routines,
69: * there are NSPACE independent areas.
70: * The first holds STRINGSIZE bytes, the next
71: * twice as much, and so on.
72: */
73:
74: #define NSPACE 25 /* Total number of string spaces */
75: struct strings {
76: char *s_topFree; /* Beginning of this area */
77: char *s_nextFree; /* Next alloctable place here */
78: unsigned s_nleft; /* Number of bytes left here */
79: } stringdope[NSPACE];
Defined variables
Tflag
defined in line
16; used 16 times
baud
defined in line
37; used 4 times
cond
defined in line
27; used 16 times
debug
defined in line
59; used 9 times
dot
defined in line
52; used 41 times
- in /usr/src/ucb/Mail/cmd1.c line
40-41(2),
169,
201,
234,
327,
396,
424-426(3),
441-443(3)
- in /usr/src/ucb/Mail/cmd2.c line
35,
51,
76,
83,
89,
309-311(2),
350-357(3),
385
- in /usr/src/ucb/Mail/cmd3.c line
203,
312,
675
- in /usr/src/ucb/Mail/fio.c line
243
- in /usr/src/ucb/Mail/lex.c line
394-395(2),
551
- in /usr/src/ucb/Mail/list.c line
84,
516-525(4),
655-656(2)
- in /usr/src/ucb/Mail/optim.c line
836,
853,
863
edit
defined in line
21; used 23 times
- in /usr/src/ucb/Mail/cmd3.c line
303,
541,
558-561(2)
- in /usr/src/ucb/Mail/collect.c line
499,
528-529(2),
535-536(3),
547
- in /usr/src/ucb/Mail/lex.c line
43,
64,
155,
260,
421
- in /usr/src/ucb/Mail/main.c line
260,
269-270(2),
276,
285-287(2),
293
hflag
defined in line
14; used 5 times
image
defined in line
31; used 13 times
intty
defined in line
36; used 9 times
mailname
defined in line
39; used 40 times
- in /usr/src/ucb/Mail/cmd3.c line
598-613(7),
624-628(2),
635
- in /usr/src/ucb/Mail/lex.c line
67-68(2),
591-595(3)
- in /usr/src/ucb/Mail/main.c line
267-271(3)
- in /usr/src/ucb/Mail/quit.c line
50,
59-62(2),
129-131(2),
251,
258,
285-286(2),
298,
310,
317-321(3)
- in /usr/src/ucb/Mail/temp.c line
69
- in /usr/src/ucb/Mail/v7.local.c line
24-28(4),
40-43(3)
mbox
defined in line
38; used 12 times
message
defined in line
53; used 101 times
- in /usr/src/ucb/Mail/aux.c line
104
- in /usr/src/ucb/Mail/cmd1.c line
33-42(8),
169,
188,
234,
310,
326,
363-364(2),
395,
424,
441
- in /usr/src/ucb/Mail/cmd2.c line
35,
49,
76-79(2),
89,
161,
225,
309-311(2),
344,
350-357(3),
384
- in /usr/src/ucb/Mail/cmd3.c line
202,
309,
329,
674,
686,
693
- in /usr/src/ucb/Mail/collect.c line
699-704(2)
- in /usr/src/ucb/Mail/edit.c line
79
- in /usr/src/ucb/Mail/fio.c line
240-253(8),
308(2),
361(2)
- in /usr/src/ucb/Mail/lex.c line
395,
551,
569-581(9)
- in /usr/src/ucb/Mail/list.c line
31-33(3),
84,
110,
192,
211,
244,
267,
275-278(3),
320,
516-525(4),
544,
570,
603,
617,
635-637(3),
645-647(3),
655
- in /usr/src/ucb/Mail/quit.c line
95(2),
112(2),
193(2),
294(2)
msgCount
defined in line
10; used 57 times
- in /usr/src/ucb/Mail/aux.c line
102
- in /usr/src/ucb/Mail/cmd1.c line
34-35(2),
42,
105,
309,
323,
392
- in /usr/src/ucb/Mail/cmd2.c line
76-79(2),
131,
158,
196,
222,
379
- in /usr/src/ucb/Mail/collect.c line
681
- in /usr/src/ucb/Mail/edit.c line
77
- in /usr/src/ucb/Mail/fio.c line
36,
80,
235-237(2),
247-253(3),
308,
361
- in /usr/src/ucb/Mail/lex.c line
80,
552,
569-581(5),
600-603(2)
- in /usr/src/ucb/Mail/list.c line
31,
86,
131,
191,
210,
220,
243,
264,
275-278(2),
316,
519,
601,
615,
635,
645
- in /usr/src/ucb/Mail/main.c line
287
- in /usr/src/ucb/Mail/quit.c line
95,
112,
127,
193,
294
myname
defined in line
44; used 21 times
mypid
defined in line
11; used 1 times
defined in line
18; used 3 times
nosrc
defined in line
17; used 2 times
rflag
defined in line
15; used 7 times
rmail
defined in line
60; used 2 times
sflag
defined in line
34; used 3 times
sourcing
defined in line
24; used 21 times
- in /usr/src/ucb/Mail/aux.c line
418,
446,
456
- in /usr/src/ucb/Mail/cmd3.c line
342,
412
- in /usr/src/ucb/Mail/lex.c line
104,
110,
119,
145,
206,
227,
234,
254,
277-281(2),
294,
389,
399,
503,
643-646(2)
srbuf
defined in line
64;
never used
uid
defined in line
40; used 18 times
Defined struct's
Defined macros
Usage of this include