summaryrefslogtreecommitdiff
path: root/usr/src/lib/libshell/common/include/variables.h
diff options
context:
space:
mode:
authorchin <none@none>2007-08-17 12:01:52 -0700
committerchin <none@none>2007-08-17 12:01:52 -0700
commitda2e3ebdc1edfbc5028edf1354e7dd2fa69a7968 (patch)
tree5280d3b78e289fe9551371ab6e7f15ef9944ea14 /usr/src/lib/libshell/common/include/variables.h
parent073dbf9103ef2a2b05d8a16e2d26db04e0374b0e (diff)
downloadillumos-joyent-da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968.tar.gz
6437624 RFE: Add ksh93 (as /usr/bin/ksh93) and libshell.so to OS/Net
6505835 AST tools and library (libpp) required for creating l10n messages for ksh93 PSARC/2006/550 Korn Shell 93 Integration PSARC/2006/587 /etc/ksh.kshrc for ksh93 PSARC/2007/035 ksh93 Amendments Contributed by Roland Mainz <roland.mainz@nrubsig.org> --HG-- rename : usr/src/lib/libcmd/common/mapfile-vers => deleted_files/usr/src/lib/libcmd/common/mapfile-vers rename : usr/src/lib/libcmd/common/placeholder.c => deleted_files/usr/src/lib/libcmd/common/placeholder.c
Diffstat (limited to 'usr/src/lib/libshell/common/include/variables.h')
-rw-r--r--usr/src/lib/libshell/common/include/variables.h104
1 files changed, 104 insertions, 0 deletions
diff --git a/usr/src/lib/libshell/common/include/variables.h b/usr/src/lib/libshell/common/include/variables.h
new file mode 100644
index 0000000000..2ceefcf9f7
--- /dev/null
+++ b/usr/src/lib/libshell/common/include/variables.h
@@ -0,0 +1,104 @@
+/***********************************************************************
+* *
+* This software is part of the ast package *
+* Copyright (c) 1982-2007 AT&T Knowledge Ventures *
+* and is licensed under the *
+* Common Public License, Version 1.0 *
+* by AT&T Knowledge Ventures *
+* *
+* A copy of the License is available at *
+* http://www.opensource.org/licenses/cpl1.0.txt *
+* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
+* *
+* Information and Software Systems Research *
+* AT&T Research *
+* Florham Park NJ *
+* *
+* David Korn <dgk@research.att.com> *
+* *
+***********************************************************************/
+#pragma prototyped
+
+#ifndef SH_VALNOD
+
+#include <option.h>
+#include "FEATURE/options"
+#include "FEATURE/dynamic"
+
+/* The following defines are coordinated with data in data/variables.c */
+
+#define PATHNOD (sh.bltin_nodes)
+#define PS1NOD (sh.bltin_nodes+1)
+#define PS2NOD (sh.bltin_nodes+2)
+#define IFSNOD (sh.bltin_nodes+3)
+#define PWDNOD (sh.bltin_nodes+4)
+#define HOME (sh.bltin_nodes+5)
+#define MAILNOD (sh.bltin_nodes+6)
+#define REPLYNOD (sh.bltin_nodes+7)
+#define SHELLNOD (sh.bltin_nodes+8)
+#define EDITNOD (sh.bltin_nodes+9)
+#define MCHKNOD (sh.bltin_nodes+10)
+#define RANDNOD (sh.bltin_nodes+11)
+#define ENVNOD (sh.bltin_nodes+12)
+#define HISTFILE (sh.bltin_nodes+13)
+#define HISTSIZE (sh.bltin_nodes+14)
+#define HISTEDIT (sh.bltin_nodes+15)
+#define HISTCUR (sh.bltin_nodes+16)
+#define FCEDNOD (sh.bltin_nodes+17)
+#define CDPNOD (sh.bltin_nodes+18)
+#define MAILPNOD (sh.bltin_nodes+19)
+#define PS3NOD (sh.bltin_nodes+20)
+#define OLDPWDNOD (sh.bltin_nodes+21)
+#define VISINOD (sh.bltin_nodes+22)
+#define COLUMNS (sh.bltin_nodes+23)
+#define LINES (sh.bltin_nodes+24)
+#define PPIDNOD (sh.bltin_nodes+25)
+#define L_ARGNOD (sh.bltin_nodes+26)
+#define TMOUTNOD (sh.bltin_nodes+27)
+#define SECONDS (sh.bltin_nodes+28)
+#define LINENO (sh.bltin_nodes+29)
+#define OPTARGNOD (sh.bltin_nodes+30)
+#define OPTINDNOD (sh.bltin_nodes+31)
+#define PS4NOD (sh.bltin_nodes+32)
+#define FPATHNOD (sh.bltin_nodes+33)
+#define LANGNOD (sh.bltin_nodes+34)
+#define LCALLNOD (sh.bltin_nodes+35)
+#define LCCOLLNOD (sh.bltin_nodes+36)
+#define LCTYPENOD (sh.bltin_nodes+37)
+#define LCMSGNOD (sh.bltin_nodes+38)
+#define LCNUMNOD (sh.bltin_nodes+39)
+#define FIGNORENOD (sh.bltin_nodes+40)
+#define DOTSHNOD (sh.bltin_nodes+41)
+#define ED_CHRNOD (sh.bltin_nodes+42)
+#define ED_COLNOD (sh.bltin_nodes+43)
+#define ED_TXTNOD (sh.bltin_nodes+44)
+#define ED_MODENOD (sh.bltin_nodes+45)
+#define SH_NAMENOD (sh.bltin_nodes+46)
+#define SH_SUBSCRNOD (sh.bltin_nodes+47)
+#define SH_VALNOD (sh.bltin_nodes+48)
+#define SH_VERSIONNOD (sh.bltin_nodes+49)
+#define SH_DOLLARNOD (sh.bltin_nodes+50)
+#define SH_MATCHNOD (sh.bltin_nodes+51)
+#define SH_COMMANDNOD (sh.bltin_nodes+52)
+#define SH_PATHNAMENOD (sh.bltin_nodes+53)
+#define SH_FUNNAMENOD (sh.bltin_nodes+54)
+#define SH_SUBSHELLNOD (sh.bltin_nodes+55)
+#define SH_LEVELNOD (sh.bltin_nodes+56)
+#if SHOPT_FS_3D
+# define VPATHNOD (sh.bltin_nodes+57)
+# define NFS_3D 1
+#else
+# define NFS_3D 0
+#endif /* SHOPT_FS_3D */
+#if SHOPT_VPIX
+# define DOSPATHNOD (sh.bltin_nodes+57+NFS_3D)
+# define VPIXNOD (sh.bltin_nodes+58+NFS_3D)
+# define NVPIX (NFS_3D+2)
+#else
+# define NVPIX NFS_3D
+#endif /* SHOPT_VPIX */
+#ifdef apollo
+# define SYSTYPENOD (sh.bltin_nodes+57+NVPIX)
+#endif /* apollo */
+
+#endif /* SH_VALNOD */