xref: /onnv-gate/usr/src/lib/libshell/common/sh/defs.c (revision 12068:08a39a083754)
14887Schin /***********************************************************************
24887Schin *                                                                      *
34887Schin *               This software is part of the ast package               *
4*12068SRoger.Faulkner@Oracle.COM *          Copyright (c) 1982-2010 AT&T Intellectual Property          *
54887Schin *                      and is licensed under the                       *
64887Schin *                  Common Public License, Version 1.0                  *
78462SApril.Chin@Sun.COM *                    by AT&T Intellectual Property                     *
84887Schin *                                                                      *
94887Schin *                A copy of the License is available at                 *
104887Schin *            http://www.opensource.org/licenses/cpl1.0.txt             *
114887Schin *         (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9)         *
124887Schin *                                                                      *
134887Schin *              Information and Software Systems Research               *
144887Schin *                            AT&T Research                             *
154887Schin *                           Florham Park NJ                            *
164887Schin *                                                                      *
174887Schin *                  David Korn <dgk@research.att.com>                   *
184887Schin *                                                                      *
194887Schin ***********************************************************************/
204887Schin /*
214887Schin  * Ksh - AT&T Labs
224887Schin  * Written by David Korn
234887Schin  * This file defines all the  read/write shell global variables
244887Schin  */
254887Schin 
264887Schin #include	"defs.h"
274887Schin #include	"jobs.h"
284887Schin #include	"shlex.h"
294887Schin #include	"edit.h"
304887Schin #include	"timeout.h"
314887Schin 
328462SApril.Chin@Sun.COM Shell_t			sh = {0};
334887Schin #ifdef	__IMPORT__
348462SApril.Chin@Sun.COM     Shell_t		*_imp__sh = &sh;
354887Schin #endif
364887Schin 
374887Schin Dtdisc_t	_Nvdisc =
384887Schin {
394887Schin 	offsetof(Namval_t,nvname), -1 , 0, 0, 0, nv_compare
404887Schin };
414887Schin 
424887Schin /* reserve room for writable state table */
434887Schin char *sh_lexstates[ST_NONE] = {0};
444887Schin 
454887Schin struct jobs	job = {0};
464887Schin int32_t		sh_mailchk = 600;
474887Schin 
48