variables.c revision 1
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1982-2011 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* David Korn <dgk@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
#include <ast.h>
#include <shell.h>
#include "shtable.h"
#include "name.h"
#include "defs.h"
#include "variables.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,
"PWD", 0, (char*)0,
"HOME", 0, (char*)0,
"MAIL", 0, (char*)0,
"REPLY", 0, (char*)0,
"EDITOR", 0, (char*)0,
"ENV", NV_NOFREE, (char*)0,
"HISTFILE", 0, (char*)0,
"HISTSIZE", 0, (char*)0,
"HISTEDIT", NV_NOFREE, (char*)0,
"CDPATH", 0, (char*)0,
"MAILPATH", 0, (char*)0,
"OLDPWD", 0, (char*)0,
"VISUAL", 0, (char*)0,
"COLUMNS", 0, (char*)0,
"LINES", 0, (char*)0,
"_", NV_EXPORT, (char*)0,
"OPTARG", 0, (char*)0,
"PS4", 0, (char*)0,
"FPATH", 0, (char*)0,
"LANG", 0, (char*)0,
"LC_ALL", 0, (char*)0,
"LC_COLLATE", 0, (char*)0,
"LC_CTYPE", 0, (char*)0,
"LC_MESSAGES", 0, (char*)0,
"LC_NUMERIC", 0, (char*)0,
"FIGNORE", 0, (char*)0,
"KSH_VERSION", 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.dollar", 0, (char*)0,
".sh.match", 0, (char*)0,
".sh.command", 0, (char*)0,
".sh.file", 0, (char*)0,
".sh.fun", 0, (char*)0,
".sh.level", 0, (char*)0,
".sh.lineno", NV_INTEGER, (char*)0,
".sh.stats", 0, (char*)0,
".sh.math", 0, (char*)0,
".sh.pool", 0, (char*)0,
#if SHOPT_FS_3D
"VPATH", 0, (char*)0,
#endif /* SHOPT_FS_3D */
#if SHOPT_MULTIBYTE
"CSWIDTH", 0, (char*)0,
#endif /* SHOPT_MULTIBYTE */
#ifdef apollo
"SYSTYPE", 0, (char*)0,
#endif /* apollo */
"", 0, (char*)0
};
#ifdef SHOPT_STATS
const Shtable_t shtab_stats[] =
{
"arg_cachehits", STAT_ARGHITS,
"arg_expands", STAT_ARGEXPAND,
"comsubs", STAT_COMSUB,
"forks", STAT_FORKS,
"funcalls", STAT_FUNCT,
"globs", STAT_GLOBS,
"linesread", STAT_READS,
"nv_cachehit", STAT_NVHITS,
"nv_opens", STAT_NVOPEN,
"pathsearch", STAT_PATHS,
"posixfuncall", STAT_SVFUNCT,
"simplecmds", STAT_SCMDS,
"spawns", STAT_SPAWN,
"subshell", STAT_SUBSHELL
};
#endif /* SHOPT_STATS */