1: /*
2: * Copyright (c) 1980 Regents of the University of California.
3: * All rights reserved. The Berkeley software License Agreement
4: * specifies the terms and conditions for redistribution.
5: *
6: * @(#)glob.h 5.1 (Berkeley) 6/6/85
7: */
8:
9: /*
10: * A bunch of global variable declarations lie herein.
11: * def.h must be included first.
12: */
13:
14: int msgCount; /* Count of messages read in */
15: int mypid; /* Current process id */
16: int rcvmode; /* True if receiving mail */
17: int sawcom; /* Set after first command */
18: int hflag; /* Sequence number for network -h */
19: char *rflag; /* -r address for network */
20: char *Tflag; /* -T temp file for netnews */
21: char nosrc; /* Don't source /usr/lib/Mail.rc */
22: char ; /* Suprress initial header listing */
23: int selfsent; /* User sent self something */
24: int senderr; /* An error while checking */
25: int edit; /* Indicates editing a file */
26: int readonly; /* Will be unable to rewrite file */
27: int noreset; /* String resets suspended */
28: int sourcing; /* Currently reading variant file */
29: int loading; /* Loading user definitions */
30: int shudann; /* Print headers when possible */
31: int cond; /* Current state of conditional exc. */
32: FILE *itf; /* Input temp file buffer */
33: FILE *otf; /* Output temp file buffer */
34: FILE *pipef; /* Pipe file we have opened */
35: int image; /* File descriptor for image of msg */
36: FILE *input; /* Current command input file */
37: char *editfile; /* Name of file being edited */
38: char *sflag; /* Subject given from non tty */
39: int outtty; /* True if standard output a tty */
40: int intty; /* True if standard input a tty */
41: int baud; /* Output baud rate */
42: char mbox[PATHSIZE]; /* Name of mailbox file */
43: char mailname[PATHSIZE]; /* Name of system mailbox */
44: int uid; /* The invoker's user id */
45: char mailrc[PATHSIZE]; /* Name of startup file */
46: char deadletter[PATHSIZE]; /* Name of #/dead.letter */
47: char homedir[PATHSIZE]; /* Path name of home directory */
48: char myname[PATHSIZE]; /* My login id */
49: off_t mailsize; /* Size of system mailbox */
50: int lexnumber; /* Number of TNUMBER from scan() */
51: char lexstring[STRINGLEN]; /* String from TSTRING, scan() */
52: int regretp; /* Pointer to TOS of regret tokens */
53: int regretstack[REGDEP]; /* Stack of regretted tokens */
54: char *stringstack[REGDEP]; /* Stack of regretted strings */
55: int numberstack[REGDEP]; /* Stack of regretted numbers */
56: struct message *dot; /* Pointer to current message */
57: struct message *message; /* The actual message structure */
58: struct var *variables[HSHSIZE]; /* Pointer to active var list */
59: struct grouphead *groups[HSHSIZE];/* Pointer to active groups */
60: struct ignore *ignore[HSHSIZE];/* Pointer to ignored fields */
61: struct ignore *retain[HSHSIZE];/* Pointer to retained fields */
62: int nretained; /* Number of retained fields */
63: char **altnames; /* List of alternate names for user */
64: char **localnames; /* List of aliases for our local host */
65: int debug; /* Debug flag set */
66: int rmail; /* Being called as rmail */
67:
68: #include <setjmp.h>
69:
70: jmp_buf srbuf;
71:
72:
73: /*
74: * The pointers for the string allocation routines,
75: * there are NSPACE independent areas.
76: * The first holds STRINGSIZE bytes, the next
77: * twice as much, and so on.
78: */
79:
80: #define NSPACE 25 /* Total number of string spaces */
81: struct strings {
82: char *s_topFree; /* Beginning of this area */
83: char *s_nextFree; /* Next alloctable place here */
84: unsigned s_nleft; /* Number of bytes left here */
85: } stringdope[NSPACE];
Defined variables
Tflag
defined in line
20; used 16 times
baud
defined in line
41; used 4 times
cond
defined in line
31; used 16 times
debug
defined in line
65; used 9 times
dot
defined in line
56; used 44 times
- in /usr/src/ucb/Mail/cmd1.c line
47-48(2),
183,
215,
248,
366,
433,
461-463(3),
478-480(3)
- in /usr/src/ucb/Mail/cmd2.c line
41,
57,
82,
89,
95,
319-321(2),
360-367(3),
395
- in /usr/src/ucb/Mail/cmd3.c line
218,
327,
341-343(3),
715
- in /usr/src/ucb/Mail/fio.c line
194
- in /usr/src/ucb/Mail/lex.c line
430-431(2),
604
- in /usr/src/ucb/Mail/list.c line
90,
535-544(4),
683-684(2)
- in /usr/src/ucb/Mail/optim.c line
845,
862,
872
edit
defined in line
25; used 22 times
- in /usr/src/ucb/Mail/cmd3.c line
318,
572,
589-592(2)
- in /usr/src/ucb/Mail/collect.c line
510,
539-540(2),
546-547(3),
558
- in /usr/src/ucb/Mail/lex.c line
64,
78,
99,
190,
295,
457
- in /usr/src/ucb/Mail/main.c line
277,
286-287(2),
302,
308
hflag
defined in line
18; used 5 times
image
defined in line
35; used 13 times
intty
defined in line
40; used 10 times
mailname
defined in line
43; used 38 times
- in /usr/src/ucb/Mail/cmd3.c line
629-644(7),
655-659(2),
666
- in /usr/src/ucb/Mail/lex.c line
102-103(2),
644-648(3)
- in /usr/src/ucb/Mail/main.c line
284-288(3)
- in /usr/src/ucb/Mail/quit.c line
57,
137-139(2),
262,
270,
298-299(2),
311,
324,
331-335(3)
- in /usr/src/ucb/Mail/temp.c line
75
- in /usr/src/ucb/Mail/v7.local.c line
30-34(4),
46-49(3)
mbox
defined in line
42; used 12 times
message
defined in line
57; used 104 times
- in /usr/src/ucb/Mail/aux.c line
110
- in /usr/src/ucb/Mail/cmd1.c line
40-49(8),
183,
202,
248,
345,
365,
400-401(2),
432,
461,
478
- in /usr/src/ucb/Mail/cmd2.c line
41,
55,
82-85(2),
95,
167,
231,
319-321(2),
354,
360-367(3),
394
- in /usr/src/ucb/Mail/cmd3.c line
217,
324,
341,
360,
714,
726,
733
- in /usr/src/ucb/Mail/collect.c line
710-715(2)
- in /usr/src/ucb/Mail/edit.c line
85
- in /usr/src/ucb/Mail/fio.c line
191-204(8),
259(2),
313(2)
- in /usr/src/ucb/Mail/lex.c line
431,
604,
622-634(9)
- in /usr/src/ucb/Mail/list.c line
37-39(3),
90,
116,
144,
157,
204,
223,
256,
279,
287-290(3),
332,
535-544(4),
563,
598,
631,
645,
663-665(3),
673-675(3),
683
- in /usr/src/ucb/Mail/quit.c line
103(2),
120(2),
203(2),
307(2)
msgCount
defined in line
14; used 57 times
- in /usr/src/ucb/Mail/aux.c line
108
- in /usr/src/ucb/Mail/cmd1.c line
41-42(2),
49,
112,
344,
362,
429
- in /usr/src/ucb/Mail/cmd2.c line
82-85(2),
137,
164,
202,
228,
389
- in /usr/src/ucb/Mail/collect.c line
692
- in /usr/src/ucb/Mail/edit.c line
83
- in /usr/src/ucb/Mail/fio.c line
42,
75,
186-188(2),
198-204(3),
259,
313
- in /usr/src/ucb/Mail/lex.c line
115,
605,
622-634(5),
653-656(2)
- in /usr/src/ucb/Mail/list.c line
37,
92,
140,
203,
222,
232,
255,
276,
287-290(2),
328,
538,
629,
643,
663,
673
- in /usr/src/ucb/Mail/main.c line
302
- in /usr/src/ucb/Mail/quit.c line
103,
120,
135,
203,
307
myname
defined in line
48; used 21 times
mypid
defined in line
15; used 1 times
defined in line
22; used 3 times
nosrc
defined in line
21; used 2 times
rflag
defined in line
19; used 7 times
rmail
defined in line
66; used 2 times
sflag
defined in line
38; used 3 times
sourcing
defined in line
28; used 21 times
- in /usr/src/ucb/Mail/aux.c line
410,
438,
448
- in /usr/src/ucb/Mail/cmd3.c line
373,
443
- in /usr/src/ucb/Mail/lex.c line
139,
145,
154,
180,
241,
262,
269,
289,
312-316(2),
329,
425,
435,
567,
696-699(2)
srbuf
defined in line
70;
never used
uid
defined in line
44; used 11 times
Defined struct's
Defined macros
Usage of this include