123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- /*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
- /* $XConsortium: variables.c /main/3 1995/11/01 15:57:22 rswiston $ */
- /***************************************************************
- * *
- * AT&T - PROPRIETARY *
- * *
- * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF *
- * AT&T BELL LABORATORIES *
- * AND IS NOT TO BE DISCLOSED OR USED EXCEPT IN *
- * ACCORDANCE WITH APPLICABLE AGREEMENTS *
- * *
- * Copyright (c) 1993 AT&T Bell Laboratories *
- * Unpublished & Not for Publication *
- * All Rights Reserved *
- * *
- * The copyright notice above does not evidence any *
- * actual or intended publication of such source code *
- * *
- * This software was created by the *
- * Advanced Software Technology Department *
- * AT&T Bell Laboratories *
- * *
- * For further information contact *
- * {ulysses,attmail}!dgk *
- * dgk@ulysses.att.com *
- * David Korn 908-582-7975 *
- * *
- ***************************************************************/
- /* : : generated by proto : : */
- #line 1
- #if !defined(__PROTO__)
- #if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
- #if defined(__cplusplus)
- #define __MANGLE__ "C"
- #else
- #define __MANGLE__
- #endif
- #define __STDARG__
- #define __PROTO__(x) x
- #define __OTORP__(x)
- #define __PARAM__(n,o) n
- #if !defined(__STDC__) && !defined(__cplusplus)
- #if !defined(c_plusplus)
- #define const
- #endif
- #define signed
- #define void int
- #define volatile
- #define __V_ char
- #else
- #define __V_ void
- #endif
- #else
- #define __PROTO__(x) ()
- #define __OTORP__(x) x
- #define __PARAM__(n,o) o
- #define __MANGLE__
- #define __V_ char
- #define const
- #define signed
- #define void int
- #define volatile
- #endif
- #if defined(__cplusplus) || defined(c_plusplus)
- #define __VARARG__ ...
- #else
- #define __VARARG__
- #endif
- #define __VOID__ __V_
- #if defined(__STDARG__)
- #define __VA_START__(p,a) va_start(p,a)
- #else
- #define __VA_START__(p,a) va_start(p)
- #endif
- #endif
- #line 3
- #define mount _AST__mount
- #include <ast.h>
- #include "FEATURE/options"
- #include "FEATURE/dynamic"
- #include <shell.h>
- #include "shtable.h"
- #include "name.h"
- #include "exextra.h"
- #include "docall.h"
- #include "msgs.h"
- /*
- * This is the list of built-in shell variables and default values
- * and default attributes.
- */
- const struct shtable2 shtab_variables[] =
- {
- "PATH", 0, (char*)0,
- "PS1", 0, (char*)0,
- "PS2", NV_NOFREE, "> ",
- "IFS", NV_NOFREE, " \t\n",
- "PWD", 0, (char*)0,
- "HOME", 0, (char*)0,
- "MAIL", 0, (char*)0,
- "REPLY", 0, (char*)0,
- "SHELL", NV_NOFREE, "/bin/sh",
- "EDITOR", 0, (char*)0,
- "MAILCHECK", NV_NOFREE|NV_INTEGER, (char*)0,
- "RANDOM", NV_NOFREE|NV_INTEGER, (char*)0,
- "ENV", 0, (char*)0,
- "HISTFILE", 0, (char*)0,
- "HISTSIZE", 0, (char*)0,
- "HISTEDIT", NV_NOFREE, (char*)0,
- "HISTCMD", NV_NOFREE|NV_INTEGER, (char*)0,
- "FCEDIT", NV_NOFREE, "/bin/ed",
- "CDPATH", 0, (char*)0,
- "MAILPATH", 0, (char*)0,
- "PS3", NV_NOFREE, "#? ",
- "OLDPWD", 0, (char*)0,
- "VISUAL", 0, (char*)0,
- "COLUMNS", 0, (char*)0,
- "LINES", 0, (char*)0,
- "PPID", NV_NOFREE|NV_INTEGER, (char*)0,
- "_", NV_EXPORT, (char*)0,
- "TMOUT", NV_NOFREE|NV_INTEGER, (char*)0,
- "SECONDS", NV_NOFREE|NV_INTEGER|NV_DOUBLE, (char*)0,
- "LINENO", NV_NOFREE|NV_INTEGER, (char*)0,
- "OPTARG", 0, (char*)0,
- "OPTIND", NV_NOFREE|NV_INTEGER, (char*)0,
- "PS4", 0, (char*)0,
- "FPATH", 0, (char*)0,
- "LANG", 0, (char*)0,
- "LC_CTYPE", 0, (char*)0,
- "FIGNORE", 0, (char*)0,
- ".sh", 0, (char*)0,
- ".sh.edchar", 0, (char*)0,
- ".sh.edcol", 0, (char*)0,
- ".sh.edtext", 0, (char*)0,
- ".sh.edmode", 0, (char*)0,
- ".sh.name", 0, (char*)0,
- ".sh.subscript",0, (char*)0,
- ".sh.value", 0, (char*)0,
- ".sh.version", NV_NOFREE, (char*)(&e_version[5]),
- #ifdef SHOPT_FS_3D
- "VPATH", 0, (char*)0,
- #endif /* SHOPT_FS_3D */
- #ifdef SHOPT_VPIX
- "DOSPATH", 0, (char*)0,
- "VPIXDIR", 0, (char*)0,
- #endif /* SHOPT_VPIX */
- #ifdef MULTIBYTE
- "CSWIDTH", 0, (char*)0,
- #endif /* MULTIBYTE */
- EXKSH_EXTRA_VAR
- "", 0, (char*)0
- };
|