|
|
1.1 root 1: /*
2: * sh/extern.c
3: * Bourne shell.
4: * External variables.
5: */
6:
7: #include "sh.h"
8:
9: /* Set time, run time, and internal flags */
10: /* See exec3.c/set before you move these around */
11: char shflags [] = {
12: 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0
13: };
14: char shfnams [] = {
15: 'e','k','n','p','t','u','v','x','c','i','r','s','-', 0 , 0 , 0 , 0 , 0
16: };
17: /* Shell status housekeeping */
18: jmp_buf restart;
19: int sargc = 0;
20: char *sarg0 = NULL;
21: char **sargv = NULL;
22: char **senvp = NULL;
23: char **sargp = NULL;
24: char *scmdp = NULL;
25: int nargc = 0;
26: char **nargv = NULL;
27: char **nenvp = NULL;
28: char **niovp = NULL;
29: NODE *nctlp = NULL;
30: SES *sesp = NULL;
31: int yyline = 1;
32: int shpid = 0;
33: int slret = 0;
34: int sback = 0;
35: int spipe = 0;
36: int ufmask = 0777;
37: /* Other internal flags. */
38: int comflag = 1;
39: int errflag = 0;
40: int keyflag = 1;
41: int noeflag = 0;
42: int prpflag = 1;
43: int readflag = 0;
44: /* Parameters used by shell, names and values */
45: char *vhome = NULL;
46: char *vpath = NULL;
47: char *vmail = NULL;
48: char *vps1 = NULL;
49: char *vps2 = NULL;
50: char *vifs = NULL;
51: /* Shell data */
52: char strt[STRSIZE];
53: char *strp;
54: VAR *varp = NULL;
55:
56: /* Directory stack. */
57: char *dstack[DSTACKN]; /* Directory stack */
58: int dstkp; /* Directory stack pointer */
59:
60: /* end of sh/extern.c */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.