Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] Re: WIN32 errno patch

From: Mikhail Terekhov <terekhov(at)emc(dot)com>
To: mag(at)fbab(dot)net, tgl(at)sss(dot)pgh(dot)pa(dot)us, pgman(at)candle(dot)pha(dot)pa(dot)us
Subject: Re: [HACKERS] Re: WIN32 errno patch
Date: 2001-08-21 20:31:45
Message-ID: 3B82C531.AE43B0E1@emc.com (view raw or flat)
Thread:
Lists: pgsql-committerspgsql-hackerspgsql-patches
Any chance to review/apply this patch?

Regards,
Mikhail Terekhov


Mikhail Terekhov wrote:
> 
> "Magnus Naeslund(f)" wrote:
> >
> > This is a multi-part message in MIME format.
> >
> > ------=_NextPart_000_0106_01C12801.00DAC460
> > Content-Type: text/plain; charset="iso-8859-1"
> > Content-Transfer-Encoding: 7bit
> >
> > Ok, where's a "system dependent hack" :)
> > It seems that win9x doesn't have the "netmsg.dll" so it defaults to "normal"
> > FormatMessage.
> > I wonder if one could load wsock32.dll or winsock.dll on those systems
> > instead of netmsg.dll.
> >
> > Mikhail, could you please test this code on your nt4 system?
> > Could someone else test this code on a win98/95 system?
> >
> > It works on win2k over here.
> >
> > (code attached)
> >
> > Magnus
> 
> It works on win2k here too but not on win98/95 or winNT.
> Anyway, attached is the patch which uses Magnus's my_sock_strerror
> function (renamed to winsock_strerror). The only difference is that
> I put the code to load and unload netmsg.dll in the libpqdll.c
> (is this OK Magnus?).
> 
> Regards
> Mikhail Terekhov
> 
>   --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>                      Name: libpq.patch.gz
>    libpq.patch.gz    Type: Gsview32 File (application/x-gzip)
>                  Encoding: base64

In response to

pgsql-hackers by date

Next:From: Tom LaneDate: 2001-08-21 20:50:04
Subject: Re: JDBC changes for 7.2... some questions...
Previous:From: Ian Lance TaylorDate: 2001-08-21 20:26:26
Subject: Re: List response time...

pgsql-committers by date

Next:From: Bruce Momjian - CVSDate: 2001-08-21 20:39:54
Subject: pgsql/src/interfaces/libpq fe-connect.c fe-exe ...
Previous:From: Tom LaneDate: 2001-08-21 18:21:29
Subject: Re: pgsql/src/pl/plpgsql/src Makefile

pgsql-patches by date

Next:From: Bruce MomjianDate: 2001-08-21 20:57:24
Subject: Re: Array Support Fix
Previous:From: Greg ZollerDate: 2001-08-21 20:12:20
Subject: Array Support Fix

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group