defs.c revision 3f54fd611f536639ec30dd53c48e5ec1897cc7d9
abd8dd44106c507dd2cb64359b63d7d56fa0a9c8Christian Maeder/***********************************************************************
abd8dd44106c507dd2cb64359b63d7d56fa0a9c8Christian Maeder* *
abd8dd44106c507dd2cb64359b63d7d56fa0a9c8Christian Maeder* This software is part of the ast package *
75a6279dbae159d018ef812185416cf6df386c10Till Mossakowski* Copyright (c) 1982-2011 AT&T Intellectual Property *
c00adad2e9459b422dee09e3a2bddba66b433bb7Christian Maeder* and is licensed under the *
abd8dd44106c507dd2cb64359b63d7d56fa0a9c8Christian Maeder* Eclipse Public License, Version 1.0 *
abd8dd44106c507dd2cb64359b63d7d56fa0a9c8Christian Maeder* by AT&T Intellectual Property *
abd8dd44106c507dd2cb64359b63d7d56fa0a9c8Christian Maeder* *
c00adad2e9459b422dee09e3a2bddba66b433bb7Christian Maeder* A copy of the License is available at *
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maeder* http://www.eclipse.org/org/documents/epl-v10.html *
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maeder* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
c00adad2e9459b422dee09e3a2bddba66b433bb7Christian Maeder* *
c00adad2e9459b422dee09e3a2bddba66b433bb7Christian Maeder* Information and Software Systems Research *
e8ffec0fa3d3061061bdc16e44247b9cf96b050fChristian Maeder* AT&T Research *
c00adad2e9459b422dee09e3a2bddba66b433bb7Christian Maeder* Florham Park NJ *
e8ffec0fa3d3061061bdc16e44247b9cf96b050fChristian Maeder* *
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maeder* David Korn <dgk@research.att.com> *
e8ffec0fa3d3061061bdc16e44247b9cf96b050fChristian Maeder* *
abd8dd44106c507dd2cb64359b63d7d56fa0a9c8Christian Maeder***********************************************************************/
abd8dd44106c507dd2cb64359b63d7d56fa0a9c8Christian Maeder/*
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maeder * Ksh - AT&T Labs
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maeder * Written by David Korn
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maeder * This file defines all the read/write shell global variables
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maeder */
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maeder
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maeder#include "defs.h"
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maeder#include "jobs.h"
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maeder#include "shlex.h"
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maeder#include "edit.h"
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maeder#include "timeout.h"
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maeder
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian MaederShell_t sh = {0};
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maederstruct shared *shgd;
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maeder#ifdef __IMPORT__
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maeder Shell_t *_imp__sh = &sh;
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maeder#endif
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maeder
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian MaederDtdisc_t _Nvdisc =
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maeder{
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maeder offsetof(Namval_t,nvname), -1 , 0, 0, 0, nv_compare
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maeder};
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maeder
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maeder/* reserve room for writable state table */
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maederchar *sh_lexstates[ST_NONE] = {0};
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maeder
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maederstruct jobs job = {0};
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maederint32_t sh_mailchk = 600;
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maeder
aff01ee50b66032469c232e00c945d1fd4f57d1bChristian Maeder