Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
att
GitHub Repository: att/ast
Path: blob/master/src/cmd/ksh93/sh/defs.c
1810 views
1
/***********************************************************************
2
* *
3
* This software is part of the ast package *
4
* Copyright (c) 1982-2011 AT&T Intellectual Property *
5
* and is licensed under the *
6
* Eclipse Public License, Version 1.0 *
7
* by AT&T Intellectual Property *
8
* *
9
* A copy of the License is available at *
10
* http://www.eclipse.org/org/documents/epl-v10.html *
11
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
12
* *
13
* Information and Software Systems Research *
14
* AT&T Research *
15
* Florham Park NJ *
16
* *
17
* David Korn <[email protected]> *
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
Shell_t sh = {0};
33
struct shared *shgd;
34
#ifdef __IMPORT__
35
Shell_t *_imp__sh = &sh;
36
#endif
37
38
Dtdisc_t _Nvdisc =
39
{
40
offsetof(Namval_t,nvname), -1 , 0, 0, 0, nv_compare
41
};
42
43
/* reserve room for writable state table */
44
char *sh_lexstates[ST_NONE] = {0};
45
46
struct jobs job = {0};
47
int32_t sh_mailchk = 600;
48
49
50