mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Remove AT&T UWIN support code
UWIN was David Korn's UNIX emulation layer for Microsoft Windows. It was never very well known, certainly not like Cygwin or Microsoft SFU/Interix. It was a very interesting system that exposed the Windows registry to the file system, making it UNIX-like, and that natively used ksh and all the AST utilities. Regrettably, it appears to be dead and buried. Only 32-bit binaries can still be found in the wild, as well as the source code at: https://github.com/att/uwin The latter does not seem to be usable since (as far as I can tell) it requires a UWIN environment with a compiler to build, and UWIN binaries with a compiler are simply nowhere to be found. The activity level on that repo (which is zero) also shows how much interest there still is in this project. And of course the supporting code in this repo is almost certainly broken by now as we've never been able to test it on a UWIN system. The AST team clearly cared about it since roughly 8k lines of code are dedicated to its support, disabled (directly or indirectly) on non-UWIN systems via the _UWIN macro. This removes all that.
This commit is contained in:
parent
7ba2c68525
commit
d9a85caf22
149 changed files with 108 additions and 8676 deletions
|
|
@ -682,64 +682,6 @@ use) case $1 in
|
|||
32|64) bit=$1 ;;
|
||||
esac
|
||||
shift
|
||||
|
||||
# HOSTTYPE specific setup
|
||||
|
||||
case $HOSTTYPE in
|
||||
win32.*)sys=uwin
|
||||
wow=$(uname -i)
|
||||
case $bit in
|
||||
32) case $HOSTTYPE in
|
||||
*-64) HOSTTYPE=${HOSTTYPE%-64} ;;
|
||||
esac
|
||||
;;
|
||||
64) case $HOSTTYPE in
|
||||
*-64) ;;
|
||||
*) HOSTTYPE=$HOSTTYPE-64 ;;
|
||||
esac
|
||||
case $wow in
|
||||
*/32) err_out "cannot build $bit-bit on $wow $sys" ;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
case $bit in
|
||||
'') PS1="($sys) " ;;
|
||||
*) PS1="($sys-$bit) " ;;
|
||||
esac
|
||||
|
||||
$exec umask 002
|
||||
$exec unset MAKESKIP
|
||||
|
||||
P=$PWD
|
||||
A=$P/arch/$HOSTTYPE
|
||||
|
||||
$exec export CDPATH=:..:$A/src/cmd:$A/src/lib:$A/src/uwin:$P/lib/package
|
||||
$exec export INSTALLROOT=$A
|
||||
$exec export PACKAGEROOT=$P
|
||||
$exec export PATH=$A/bin:$P/bin:$PATH
|
||||
$exec export PS1="$PS1"
|
||||
$exec export VPATH=$A:$P
|
||||
$exec export nativepp=/usr/lib
|
||||
|
||||
if test -n "$INSTALLROOT" && test -d "$INSTALLROOT/include/ast"
|
||||
then $exec export PACKAGE_ast=$INSTALLROOT
|
||||
elif test -d ${PWD%/*}/ast/arch/$HOSTTYPE
|
||||
then $exec export PACKAGE_ast=${PWD%/*}/ast/arch/$HOSTTYPE
|
||||
fi
|
||||
|
||||
# run the command
|
||||
|
||||
case $# in
|
||||
0) case $show in
|
||||
':') $exec exec $SHELL ;;
|
||||
esac
|
||||
;;
|
||||
*) $exec exec $SHELL -c "$@"
|
||||
;;
|
||||
esac
|
||||
exit
|
||||
;;
|
||||
esac
|
||||
PACKAGEROOT=$PWD
|
||||
$show export PACKAGEROOT
|
||||
esac
|
||||
|
|
|
|||
|
|
@ -37,9 +37,6 @@ done
|
|||
for i in $probe_header
|
||||
do echo "#include <$i>"
|
||||
done
|
||||
echo '#ifdef _UWIN'
|
||||
echo "int _Pr0b3_uwin=_UWIN;"
|
||||
echo '#endif'
|
||||
echo '#ifdef __BORLANDC__'
|
||||
echo "int _Pr0b3_version_BORLAND=__BORLANDC__;"
|
||||
echo '#endif'
|
||||
|
|
@ -67,7 +64,6 @@ echo '#endif'
|
|||
} > easy.c
|
||||
|
||||
include=
|
||||
uwin=
|
||||
|
||||
$cc -E easy.c 2>&1 |
|
||||
egrep -i '^(#(line)? 1 .*\.[hH]| *int +_Pr0b3_[a-zA-Z_]* *= *[0-9])' |
|
||||
|
|
@ -213,18 +209,10 @@ CC.STATIC = -Bstatic
|
|||
then stdlib="$stdlib $d"
|
||||
fi
|
||||
done
|
||||
case $uwin in
|
||||
[0-9]*) cat <<!
|
||||
CC.STDINCLUDE = /usr/include $stdinc
|
||||
CC.STDLIB = /usr/lib$lib $stdlib
|
||||
!
|
||||
;;
|
||||
*) cat <<!
|
||||
cat <<!
|
||||
CC.STDINCLUDE = $stdinc
|
||||
CC.STDLIB = $stdlib
|
||||
!
|
||||
;;
|
||||
esac
|
||||
cat <<!
|
||||
CC.STRICT =
|
||||
CC.STRIP = strip
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
hdr nc,exec_attr
|
||||
mem exception.name,_exception.name math.h
|
||||
lib setreuid,setregid,nice,fork,spawnveg,fchdir
|
||||
lib pathnative,pathposix,uwin_path,uwin_unpath,fts_notify
|
||||
lib pathnative,pathposix,fts_notify
|
||||
lib memcntl sys/mman.h
|
||||
lib getexecuser,free_execattr exec_attr.h -lsecdb
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
#include "defs.h"
|
||||
|
||||
#if !defined(SHOPT_SPAWN)
|
||||
# if _UWIN || _use_spawnveg
|
||||
# if _use_spawnveg
|
||||
# define SHOPT_SPAWN 1
|
||||
# endif
|
||||
#endif /* !SHOPT_SPAWN */
|
||||
|
|
|
|||
|
|
@ -44,20 +44,6 @@ static Dtdisc_t _Refdisc =
|
|||
offsetof(struct Namref,np),sizeof(struct Namval_t*),sizeof(struct Namref)
|
||||
};
|
||||
|
||||
#if !_lib_pathnative && _lib_uwin_path
|
||||
|
||||
#define _lib_pathnative 1
|
||||
|
||||
extern int uwin_path(const char*, char*, int);
|
||||
|
||||
size_t
|
||||
pathnative(const char* path, char* buf, size_t siz)
|
||||
{
|
||||
return uwin_path(path, buf, siz);
|
||||
}
|
||||
|
||||
#endif /* _lib_pathnative */
|
||||
|
||||
static void attstore(Namval_t*,void*);
|
||||
static void pushnam(Namval_t*,void*);
|
||||
static char *staknam(Namval_t*, char*);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue