Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtksh / variables.c
1 /* $XConsortium: variables.c /main/3 1995/11/01 15:57:22 rswiston $ */
2 /***************************************************************
3 *                                                              *
4 *                      AT&T - PROPRIETARY                      *
5 *                                                              *
6 *        THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF        *
7 *                    AT&T BELL LABORATORIES                    *
8 *         AND IS NOT TO BE DISCLOSED OR USED EXCEPT IN         *
9 *            ACCORDANCE WITH APPLICABLE AGREEMENTS             *
10 *                                                              *
11 *          Copyright (c) 1993 AT&T Bell Laboratories           *
12 *              Unpublished & Not for Publication               *
13 *                     All Rights Reserved                      *
14 *                                                              *
15 *       The copyright notice above does not evidence any       *
16 *      actual or intended publication of such source code      *
17 *                                                              *
18 *               This software was created by the               *
19 *           Advanced Software Technology Department            *
20 *                    AT&T Bell Laboratories                    *
21 *                                                              *
22 *               For further information contact                *
23 *                    {ulysses,attmail}!dgk                     *
24 *                     dgk@ulysses.att.com                      *
25 *                   David Korn 908-582-7975                    *
26 *                                                              *
27 ***************************************************************/
28
29 /* : : generated by proto : : */
30
31 #line 1
32
33 #if !defined(__PROTO__)
34 #if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
35 #if defined(__cplusplus)
36 #define __MANGLE__      "C"
37 #else
38 #define __MANGLE__
39 #endif
40 #define __STDARG__
41 #define __PROTO__(x)    x
42 #define __OTORP__(x)
43 #define __PARAM__(n,o)  n
44 #if !defined(__STDC__) && !defined(__cplusplus)
45 #if !defined(c_plusplus)
46 #define const
47 #endif
48 #define signed
49 #define void            int
50 #define volatile
51 #define __V_            char
52 #else
53 #define __V_            void
54 #endif
55 #else
56 #define __PROTO__(x)    ()
57 #define __OTORP__(x)    x
58 #define __PARAM__(n,o)  o
59 #define __MANGLE__
60 #define __V_            char
61 #define const
62 #define signed
63 #define void            int
64 #define volatile
65 #endif
66 #if defined(__cplusplus) || defined(c_plusplus)
67 #define __VARARG__      ...
68 #else
69 #define __VARARG__
70 #endif
71 #define __VOID__        __V_
72 #if defined(__STDARG__)
73 #define __VA_START__(p,a)       va_start(p,a)
74 #else
75 #define __VA_START__(p,a)       va_start(p)
76 #endif
77 #endif
78
79 #line 3
80 #define mount   _AST__mount
81 #include        <ast.h>
82 #include        "FEATURE/options"
83 #include        "FEATURE/dynamic"
84 #include        <shell.h>
85 #include        "shtable.h"
86 #include        "name.h"
87 #include        "exextra.h"
88 #include        "docall.h"
89 #include        "msgs.h"
90
91
92 /*
93  * This is the list of built-in shell variables and default values
94  * and default attributes.
95  */
96
97 const struct shtable2 shtab_variables[] =
98 {
99         "PATH",         0,                              (char*)0,
100         "PS1",          0,                              (char*)0,
101         "PS2",          NV_NOFREE,                      "> ",
102         "IFS",          NV_NOFREE,                      " \t\n",
103         "PWD",          0,                              (char*)0,
104         "HOME",         0,                              (char*)0,
105         "MAIL",         0,                              (char*)0,
106         "REPLY",        0,                              (char*)0,
107         "SHELL",        NV_NOFREE,                      "/bin/sh",
108         "EDITOR",       0,                              (char*)0,
109         "MAILCHECK",    NV_NOFREE|NV_INTEGER,           (char*)0,
110         "RANDOM",       NV_NOFREE|NV_INTEGER,           (char*)0,
111         "ENV",          0,                              (char*)0,
112         "HISTFILE",     0,                              (char*)0,
113         "HISTSIZE",     0,                              (char*)0,
114         "HISTEDIT",     NV_NOFREE,                      (char*)0,
115         "HISTCMD",      NV_NOFREE|NV_INTEGER,           (char*)0,
116         "FCEDIT",       NV_NOFREE,                      "/bin/ed",
117         "CDPATH",       0,                              (char*)0,
118         "MAILPATH",     0,                              (char*)0,
119         "PS3",          NV_NOFREE,                      "#? ",
120         "OLDPWD",       0,                              (char*)0,
121         "VISUAL",       0,                              (char*)0,
122         "COLUMNS",      0,                              (char*)0,
123         "LINES",        0,                              (char*)0,
124         "PPID",         NV_NOFREE|NV_INTEGER,           (char*)0,
125         "_",            NV_EXPORT,                      (char*)0,
126         "TMOUT",        NV_NOFREE|NV_INTEGER,           (char*)0,
127         "SECONDS",      NV_NOFREE|NV_INTEGER|NV_DOUBLE, (char*)0,
128         "LINENO",       NV_NOFREE|NV_INTEGER,           (char*)0,
129         "OPTARG",       0,                              (char*)0,
130         "OPTIND",       NV_NOFREE|NV_INTEGER,           (char*)0,
131         "PS4",          0,                              (char*)0,
132         "FPATH",        0,                              (char*)0,
133         "LANG",         0,                              (char*)0,
134         "LC_CTYPE",     0,                              (char*)0,
135         "FIGNORE",      0,                              (char*)0,
136         ".sh",          0,                              (char*)0,
137         ".sh.edchar",   0,                              (char*)0,
138         ".sh.edcol",    0,                              (char*)0,
139         ".sh.edtext",   0,                              (char*)0,
140         ".sh.edmode",   0,                              (char*)0,
141         ".sh.name",     0,                              (char*)0,
142         ".sh.subscript",0,                              (char*)0,
143         ".sh.value",    0,                              (char*)0,
144         ".sh.version",  NV_NOFREE,                      (char*)(&e_version[5]),
145 #ifdef SHOPT_FS_3D
146         "VPATH",        0,                              (char*)0,
147 #endif /* SHOPT_FS_3D */
148 #ifdef SHOPT_VPIX
149         "DOSPATH",      0,                              (char*)0,
150         "VPIXDIR",      0,                              (char*)0,
151 #endif  /* SHOPT_VPIX */
152 #ifdef MULTIBYTE
153         "CSWIDTH",      0,                              (char*)0,
154 #endif /* MULTIBYTE */
155 #ifdef apollo
156         "SYSTYPE",      0,                              (char*)0,
157 #endif /* apollo */
158 EXKSH_EXTRA_VAR
159         "",     0,                                      (char*)0
160 };
161