head 1.8; access; symbols pkgsrc-2026Q1:1.8.0.192 pkgsrc-2026Q1-base:1.8 pkgsrc-2025Q4:1.8.0.190 pkgsrc-2025Q4-base:1.8 pkgsrc-2025Q3:1.8.0.188 pkgsrc-2025Q3-base:1.8 pkgsrc-2025Q2:1.8.0.186 pkgsrc-2025Q2-base:1.8 pkgsrc-2025Q1:1.8.0.184 pkgsrc-2025Q1-base:1.8 pkgsrc-2024Q4:1.8.0.182 pkgsrc-2024Q4-base:1.8 pkgsrc-2024Q3:1.8.0.180 pkgsrc-2024Q3-base:1.8 pkgsrc-2024Q2:1.8.0.178 pkgsrc-2024Q2-base:1.8 pkgsrc-2024Q1:1.8.0.176 pkgsrc-2024Q1-base:1.8 pkgsrc-2023Q4:1.8.0.174 pkgsrc-2023Q4-base:1.8 pkgsrc-2023Q3:1.8.0.172 pkgsrc-2023Q3-base:1.8 pkgsrc-2023Q2:1.8.0.170 pkgsrc-2023Q2-base:1.8 pkgsrc-2023Q1:1.8.0.168 pkgsrc-2023Q1-base:1.8 pkgsrc-2022Q4:1.8.0.166 pkgsrc-2022Q4-base:1.8 pkgsrc-2022Q3:1.8.0.164 pkgsrc-2022Q3-base:1.8 pkgsrc-2022Q2:1.8.0.162 pkgsrc-2022Q2-base:1.8 pkgsrc-2022Q1:1.8.0.160 pkgsrc-2022Q1-base:1.8 pkgsrc-2021Q4:1.8.0.158 pkgsrc-2021Q4-base:1.8 pkgsrc-2021Q3:1.8.0.156 pkgsrc-2021Q3-base:1.8 pkgsrc-2021Q2:1.8.0.154 pkgsrc-2021Q2-base:1.8 pkgsrc-2021Q1:1.8.0.152 pkgsrc-2021Q1-base:1.8 pkgsrc-2020Q4:1.8.0.150 pkgsrc-2020Q4-base:1.8 pkgsrc-2020Q3:1.8.0.148 pkgsrc-2020Q3-base:1.8 pkgsrc-2020Q2:1.8.0.144 pkgsrc-2020Q2-base:1.8 pkgsrc-2020Q1:1.8.0.124 pkgsrc-2020Q1-base:1.8 pkgsrc-2019Q4:1.8.0.146 pkgsrc-2019Q4-base:1.8 pkgsrc-2019Q3:1.8.0.142 pkgsrc-2019Q3-base:1.8 pkgsrc-2019Q2:1.8.0.140 pkgsrc-2019Q2-base:1.8 pkgsrc-2019Q1:1.8.0.138 pkgsrc-2019Q1-base:1.8 pkgsrc-2018Q4:1.8.0.136 pkgsrc-2018Q4-base:1.8 pkgsrc-2018Q3:1.8.0.134 pkgsrc-2018Q3-base:1.8 pkgsrc-2018Q2:1.8.0.132 pkgsrc-2018Q2-base:1.8 pkgsrc-2018Q1:1.8.0.130 pkgsrc-2018Q1-base:1.8 pkgsrc-2017Q4:1.8.0.128 pkgsrc-2017Q4-base:1.8 pkgsrc-2017Q3:1.8.0.126 pkgsrc-2017Q3-base:1.8 pkgsrc-2017Q2:1.8.0.122 pkgsrc-2017Q2-base:1.8 pkgsrc-2017Q1:1.8.0.120 pkgsrc-2017Q1-base:1.8 pkgsrc-2016Q4:1.8.0.118 pkgsrc-2016Q4-base:1.8 pkgsrc-2016Q3:1.8.0.116 pkgsrc-2016Q3-base:1.8 pkgsrc-2016Q2:1.8.0.114 pkgsrc-2016Q2-base:1.8 pkgsrc-2016Q1:1.8.0.112 pkgsrc-2016Q1-base:1.8 pkgsrc-2015Q4:1.8.0.110 pkgsrc-2015Q4-base:1.8 pkgsrc-2015Q3:1.8.0.108 pkgsrc-2015Q3-base:1.8 pkgsrc-2015Q2:1.8.0.106 pkgsrc-2015Q2-base:1.8 pkgsrc-2015Q1:1.8.0.104 pkgsrc-2015Q1-base:1.8 pkgsrc-2014Q4:1.8.0.102 pkgsrc-2014Q4-base:1.8 pkgsrc-2014Q3:1.8.0.100 pkgsrc-2014Q3-base:1.8 pkgsrc-2014Q2:1.8.0.98 pkgsrc-2014Q2-base:1.8 pkgsrc-2014Q1:1.8.0.96 pkgsrc-2014Q1-base:1.8 pkgsrc-2013Q4:1.8.0.94 pkgsrc-2013Q4-base:1.8 pkgsrc-2013Q3:1.8.0.92 pkgsrc-2013Q3-base:1.8 pkgsrc-2013Q2:1.8.0.90 pkgsrc-2013Q2-base:1.8 pkgsrc-2013Q1:1.8.0.88 pkgsrc-2013Q1-base:1.8 pkgsrc-2012Q4:1.8.0.86 pkgsrc-2012Q4-base:1.8 pkgsrc-2012Q3:1.8.0.84 pkgsrc-2012Q3-base:1.8 pkgsrc-2012Q2:1.8.0.82 pkgsrc-2012Q2-base:1.8 pkgsrc-2012Q1:1.8.0.80 pkgsrc-2012Q1-base:1.8 pkgsrc-2011Q4:1.8.0.78 pkgsrc-2011Q4-base:1.8 pkgsrc-2011Q3:1.8.0.76 pkgsrc-2011Q3-base:1.8 pkgsrc-2011Q2:1.8.0.74 pkgsrc-2011Q2-base:1.8 pkgsrc-2011Q1:1.8.0.72 pkgsrc-2011Q1-base:1.8 pkgsrc-2010Q4:1.8.0.70 pkgsrc-2010Q4-base:1.8 pkgsrc-2010Q3:1.8.0.68 pkgsrc-2010Q3-base:1.8 pkgsrc-2010Q2:1.8.0.66 pkgsrc-2010Q2-base:1.8 pkgsrc-2010Q1:1.8.0.64 pkgsrc-2010Q1-base:1.8 pkgsrc-2009Q4:1.8.0.62 pkgsrc-2009Q4-base:1.8 pkgsrc-2009Q3:1.8.0.60 pkgsrc-2009Q3-base:1.8 pkgsrc-2009Q2:1.8.0.58 pkgsrc-2009Q2-base:1.8 pkgsrc-2009Q1:1.8.0.56 pkgsrc-2009Q1-base:1.8 pkgsrc-2008Q4:1.8.0.54 pkgsrc-2008Q4-base:1.8 pkgsrc-2008Q3:1.8.0.52 pkgsrc-2008Q3-base:1.8 cube-native-xorg:1.8.0.50 cube-native-xorg-base:1.8 pkgsrc-2008Q2:1.8.0.48 pkgsrc-2008Q2-base:1.8 cwrapper:1.8.0.46 pkgsrc-2008Q1:1.8.0.44 pkgsrc-2008Q1-base:1.8 pkgsrc-2007Q4:1.8.0.42 pkgsrc-2007Q4-base:1.8 pkgsrc-2007Q3:1.8.0.40 pkgsrc-2007Q3-base:1.8 pkgsrc-2007Q2:1.8.0.38 pkgsrc-2007Q2-base:1.8 pkgsrc-2007Q1:1.8.0.36 pkgsrc-2007Q1-base:1.8 pkgsrc-2006Q4:1.8.0.34 pkgsrc-2006Q4-base:1.8 pkgsrc-2006Q3:1.8.0.32 pkgsrc-2006Q3-base:1.8 pkgsrc-2006Q2:1.8.0.30 pkgsrc-2006Q2-base:1.8 pkgsrc-2006Q1:1.8.0.28 pkgsrc-2006Q1-base:1.8 pkgsrc-2005Q4:1.8.0.26 pkgsrc-2005Q4-base:1.8 pkgsrc-2005Q3:1.8.0.24 pkgsrc-2005Q3-base:1.8 pkgsrc-2005Q2:1.8.0.22 pkgsrc-2005Q2-base:1.8 pkgsrc-2005Q1:1.8.0.20 pkgsrc-2005Q1-base:1.8 pkgsrc-2004Q4:1.8.0.18 pkgsrc-2004Q4-base:1.8 pkgsrc-2004Q3:1.8.0.16 pkgsrc-2004Q3-base:1.8 pkgsrc-2004Q2:1.8.0.14 pkgsrc-2004Q2-base:1.8 pkgsrc-2004Q1:1.8.0.12 pkgsrc-2004Q1-base:1.8 pkgsrc-2003Q4:1.8.0.10 pkgsrc-2003Q4-base:1.8 netbsd-1-6-1:1.8.0.6 netbsd-1-6-1-base:1.8 netbsd-1-6:1.8.0.8 netbsd-1-6-RELEASE-base:1.8 pkgviews:1.8.0.4 pkgviews-base:1.8 buildlink2:1.8.0.2 buildlink2-base:1.8 netbsd-1-5-PATCH003:1.8 netbsd-1-5-PATCH001:1.8 netbsd-1-5-RELEASE:1.5 netbsd-1-4-PATCH003:1.5 netbsd-1-4-PATCH002:1.5 comdex-fall-1999:1.5 netbsd-1-4-PATCH001:1.5 netbsd-1-4-RELEASE:1.5 netbsd-1-3-PATCH003:1.3 FreeBSD-current-1998-06-05:1.1.1.1 FREEBSD:1.1.1; locks; strict; comment @# @; 1.8 date 2000.11.13.14.34.40; author abs; state Exp; branches; next 1.7; 1.7 date 2000.11.13.10.26.16; author abs; state Exp; branches; next 1.6; 1.6 date 2000.11.10.16.57.25; author abs; state Exp; branches; next 1.5; 1.5 date 99.04.20.18.59.48; author tron; state Exp; branches; next 1.4; 1.4 date 99.04.20.18.39.34; author tron; state Exp; branches; next 1.3; 1.3 date 98.08.07.11.11.03; author agc; state Exp; branches; next 1.2; 1.2 date 98.08.03.20.54.47; author tron; state Exp; branches; next 1.1; 1.1 date 98.06.09.16.36.39; author agc; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 98.06.09.16.36.39; author agc; state Exp; branches; next ; desc @@ 1.8 log @Fix build on ELF sparc systems but testing on __ELF__ or SVR4, not just SVR4 @ text @$NetBSD$ --- Imakefile.orig Thu Oct 26 14:28:32 2000 +++ Imakefile @@@@ -1,7 +1,7 @@@@ #define IHaveSubdirs #define PassCDebugFlags -SUBDIRS = libvncauth vncviewer vncpasswd vncconnect +SUBDIRS = libvncauth vncpasswd vncconnect World: make Makefiles @@@@ -9,8 +9,7 @@@@ make all @@echo "" @@echo Built $(SUBDIRS). - @@echo 'To build Xvnc, do "cd Xvnc", followed by "make World"' - @@echo "" + (cd Xvnc && make World) MakeSubdirs($(SUBDIRS)) DependSubdirs($(SUBDIRS)) @ 1.7 log @Update to vnc-3.3.3.2 Changes since 3.3.3.1: vncconnect New helper program for Xvnc, which causes it to make reverse connections to a listening VNC viewer. This is similar to WinVNC's "Add New Client" / -connect feature. Xvnc New option -inetd incorporating Andre Moreira's iXvnc functionality. Fix to hextile encoding, thanks to Michael A. Fetterman - this may be the cause of the "0 bpp problem". New connect out feature by using the vncconnect command. Fix some non-ascii capitalisation issues, thanks to Vlad Harchev. Fix bounding box calculation for arcs. Other minor bug fixes. vncserver Sets DISPLAY to use unix domain socket if possible (:dpynum rather than host:dpynum). Option -kill should now work if you give it $DISPLAY as an argument. vncviewer Fix Xaw string copy bug, thanks to Tim Waugh - this fixes the problems with the password dialog with recent versions of linux @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.6 2000/11/10 16:57:25 abs Exp $ d3 1 a3 1 --- Imakefile.orig Mon May 18 14:18:46 1998 @ 1.6 log @Split out vncviwer into its own package. Depend on it @ text @d1 1 a1 1 $NetBSD$ d9 2 a10 2 -SUBDIRS = libvncauth vncviewer vncpasswd +SUBDIRS = libvncauth vncpasswd @ 1.5 log @Back out unintended commit. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.3 1998/08/07 11:11:03 agc Exp $ d3 21 a23 15 *** Xvnc/config/cf/NetBSD.cf.orig Tue Jul 28 14:19:10 1998 --- Xvnc/config/cf/NetBSD.cf Tue Jul 28 12:45:19 1998 *************** *** 373,377 **** * Definition for compiling on Alpha machines */ #ifdef AlphaArchitecture ! #define BuildServer NO #endif --- 373,377 ---- * Definition for compiling on Alpha machines */ #ifdef AlphaArchitecture ! #define BuildServer YES #endif @ 1.4 log @Define deprecated "unix" symbol. @ text @d1 1 a1 1 $NetBSD$ d3 15 a17 18 --- Xvnc/config/cf/NetBSD.cf.orig Sat Jul 26 08:30:39 1997 +++ Xvnc/config/cf/NetBSD.cf Tue Apr 20 20:20:09 1999 @@@@ -88,7 +88,7 @@@@ #define MkdirHierCmd mkdir -p #define CppCmd /usr/libexec/cpp -#define StandardCppDefines -traditional +#define StandardCppDefines -traditional -Dunix #define PreProcessCmd CppCmd #define PreIncDir /usr/include @@@@ -373,5 +373,5 @@@@ * Definition for compiling on Alpha machines */ #ifdef AlphaArchitecture -#define BuildServer NO +#define BuildServer YES #endif @ 1.3 log @Add NetBSD RCS Ids. @ text @d3 18 a20 15 *** Xvnc/config/cf/NetBSD.cf.orig Tue Jul 28 14:19:10 1998 --- Xvnc/config/cf/NetBSD.cf Tue Jul 28 12:45:19 1998 *************** *** 373,377 **** * Definition for compiling on Alpha machines */ #ifdef AlphaArchitecture ! #define BuildServer NO #endif --- 373,377 ---- * Definition for compiling on Alpha machines */ #ifdef AlphaArchitecture ! #define BuildServer YES #endif @ 1.2 log @Update VNC to version 3.3.2 using patches supplied by Jeff Rizzo in PR pkg/5868. @ text @d1 2 @ 1.1 log @Initial revision @ text @d1 15 a15 561 diff -ruN ../old/Imakefile ./Imakefile --- ../old/Imakefile Thu Jan 22 12:18:18 1998 +++ ./Imakefile Tue Feb 24 22:30:41 1998 @@@@ -12,5 +12,5 @@@@ DependSubdirs($(SUBDIRS)) all:: - (set -e; cd Xvnc; unset MAKEFLAGS MAKELEVEL; \ + (set +e; unset MAKEFLAGS MAKELEVEL; set -e; cd Xvnc; \ ./vncxmkmf; make Makefiles; make depend; make all ) diff -ruN ../old/Xvnc/config/FreeBSD.cf ./Xvnc/config/FreeBSD.cf --- ../old/Xvnc/config/FreeBSD.cf Wed Dec 31 16:00:00 1969 +++ ./Xvnc/config/FreeBSD.cf Tue Feb 24 23:42:33 1998 @@@@ -0,0 +1,100 @@@@ +XCOMM platform: $XConsortium: FreeBSD.cf /main/10 1996/01/22 17:35:30 gildea $ + +#ifndef OSName +#define OSName FreeBSD 2.1 +#endif +#ifndef OSVendor +#define OSVendor Walnut Creek CD-ROM +#endif +XCOMM operating system: OSName +#ifndef OSMajorVersion +#define OSMajorVersion 2 +#endif +#ifndef OSMinorVersion +#define OSMinorVersion 1 +#endif +#ifndef OSTeenyVersion +#define OSTeenyVersion 0 +#endif + +#define HasPutenv YES +#define HasBSD44Sockets YES + +#define CppCmd /usr/libexec/cpp -traditional +#define PreProcessCmd /usr/libexec/cpp -traditional +#undef InstallCmd +#define InstallCmd /usr/bin/install + +#define UseGas YES +#ifndef GccUsesGas +# define GccUsesGas YES +#endif + +#ifndef AsmDefines +# define AsmDefines -DUSE_GAS +#endif + +#if GccUsesGas +# define GccGasOption -DGCCUSESGAS +#else +# define GccGasOption /**/ +#endif + +#ifndef HasGcc2 +# define HasGcc2 YES +#endif + +#define MkdirHierCmd mkdir -p + +#define CcCmd gcc +#ifndef DefaultCCOptions +#define DefaultCCOptions -pipe +#endif + +#ifdef i386Architecture +#define OptimizedCDebugFlags -m486 -O2 -fno-strength-reduce +#else +#define OptimizedCDebugFlags -O2 +#endif + +#if OSMajorVersion > 1 +#define ServerOSDefines XFree86ServerOSDefines +#define XawI18nDefines -DUSE_XWCHAR_STRING +#define HasMakefileSafeInclude YES +#define IncludeMakefile(file) @@@@# dependencies are in .depend +#define DependFileName .depend +#ifndef ExtraLibraries +#define ExtraLibraries -lz +#endif +#else +#define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DXNO_SYSCONF +#define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC +#ifndef ExtraLibraries +#define ExtraLibraries /* -lmalloc */ +#endif +#endif + +#define ServerExtraDefines GccGasOption XFree86ServerDefines + +#define StandardDefines -DCSRG_BASED + +#define TroffCmd groff -Tps +#define SetTtyGroup YES +#define HasNdbm YES +#define HasShm YES +#define HasWChar32 YES + +#define HasLibCrypt YES + +#define AvoidNullMakeCommand YES + +#define BuildServer YES +#define XF86SVGAServer NO +#define XvncServer YES +#define ProjectRoot /usr/X11R6 + +#include + +#ifdef i386Architecture +#include +#endif diff -ruN ../old/Xvnc/config/bsdLib.rules ./Xvnc/config/bsdLib.rules --- ../old/Xvnc/config/bsdLib.rules Wed Dec 31 16:00:00 1969 +++ ./Xvnc/config/bsdLib.rules Tue Feb 24 22:30:41 1998 @@@@ -0,0 +1,93 @@@@ +XCOMM $XConsortium: bsdLib.rules /main/2 1996/01/24 06:38:15 kaleb $ + +/* + * NetBSD/FreeBSD shared library rules + */ + +#ifndef HasSharedLibraries +#define HasSharedLibraries YES +#endif +#ifndef SharedDataSeparation +#define SharedDataSeparation NO +#endif +#ifndef SharedCodeDef +#define SharedCodeDef +#endif +#ifndef SharedLibraryDef +#define SharedLibraryDef -DBSDSHLIB +#endif +#ifndef ShLibIncludeFile +#define ShLibIncludeFile +#endif +#ifndef SharedLibraryLoadFlags +#define SharedLibraryLoadFlags -Bshareable +#endif +#ifndef PositionIndependentCFlags +#define PositionIndependentCFlags -fpic +#endif + +/* + * InstallSharedLibrary - generate rules to install the shared library. + */ +#ifndef InstallSharedLibrary +#define InstallSharedLibrary(libname,rev,dest) @@@@\ +install:: Concat(lib,libname.so.rev) @@@@\ + MakeDir($(DESTDIR)dest) @@@@\ + $(INSTALL) -c $(INSTLIBFLAGS) Concat(lib,libname.so.rev) $(DESTDIR)dest +@@@@\ + +#endif /* InstallSharedLibrary */ + +/* + * NormalSharedLibraryTarget - generate rules to create a shared library; + * build it into a different name so that the we do not hose people by having + * the library gone for long periods. + */ +#ifndef SharedLibraryTarget +#define SharedLibraryTarget(libname,rev,solist,down,up) @@@@\ +AllTarget(Concat(lib,libname.so.rev)) @@@@\ + @@@@\ +Concat(lib,libname.so.rev): solist @@@@\ + $(RM) $@@~ @@@@\ + (cd down; $(LD) -o up/$@@~ $(SHLIBLDFLAGS) solist $(REQUIREDLIBS)) @@@@\ + $(RM) $@@ @@@@\ + $(MV) $@@~ $@@ @@@@\ + LinkBuildLibrary($@@) @@@@\ + @@@@\ +clean:: @@@@\ + $(RM) Concat(lib,libname.so.rev) + +#endif /* SharedLibraryTarget */ + +/* + * SharedLibraryDataTarget - generate rules to create shlib data file; + */ +#ifndef SharedLibraryDataTarget +#define SharedLibraryDataTarget(libname,rev,salist) +#endif /* SharedLibraryDataTarget */ + +#ifndef InstallSharedLibraryData +#define InstallSharedLibraryData(libname,rev,dest) +#endif /* InstallSharedLibraryData */ + +/* + * SharedLibReferences - variables for shared libraries + */ +#ifndef SharedLibReferences +#define SharedLibReferences(varname,libname,libsource,revname,rev) @@@@\ +revname = rev @@@@\ +Concat3(DEP,varname,LIB) = SharedLibDependencies(libname,libsource,revname) @@@@\ +Concat(varname,LIB) = LoaderLibPrefix Concat(-l,libname) @@@@\ +LintLibReferences(varname,libname,libsource) +#endif + +/* + * SharedDSLibReferences - variables for shared libraries + */ +#ifndef SharedDSLibReferences +#define SharedDSLibReferences(varname,libname,libsource,revname,rev) @@@@\ +revname = rev @@@@\ +Concat3(DEP,varname,LIB) = SharedDSLibDependencies(libname,libsource,revname) @@@@\ +Concat(varname,LIB) = LoaderLibPrefix Concat(-l,libname) Concat3(Shared,libname,Reqs) @@@@\ +LintLibReferences(varname,libname,libsource) +#endif diff -ruN ../old/Xvnc/config/bsdLib.tmpl ./Xvnc/config/bsdLib.tmpl --- ../old/Xvnc/config/bsdLib.tmpl Wed Dec 31 16:00:00 1969 +++ ./Xvnc/config/bsdLib.tmpl Tue Feb 24 22:30:41 1998 @@@@ -0,0 +1,15 @@@@ +XCOMM $XConsortium: bsdLib.tmpl,v 1.2 95/01/23 19:07:12 kaleb Exp $ + +/* + * NetBSD/FreeBSD shared library template + */ + +#ifndef SharedXtReqs +#define SharedXtReqs /**/ +#endif +#ifndef SharedXawReqs +#define SharedXawReqs /**/ +#endif +#ifndef SharedXmuReqs +#define SharedXmuReqs $(LDPRELIB) $(XTOOLONLYLIB) $(XONLYLIB) +#endif diff -ruN ../old/Xvnc/lib/font/bitmap/bitmapfunc.c ./Xvnc/lib/font/bitmap/bitmapfunc.c --- ../old/Xvnc/lib/font/bitmap/bitmapfunc.c Tue Jan 20 04:38:40 1998 +++ ./Xvnc/lib/font/bitmap/bitmapfunc.c Tue Feb 24 23:15:16 1998 @@@@ -53,8 +53,11 @@@@ static BitmapFileFunctionsRec readers[] = { pcfReadFont, pcfReadFontInfo, pcfReadFont, pcfReadFontInfo, + pcfReadFont, pcfReadFontInfo, snfReadFont, snfReadFontInfo, snfReadFont, snfReadFontInfo, + snfReadFont, snfReadFontInfo, + bdfReadFont, bdfReadFontInfo, bdfReadFont, bdfReadFontInfo, bdfReadFont, bdfReadFontInfo, }; @@@@ -71,6 +74,10 @@@@ BitmapOpenBitmap, BitmapOpenScalable, BitmapGetInfoBitmap, BitmapGetInfoScalable, 0, CAPABILITIES, + ".pcf.gz", 7, + BitmapOpenBitmap, BitmapOpenScalable, + BitmapGetInfoBitmap, BitmapGetInfoScalable, 0, + CAPABILITIES, ".snf", 4, BitmapOpenBitmap, BitmapOpenScalable, BitmapGetInfoBitmap, BitmapGetInfoScalable, 0, @@@@ -79,11 +86,19 @@@@ BitmapOpenBitmap, BitmapOpenScalable, BitmapGetInfoBitmap, BitmapGetInfoScalable, 0, CAPABILITIES, + ".snf.gz", 7, + BitmapOpenBitmap, BitmapOpenScalable, + BitmapGetInfoBitmap, BitmapGetInfoScalable, 0, + CAPABILITIES, ".bdf", 4, BitmapOpenBitmap, BitmapOpenScalable, BitmapGetInfoBitmap, BitmapGetInfoScalable, 0, CAPABILITIES, ".bdf.Z", 6, + BitmapOpenBitmap, BitmapOpenScalable, + BitmapGetInfoBitmap, BitmapGetInfoScalable, 0, + CAPABILITIES, + ".bdf.gz", 7, BitmapOpenBitmap, BitmapOpenScalable, BitmapGetInfoBitmap, BitmapGetInfoScalable, 0, CAPABILITIES, diff -ruN ../old/Xvnc/lib/font/fontfile/Imakefile ./Xvnc/lib/font/fontfile/Imakefile --- ../old/Xvnc/lib/font/fontfile/Imakefile Tue Jan 20 04:38:42 1998 +++ ./Xvnc/lib/font/fontfile/Imakefile Tue Feb 24 23:27:48 1998 @@@@ -8,10 +8,10 @@@@ #endif SRCS = dirfile.c fontdir.c fontfile.c fileio.c fontscale.c \ defaults.c bitsource.c register.c renderers.c \ - bufio.c decompress.c filewr.c + bufio.c decompress.c filewr.c gunzip.c OBJS = dirfile.o fontdir.o fontfile.o fileio.o fontscale.o \ defaults.o bitsource.o register.o renderers.o \ - bufio.o decompress.o filewr.o + bufio.o decompress.o filewr.o gunzip.o SubdirLibraryRule($(OBJS)) NormalLibraryObjectRule() diff -ruN ../old/Xvnc/lib/font/fontfile/fileio.c ./Xvnc/lib/font/fontfile/fileio.c --- ../old/Xvnc/lib/font/fontfile/fileio.c Tue Jan 20 04:38:42 1998 +++ ./Xvnc/lib/font/fontfile/fileio.c Wed Feb 25 13:09:47 1998 @@@@ -62,6 +62,13 @@@@ return 0; } raw = cooked; + } else if (len > 3 && !strcmp(name + len - 3, ".gz")) { + cooked = BufFilePushZIP (raw); + if (!cooked) { + BufFileClose (raw, TRUE); + return 0; + } + raw = cooked; } return (FontFilePtr) raw; } diff -ruN ../old/Xvnc/lib/font/fontfile/gunzip.c ./Xvnc/lib/font/fontfile/gunzip.c --- ../old/Xvnc/lib/font/fontfile/gunzip.c Wed Dec 31 16:00:00 1969 +++ ./Xvnc/lib/font/fontfile/gunzip.c Tue Feb 24 23:12:36 1998 @@@@ -0,0 +1,224 @@@@ +/* $XConsortium: gunzip.c /main/1 1996/11/03 19:33:23 kaleb $ */ +/* lib/font/fontfile/gunzip.c + written by Mark Eichin September 1996. + intended for inclusion in X11 public releases. */ + +#include "fontmisc.h" +#include +#include + +typedef struct _xzip_buf { + z_stream z; + int zstat; + BufChar b[BUFFILESIZE]; + BufChar b_in[BUFFILESIZE]; + BufFilePtr f; +} xzip_buf; + +static int BufZipFileSkip(); /* f, count */ +static int BufZipFileFill(); /* read: f; write: char, f */ +static int BufZipFileClose(); /* f, flag */ +static int BufCheckZipHeader(); /* f */ + +BufFilePtr +BufFilePushZIP (f) + BufFilePtr f; +{ + xzip_buf *x; + + x = (xzip_buf *) xalloc (sizeof (xzip_buf)); + if (!x) return 0; + /* these are just for raw calloc/free */ + x->z.zalloc = Z_NULL; + x->z.zfree = Z_NULL; + x->z.opaque = Z_NULL; + x->f = f; + + /* force inflateInit to allocate it's own history buffer */ + x->z.next_in = Z_NULL; + x->z.next_out = Z_NULL; + x->z.avail_in = x->z.avail_out = 0; + + /* using negative windowBits sets "nowrap" mode, which turns off + zlib header checking [undocumented, for gzip compatibility only?] */ + x->zstat = inflateInit2(&(x->z), -MAX_WBITS); + if (x->zstat != Z_OK) { + xfree(x); + return 0; + } + + /* now that the history buffer is allocated, we provide the data buffer */ + x->z.next_out = x->b; + x->z.avail_out = BUFFILESIZE; + x->z.next_out = x->b_in; + x->z.avail_in = 0; + + if (BufCheckZipHeader(x->f)) { + xfree(x); + return 0; + } + + return BufFileCreate(x, + BufZipFileFill, + BufZipFileSkip, + BufZipFileClose); +} + +static int BufZipFileClose(f, flag) + BufFilePtr f; + int flag; +{ + xzip_buf *x = (xzip_buf *)f->private; + inflateEnd (&(x->z)); + BufFileClose (x->f, flag); + xfree (x); + return 1; +} + +/* here's the real work. + -- we need to put stuff in f.buffer, update f.left and f.bufp, + then return the first byte (or BUFFILEEOF). + -- to do this, we need to get stuff into avail_in, and next_in, + and call inflate appropriately. + -- we may also need to add CRC maintenance - if inflate tells us + Z_STREAM_END, we then have 4bytes CRC and 4bytes length... + gzio.c:gzread shows most of the mechanism. + */ +static int BufZipFileFill (f) + BufFilePtr f; +{ + xzip_buf *x = (xzip_buf *)f->private; + + /* we only get called when left == 0... */ + /* but just in case, deal */ + if (f->left >= 0) { + f->left--; + return *(f->bufp++); + } + /* did we run out last time? */ + switch (x->zstat) { + case Z_OK: + break; + case Z_STREAM_END: + case Z_DATA_ERROR: + case Z_ERRNO: + return BUFFILEEOF; + default: + return BUFFILEEOF; + } + /* now we work to consume what we can */ + /* let zlib know what we can handle */ + x->z.next_out = x->b; + x->z.avail_out = BUFFILESIZE; + + /* and try to consume all of it */ + while (x->z.avail_out > 0) { + /* if we don't have anything to work from... */ + if (x->z.avail_in == 0) { + /* ... fill the z buf from underlying file */ + int i, c; + for (i = 0; i < sizeof(x->b_in); i++) { + c = BufFileGet(x->f); + if (c == BUFFILEEOF) break; + x->b_in[i] = c; + } + x->z.avail_in += i; + x->z.next_in = x->b_in; + } + /* so now we have some output space and some input data */ + x->zstat = inflate(&(x->z), Z_NO_FLUSH); + /* the inflation output happens in the f buffer directly... */ + if (x->zstat == Z_STREAM_END) { + /* deal with EOF, crc */ + break; + } + if (x->zstat != Z_OK) { + break; + } + } + f->bufp = x->b; + f->left = BUFFILESIZE - x->z.avail_out; + + if (f->left >= 0) { + f->left--; + return *(f->bufp++); + } else { + return BUFFILEEOF; + } +} + +/* there should be a BufCommonSkip... */ +static int BufZipFileSkip (f, c) + BufFilePtr f; + int c; +{ + /* BufFileRawSkip returns the count unchanged. + BufCompressedSkip returns 0. + That means it probably never gets called... */ + int retval = c; + while(c--) { + int get = BufFileGet(f); + if (get == BUFFILEEOF) return get; + } + return retval; +} + +/* now we need to duplicate check_header */ +/* contents: + 0x1f, 0x8b -- magic number + 1 byte -- method (Z_DEFLATED) + 1 byte -- flags (mask with RESERVED -> fail) + 4 byte -- time (discard) + 1 byte -- xflags (discard) + 1 byte -- "os" code (discard) + [if flags & EXTRA_FIELD: + 2 bytes -- LSBfirst length n + n bytes -- extra data (discard)] + [if flags & ORIG_NAME: + n bytes -- null terminated name (discard)] + [if flags & COMMENT: + n bytes -- null terminated comment (discard)] + [if flags & HEAD_CRC: + 2 bytes -- crc of headers? (discard)] + */ + +/* gzip flag byte -- from gzio.c */ +#define ASCII_FLAG 0x01 /* bit 0 set: file probably ascii text */ +#define HEAD_CRC 0x02 /* bit 1 set: header CRC present */ +#define EXTRA_FIELD 0x04 /* bit 2 set: extra field present */ +#define ORIG_NAME 0x08 /* bit 3 set: original file name present */ +#define COMMENT 0x10 /* bit 4 set: file comment present */ +#define RESERVED 0xE0 /* bits 5..7: reserved */ + +#define GET(f) do {c = BufFileGet(f); if (c == BUFFILEEOF) return c;} while(0) +static int BufCheckZipHeader(f) + BufFilePtr f; +{ + int c, flags; + GET(f); if (c != 0x1f) return 1; /* magic 1 */ + GET(f); if (c != 0x8b) return 2; /* magic 2 */ + GET(f); if (c != Z_DEFLATED) return 3; /* method */ + GET(f); if (c & RESERVED) return 4; /* reserved flags */ + flags = c; + GET(f); GET(f); GET(f); GET(f); /* time */ + GET(f); /* xflags */ + GET(f); /* os code */ + if (flags & EXTRA_FIELD) { + int len; + GET(f); len = c; + GET(f); len += (c<<8); + while (len-- >= 0) { + GET(f); + } + } + if (flags & ORIG_NAME) { + do { GET(f); } while (c != 0); + } + if (flags & COMMENT) { + do { GET(f); } while (c != 0); + } + if (flags & HEAD_CRC) { + GET(f); GET(f); /* header crc */ + } + return 0; +} diff -ruN ../old/Xvnc/lib/font/include/bufio.h ./Xvnc/lib/font/include/bufio.h --- ../old/Xvnc/lib/font/include/bufio.h Tue Jan 20 04:38:42 1998 +++ ./Xvnc/lib/font/include/bufio.h Tue Feb 24 23:16:12 1998 @@@@ -55,6 +55,7 @@@@ extern BufFilePtr BufFileCreate (); extern BufFilePtr BufFileOpenRead (), BufFileOpenWrite (); extern BufFilePtr BufFilePushCompressed (); +extern BufFilePtr BufFilePushZip (); extern int BufFileClose (); extern int BufFileFlush (); #define BufFileGet(f) ((f)->left-- ? *(f)->bufp++ : (*(f)->io) (f)) diff -ruN ../old/Xvnc/programs/Xserver/hw/vnc/auth.c ./Xvnc/programs/Xserver/hw/vnc/auth.c --- ../old/Xvnc/programs/Xserver/hw/vnc/auth.c Wed Jan 21 10:12:44 1998 +++ ./Xvnc/programs/Xserver/hw/vnc/auth.c Tue Feb 24 22:30:41 1998 @@@@ -24,6 +24,9 @@@@ * USA. */ +#ifdef __FreeBSD__ +# include +#endif #include #include #include @ 1.1.1.1 log @Initial import of vnc 3.3.1, which displays X11 and Win32 desktops on remote X11/Win32/Java displays, into the NetBSD packages collection. Taken from the FreeBSD port, but modified slightly to find correct paths. @ text @@