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

Re: [HACKERS] Re: WIN32 errno patch

From: Mikhail Terekhov <terekhov(at)emc(dot)com>
To: "Magnus Naeslund(f)" <mag(at)fbab(dot)net>, tgl(at)sss(dot)pgh(dot)pa(dot)us
Subject: Re: [HACKERS] Re: WIN32 errno patch
Date: 2001-08-20 16:31:49
Message-ID: 3B813B75.A0CD1F05@emc.com (view raw or flat)
Thread:
Lists: pgsql-committerspgsql-hackerspgsql-patches

"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

Attachment: libpq.patch.gz
Description: application/x-gzip (3.8 KB)

In response to

Responses

pgsql-hackers by date

Next:From: Mikheev, VadimDate: 2001-08-20 16:39:42
Subject: RE: User locks code
Previous:From: Nicolas VergerDate: 2001-08-20 16:11:28
Subject: RE: Select parser at runtime ....

pgsql-committers by date

Next:From: Bruce Momjian - CVSDate: 2001-08-20 20:37:19
Subject: pgsql/doc FAQ src/FAQ/FAQ.html
Previous:From: Vince VielhaberDate: 2001-08-20 15:19:54
Subject: [WEBMASTER] 'www/html index.html'

pgsql-patches by date

Next:From: Garrett WollmanDate: 2001-08-20 16:46:29
Subject: Re: Patch: use SCM_CREDS authentication over PF_LOCAL sockets
Previous:From: Bruce MomjianDate: 2001-08-20 16:29:26
Subject: Re: pgcrypto update

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