|
|
1.1 root 1: /* shell.h */
2:
3: #include <mark.h>
4:
5: /* Declarations for the Xinu shell */
6:
7: #define SHEXIT -5 /* shell exit return */
8: #define SHNAMLEN 9 /* length of user name + 1 */
9: #define SHBUFLEN 128 /* length of general buffer */
10: #define SHARGLEN 130 /* length of area for arguments */
11: #define SHMAXTOK 18 /* maximum tokens per line */
12: #define SHMLEN 16 /* maximum length of mach. name */
13: #define SHCMDSTK 1024 /* size of command proc. stack */
14: #define SHCMDPRI 20 /* command process priority */
15:
16: struct shvars { /* shell variables */
17: long shlast; /* time shell last touched */
18: long shlogon; /* time user logged on */
19: int shncmds; /* number of commands available */
20: MARKER shmark; /* marked if pused valid */
21: Bool shused; /* TRUE => user using shell */
22: char shuser[SHNAMLEN]; /* current user name */
23: char shmach[SHMLEN]; /* name of this machine */
24: char shbuf[SHBUFLEN]; /* general purpose buffer */
25: char *shtok[SHMAXTOK]; /* pointers to input tokens */
26: char shtktyp[SHMAXTOK]; /* type of token in shtok[i] */
27: char shargst[SHARGLEN]; /* actual strings of arguments */
28: };
29:
30: extern struct shvars Shl;
31:
32: #ifndef NAMESPACE
33: #define NAMESPACE SYSERR
34: #endif NAMESPACE
35:
36: #ifndef RFILSYS
37: #define RFILSYS SYSERR
38: #endif RFILSYS
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.