From 3e14f97f673e8a630f076077de35afdd43dc1587 Mon Sep 17 00:00:00 2001 From: "Roger A. Faulkner" Date: Sat, 3 Apr 2010 09:48:44 -0700 Subject: 6939349 RFE: Update ksh93 to ast-ksh.2010-03-09 6877392 ksh93 regresses 'uniq -c' performance 6887363 Korn shell 93 sometimes mishandles return value of its child process 6900314 (while true ; do true|true ; done) hang in ioctl() with SIGTTOU 6904557 wc no longer counts number of bytes correctly 6904575 cut -d with multibyte character no longer works 6904597 paste -d no longer works with multibyte characters 6904780 /usr/bin/cksum changed output in snv_128 6904870 uniq -s does not skip multibyte characters correctly 6904878 join -t no longer works with multibyte char separator 6907460 EXIT trap handlers are sometimes executed twice 6909579 libast getopt solaris compatibility broken 6920072 ksh93 tail -f, with unconditional .25s sleep and line parsing, about 37x slower than cat 6932124 mktemp in ksh93 is broken Contributed by Olga Kryzhanovska --- usr/src/lib/libshell/common/include/defs.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'usr/src/lib/libshell/common/include/defs.h') 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 #include #include +#include "FEATURE/externs" #include "FEATURE/options" #include #include @@ -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 @@ -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 */ -- cgit v1.2.3