xref: /titanic_41/usr/src/lib/libshell/common/sh/defs.c (revision fcf3ce441efd61da9bb2884968af01cb7c1452cc)
1 /***********************************************************************
2 *                                                                      *
3 *               This software is part of the ast package               *
4 *           Copyright (c) 1982-2007 AT&T Knowledge Ventures            *
5 *                      and is licensed under the                       *
6 *                  Common Public License, Version 1.0                  *
7 *                      by AT&T Knowledge Ventures                      *
8 *                                                                      *
9 *                A copy of the License is available at                 *
10 *            http://www.opensource.org/licenses/cpl1.0.txt             *
11 *         (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9)         *
12 *                                                                      *
13 *              Information and Software Systems Research               *
14 *                            AT&T Research                             *
15 *                           Florham Park NJ                            *
16 *                                                                      *
17 *                  David Korn <dgk@research.att.com>                   *
18 *                                                                      *
19 ***********************************************************************/
20 /*
21  * Ksh - AT&T Labs
22  * Written by David Korn
23  * This file defines all the  read/write shell global variables
24  */
25 
26 #include	"defs.h"
27 #include	"jobs.h"
28 #include	"shlex.h"
29 #include	"edit.h"
30 #include	"timeout.h"
31 
32 struct sh_static	sh = {0};
33 #ifdef	__IMPORT__
34     struct sh_static	*_imp__sh = &sh;
35 #endif
36 
37 Dtdisc_t	_Nvdisc =
38 {
39 	offsetof(Namval_t,nvname), -1 , 0, 0, 0, nv_compare
40 };
41 
42 /* reserve room for writable state table */
43 char *sh_lexstates[ST_NONE] = {0};
44 
45 struct jobs	job = {0};
46 int32_t		sh_mailchk = 600;
47 
48