Re: PATCH: CygWin port enhancement

From: Guido Serassio <serassio@dont-contact.us>
Date: Wed, 15 Aug 2001 10:39:44 +0200

Il 00.16 15/08/2001 Robert Collins ha scritto:
>On 15 Aug 2001 00:09:51 +0200, Guido Serassio wrote:
> > Hi Robert,
> >
> > Il 00.00 15/08/2001 Robert Collins ha scritto:
> > >On 14 Aug 2001 18:22:50 +0200, Guido Serassio wrote:
> > > > Hi,
> > > >
> > > > This patch allows squid to use the hosts file from the right Windows
> > > > directory when /etc/host is not found.
> > > > The same stuff can be make in squid.conf, but with this patch the
> things
> > > > are automatic at runtime, so multi boot installations can be more
> easily
> > > > supported.
> > > > Works on all WIN32 platforms.
> > > >
> > > > Other changes:
> > > >
> > > > - Better GetOSVersion function, more squid "aware".
> > > > - Fixed compile warning in comm.c
> > > > - Changed exit() WIN32 hook, now less intrusive
> > > >
> > > > Can it please go into HEAD? Everything is #ifdef'd or otherwise
> protected.
> > >
> > >Looks good to me. Nice work Guido.
> > >
> > >One teeny comment - cygwin doesn't run on win3.1/win32s - so unless you
> > >are planning a win3.1/win32s port youself that code OS could/should be
> > >treated as unknown :}.
> > >
> > >Rob
> >
> > Now WIN32s is correctly recognized from GetOSVersion (In theory ..., who
> > has a Windows 3.1 with WIN32s ???).
> >
> > If You think that can be useful, i can simply add a check for it in
> > WIN32_Subsystem_Init and abort the startup of Squid (If Cygwin doesn't
> > abort before ...).
>
>Personally, I'd remove the case VER_PLATFORM_WIN32S - as you say *who*
>has such a beast these days (and would get cygwin running properly
>first!.

I have just added a trap in WIN32_Subsystem_Init() for unknown or
unsupported (WIN32s) Windows version.
I prefer to keep the WIN32s check because I like to have distinct all WIN32
platforms.

Plus, I have added the check for Windows XP (= NT 5.1) and future Windowvs
revision.

Now I make a new patch.

Guido

-
=======================================================
Serassio Guido
Via Albenga, 11/4 10134 - Torino - ITALY
Tel. : +39.011.610749
E-mail: serassio@interfree.it
         serassio@libero.it
WWW: http://www.serassio.it
Received on Wed Aug 15 2001 - 02:39:52 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:11 MST