From root@judyspc.cs.su.oz Mon Aug 19 22:12:05 1985
Subject: Venix problems

When installing SUN III on an IBM PC XT running Venix (from
Venturcom - not the same as Xenix from Microsoft) I encountered
a few problems:


	#1: ctype doesn't flag space as printable

	#2: tolower fails when the char is already lower case

	#3: first #if using `defined' in a file fails (preprocessor bug)

	#4: stdio function `fopen' doesn't allow "r+" or "w+" modes

	#5: routine `fdopen' doesn't allocate an iob entry properly,
 	    next use of fopen overwrites iob used by previous fdopen

#1 and #2 were easily fixed by modifying ctype.h
#3 was fixed by putting a dummy use of "#if defined(...)" into site.h
#4 and #5 had to be fixed with a kludge. For #4 open the file with
fopen and open it again with "open(..,2)" and assign the new fd to the
right place in the _iob structure. For #5 do a dummy fopen before
using fdopen. Ugly but without sources there was little else to do.

I have reported these problems to the distributor,
they probably won't be present in the next release of venix
since it is supposedly based on System 5.

Bob.
