xref: /titanic_50/usr/src/lib/libshell/common/include/variables.h (revision 8ef10d209f1443865a8ce5b1eb59838b64a64e67)
1 /***********************************************************************
2 *                                                                      *
3 *               This software is part of the ast package               *
4 *           Copyright (c) 1982-2007 AT&T Knowledge Ventures            *
5 *                      and is licensed under the                       *
6 *                  Common Public License, Version 1.0                  *
7 *                      by AT&T Knowledge Ventures                      *
8 *                                                                      *
9 *                A copy of the License is available at                 *
10 *            http://www.opensource.org/licenses/cpl1.0.txt             *
11 *         (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9)         *
12 *                                                                      *
13 *              Information and Software Systems Research               *
14 *                            AT&T Research                             *
15 *                           Florham Park NJ                            *
16 *                                                                      *
17 *                  David Korn <dgk@research.att.com>                   *
18 *                                                                      *
19 ***********************************************************************/
20 #pragma prototyped
21 
22 #ifndef SH_VALNOD
23 
24 #include        <option.h>
25 #include        "FEATURE/options"
26 #include        "FEATURE/dynamic"
27 
28 /* The following defines are coordinated with data in data/variables.c */
29 
30 #define	PATHNOD		(sh.bltin_nodes)
31 #define PS1NOD		(sh.bltin_nodes+1)
32 #define PS2NOD		(sh.bltin_nodes+2)
33 #define IFSNOD		(sh.bltin_nodes+3)
34 #define PWDNOD		(sh.bltin_nodes+4)
35 #define HOME		(sh.bltin_nodes+5)
36 #define MAILNOD		(sh.bltin_nodes+6)
37 #define REPLYNOD	(sh.bltin_nodes+7)
38 #define SHELLNOD	(sh.bltin_nodes+8)
39 #define EDITNOD		(sh.bltin_nodes+9)
40 #define MCHKNOD		(sh.bltin_nodes+10)
41 #define RANDNOD		(sh.bltin_nodes+11)
42 #define ENVNOD		(sh.bltin_nodes+12)
43 #define HISTFILE	(sh.bltin_nodes+13)
44 #define HISTSIZE	(sh.bltin_nodes+14)
45 #define HISTEDIT	(sh.bltin_nodes+15)
46 #define HISTCUR		(sh.bltin_nodes+16)
47 #define FCEDNOD		(sh.bltin_nodes+17)
48 #define CDPNOD		(sh.bltin_nodes+18)
49 #define MAILPNOD	(sh.bltin_nodes+19)
50 #define PS3NOD		(sh.bltin_nodes+20)
51 #define OLDPWDNOD	(sh.bltin_nodes+21)
52 #define VISINOD		(sh.bltin_nodes+22)
53 #define COLUMNS		(sh.bltin_nodes+23)
54 #define LINES		(sh.bltin_nodes+24)
55 #define PPIDNOD		(sh.bltin_nodes+25)
56 #define L_ARGNOD	(sh.bltin_nodes+26)
57 #define TMOUTNOD	(sh.bltin_nodes+27)
58 #define SECONDS		(sh.bltin_nodes+28)
59 #define LINENO		(sh.bltin_nodes+29)
60 #define OPTARGNOD	(sh.bltin_nodes+30)
61 #define OPTINDNOD	(sh.bltin_nodes+31)
62 #define PS4NOD		(sh.bltin_nodes+32)
63 #define FPATHNOD	(sh.bltin_nodes+33)
64 #define LANGNOD		(sh.bltin_nodes+34)
65 #define LCALLNOD	(sh.bltin_nodes+35)
66 #define LCCOLLNOD	(sh.bltin_nodes+36)
67 #define LCTYPENOD	(sh.bltin_nodes+37)
68 #define LCMSGNOD	(sh.bltin_nodes+38)
69 #define LCNUMNOD	(sh.bltin_nodes+39)
70 #define FIGNORENOD	(sh.bltin_nodes+40)
71 #define DOTSHNOD	(sh.bltin_nodes+41)
72 #define ED_CHRNOD	(sh.bltin_nodes+42)
73 #define ED_COLNOD	(sh.bltin_nodes+43)
74 #define ED_TXTNOD	(sh.bltin_nodes+44)
75 #define ED_MODENOD	(sh.bltin_nodes+45)
76 #define SH_NAMENOD	(sh.bltin_nodes+46)
77 #define SH_SUBSCRNOD	(sh.bltin_nodes+47)
78 #define SH_VALNOD	(sh.bltin_nodes+48)
79 #define SH_VERSIONNOD	(sh.bltin_nodes+49)
80 #define SH_DOLLARNOD	(sh.bltin_nodes+50)
81 #define SH_MATCHNOD	(sh.bltin_nodes+51)
82 #define SH_COMMANDNOD	(sh.bltin_nodes+52)
83 #define SH_PATHNAMENOD	(sh.bltin_nodes+53)
84 #define SH_FUNNAMENOD	(sh.bltin_nodes+54)
85 #define SH_SUBSHELLNOD	(sh.bltin_nodes+55)
86 #define SH_LEVELNOD	(sh.bltin_nodes+56)
87 #if SHOPT_FS_3D
88 #   define VPATHNOD	(sh.bltin_nodes+57)
89 #   define NFS_3D	1
90 #else
91 #   define NFS_3D	0
92 #endif /* SHOPT_FS_3D */
93 #if SHOPT_VPIX
94 #   define DOSPATHNOD	(sh.bltin_nodes+57+NFS_3D)
95 #   define VPIXNOD	(sh.bltin_nodes+58+NFS_3D)
96 #   define NVPIX	(NFS_3D+2)
97 #else
98 #   define NVPIX	NFS_3D
99 #endif /* SHOPT_VPIX */
100 #ifdef apollo
101 #   define SYSTYPENOD	(sh.bltin_nodes+57+NVPIX)
102 #endif /* apollo */
103 
104 #endif /* SH_VALNOD */
105