variables.c 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. /*
  2. * CDE - Common Desktop Environment
  3. *
  4. * Copyright (c) 1993-2012, The Open Group. All rights reserved.
  5. *
  6. * These libraries and programs are free software; you can
  7. * redistribute them and/or modify them under the terms of the GNU
  8. * Lesser General Public License as published by the Free Software
  9. * Foundation; either version 2 of the License, or (at your option)
  10. * any later version.
  11. *
  12. * These libraries and programs are distributed in the hope that
  13. * they will be useful, but WITHOUT ANY WARRANTY; without even the
  14. * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  15. * PURPOSE. See the GNU Lesser General Public License for more
  16. * details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with these librararies and programs; if not, write
  20. * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  21. * Floor, Boston, MA 02110-1301 USA
  22. */
  23. /* $XConsortium: variables.c /main/3 1995/11/01 15:57:22 rswiston $ */
  24. /***************************************************************
  25. * *
  26. * AT&T - PROPRIETARY *
  27. * *
  28. * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF *
  29. * AT&T BELL LABORATORIES *
  30. * AND IS NOT TO BE DISCLOSED OR USED EXCEPT IN *
  31. * ACCORDANCE WITH APPLICABLE AGREEMENTS *
  32. * *
  33. * Copyright (c) 1993 AT&T Bell Laboratories *
  34. * Unpublished & Not for Publication *
  35. * All Rights Reserved *
  36. * *
  37. * The copyright notice above does not evidence any *
  38. * actual or intended publication of such source code *
  39. * *
  40. * This software was created by the *
  41. * Advanced Software Technology Department *
  42. * AT&T Bell Laboratories *
  43. * *
  44. * For further information contact *
  45. * {ulysses,attmail}!dgk *
  46. * dgk@ulysses.att.com *
  47. * David Korn 908-582-7975 *
  48. * *
  49. ***************************************************************/
  50. /* : : generated by proto : : */
  51. #line 1
  52. #if !defined(__PROTO__)
  53. #if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
  54. #if defined(__cplusplus)
  55. #define __MANGLE__ "C"
  56. #else
  57. #define __MANGLE__
  58. #endif
  59. #define __STDARG__
  60. #define __PROTO__(x) x
  61. #define __OTORP__(x)
  62. #define __PARAM__(n,o) n
  63. #if !defined(__STDC__) && !defined(__cplusplus)
  64. #if !defined(c_plusplus)
  65. #define const
  66. #endif
  67. #define signed
  68. #define void int
  69. #define volatile
  70. #define __V_ char
  71. #else
  72. #define __V_ void
  73. #endif
  74. #else
  75. #define __PROTO__(x) ()
  76. #define __OTORP__(x) x
  77. #define __PARAM__(n,o) o
  78. #define __MANGLE__
  79. #define __V_ char
  80. #define const
  81. #define signed
  82. #define void int
  83. #define volatile
  84. #endif
  85. #if defined(__cplusplus) || defined(c_plusplus)
  86. #define __VARARG__ ...
  87. #else
  88. #define __VARARG__
  89. #endif
  90. #define __VOID__ __V_
  91. #if defined(__STDARG__)
  92. #define __VA_START__(p,a) va_start(p,a)
  93. #else
  94. #define __VA_START__(p,a) va_start(p)
  95. #endif
  96. #endif
  97. #line 3
  98. #define mount _AST__mount
  99. #include <ast.h>
  100. #include "FEATURE/options"
  101. #include "FEATURE/dynamic"
  102. #include <shell.h>
  103. #include "shtable.h"
  104. #include "name.h"
  105. #include "exextra.h"
  106. #include "docall.h"
  107. #include "msgs.h"
  108. /*
  109. * This is the list of built-in shell variables and default values
  110. * and default attributes.
  111. */
  112. const struct shtable2 shtab_variables[] =
  113. {
  114. "PATH", 0, (char*)0,
  115. "PS1", 0, (char*)0,
  116. "PS2", NV_NOFREE, "> ",
  117. "IFS", NV_NOFREE, " \t\n",
  118. "PWD", 0, (char*)0,
  119. "HOME", 0, (char*)0,
  120. "MAIL", 0, (char*)0,
  121. "REPLY", 0, (char*)0,
  122. "SHELL", NV_NOFREE, "/bin/sh",
  123. "EDITOR", 0, (char*)0,
  124. "MAILCHECK", NV_NOFREE|NV_INTEGER, (char*)0,
  125. "RANDOM", NV_NOFREE|NV_INTEGER, (char*)0,
  126. "ENV", 0, (char*)0,
  127. "HISTFILE", 0, (char*)0,
  128. "HISTSIZE", 0, (char*)0,
  129. "HISTEDIT", NV_NOFREE, (char*)0,
  130. "HISTCMD", NV_NOFREE|NV_INTEGER, (char*)0,
  131. "FCEDIT", NV_NOFREE, "/bin/ed",
  132. "CDPATH", 0, (char*)0,
  133. "MAILPATH", 0, (char*)0,
  134. "PS3", NV_NOFREE, "#? ",
  135. "OLDPWD", 0, (char*)0,
  136. "VISUAL", 0, (char*)0,
  137. "COLUMNS", 0, (char*)0,
  138. "LINES", 0, (char*)0,
  139. "PPID", NV_NOFREE|NV_INTEGER, (char*)0,
  140. "_", NV_EXPORT, (char*)0,
  141. "TMOUT", NV_NOFREE|NV_INTEGER, (char*)0,
  142. "SECONDS", NV_NOFREE|NV_INTEGER|NV_DOUBLE, (char*)0,
  143. "LINENO", NV_NOFREE|NV_INTEGER, (char*)0,
  144. "OPTARG", 0, (char*)0,
  145. "OPTIND", NV_NOFREE|NV_INTEGER, (char*)0,
  146. "PS4", 0, (char*)0,
  147. "FPATH", 0, (char*)0,
  148. "LANG", 0, (char*)0,
  149. "LC_CTYPE", 0, (char*)0,
  150. "FIGNORE", 0, (char*)0,
  151. ".sh", 0, (char*)0,
  152. ".sh.edchar", 0, (char*)0,
  153. ".sh.edcol", 0, (char*)0,
  154. ".sh.edtext", 0, (char*)0,
  155. ".sh.edmode", 0, (char*)0,
  156. ".sh.name", 0, (char*)0,
  157. ".sh.subscript",0, (char*)0,
  158. ".sh.value", 0, (char*)0,
  159. ".sh.version", NV_NOFREE, (char*)(&e_version[5]),
  160. #ifdef SHOPT_FS_3D
  161. "VPATH", 0, (char*)0,
  162. #endif /* SHOPT_FS_3D */
  163. #ifdef SHOPT_VPIX
  164. "DOSPATH", 0, (char*)0,
  165. "VPIXDIR", 0, (char*)0,
  166. #endif /* SHOPT_VPIX */
  167. #ifdef MULTIBYTE
  168. "CSWIDTH", 0, (char*)0,
  169. #endif /* MULTIBYTE */
  170. #ifdef apollo
  171. "SYSTYPE", 0, (char*)0,
  172. #endif /* apollo */
  173. EXKSH_EXTRA_VAR
  174. "", 0, (char*)0
  175. };