summaryrefslogtreecommitdiff
path: root/usr/src/lib/libshell/common/include/defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libshell/common/include/defs.h')
-rw-r--r--usr/src/lib/libshell/common/include/defs.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/usr/src/lib/libshell/common/include/defs.h b/usr/src/lib/libshell/common/include/defs.h
index 57c39b6dec..4520e31988 100644
--- a/usr/src/lib/libshell/common/include/defs.h
+++ b/usr/src/lib/libshell/common/include/defs.h
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1982-2009 AT&T Intellectual Property *
+* Copyright (c) 1982-2010 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
@@ -31,6 +31,7 @@
#include <ast.h>
#include <sfio.h>
#include <error.h>
+#include "FEATURE/externs"
#include "FEATURE/options"
#include <cdt.h>
#include <history.h>
@@ -57,6 +58,9 @@
# define env_delete(e,p) env_change()
#endif
+extern char* sh_getenv(const char*);
+extern char* sh_setenviron(const char*);
+
/*
* note that the first few fields have to be the same as for
* Shscoped_t in <shell.h>
@@ -170,6 +174,8 @@ struct limits
unsigned char lastsig; /* last signal received */ \
char subshare; /* set when in ${..} comsub */ \
char toomany; /* set when out of fd's */ \
+ char instance; /* in set_instance */ \
+ char decomma; /* decimal_point=',' */ \
char *readscript; /* set before reading a script */ \
int *inpipe; /* input pipe pointer */ \
int *outpipe; /* output pipe pointer */ \
@@ -337,6 +343,10 @@ struct limits
# define PIPE_BUF 512
#endif
+#if SHOPT_PFSH && ( !_lib_getexecuser || !_lib_free_execattr )
+# undef SHOPT_PFSH
+#endif
+
#define MATCH_MAX 64
#define SH_READEVAL 0x4000 /* for sh_eval */