Commit | Line | Data |
---|---|---|
1a5078b8 BJ |
1 | /* |
2 | * Shell header file | |
3 | */ | |
4 | #define E | |
5 | #define INTR 2 | |
6 | #define QUIT 3 | |
7 | ||
8 | #define QUOTE 0200 | |
9 | ||
10 | #define FAND 1 | |
11 | #define FCAT 2 | |
12 | #define FPIN 4 | |
13 | #define FPOU 8 | |
14 | #define FPAR 16 | |
15 | #define FINT 32 | |
16 | #define FPRS 64 | |
17 | #define FDIAG 128 | |
18 | ||
19 | #define TCOM 1 | |
20 | #define TPAR 2 | |
21 | #define TFIL 3 | |
22 | #define TLST 4 | |
23 | ||
24 | #define DTYP 0 | |
25 | #define DLEF 1 | |
26 | #define DRIT 2 | |
27 | #define DFLG 3 | |
28 | #define DSPR 4 | |
29 | #define DCOM 5 | |
30 | ||
31 | #define ENOENT 2 | |
32 | #define ENOEXEC 8 | |
33 | #define ENOMEM 12 | |
34 | #define EACCES 13 | |
35 | #define ENOTDIR 20 | |
36 | ||
37 | struct shvar { | |
38 | char *value; | |
39 | char *name; | |
40 | struct shvar *next; | |
41 | } shvhed, paraml, aliases, interps; | |
42 | ||
43 | struct shvar2 { | |
44 | char *value; | |
45 | struct shvar *prev; | |
46 | struct shvar *next; | |
47 | }; | |
48 | ||
49 | char verbose; | |
50 | char nofile; | |
51 | char *error; | |
52 | int uid; | |
53 | char loginsh; | |
54 | char doneinp; | |
55 | char setintr; | |
56 | char *arginp; | |
57 | char onelflg; | |
58 | char scratch[100]; | |
59 | ||
60 | char prompt[], shell[], pid[], pcs[], home[], path[], n_args[], tim[]; | |
61 | ||
62 | char *value(), *value1(); | |
63 | char **glob(); | |
64 | struct shvar *adrof(), *adrof1(); | |
65 | ||
66 | #define seterr(s) if (error == 0) error = s; | |
67 | int errno; | |
68 | ||
69 | struct htmp { | |
70 | int uid; | |
71 | char home[28]; | |
72 | int ttytype; | |
73 | } hentry; |