From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Jeff Johnson <jeff(at)jeffjohnson(dot)net> |
Cc: | <pgsql-interfaces(at)postgresql(dot)org> |
Subject: | Re: libpq sockets on win32 |
Date: | 2001-06-04 18:24:23 |
Message-ID: | Pine.LNX.4.30.0106042021520.768-100000@peter.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs pgsql-interfaces |
Jeff Johnson writes:
> After some poking around, it looked like recv was setting errno to
> ENOENT for some reason. I figured out why today. Win32 sockets don't
> set errno at all. ENOENT was just left in errno from some earlier
> call.
There are already a few (wrong) attempts to cover this situation in
fe-connect.c, but it looks like a bunch of #ifdef's are needed.
> I haven't done much C coding in a few years and don't want to break
> other code by blindly doing:
>
> #define errno WSAGetLastError
Probably rather
#ifndef WIN32
normal code;
#else
windows code;
#endif
--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-06-04 18:29:38 | Re: [INTERFACES] libpq sockets on win32 |
Previous Message | Bruce Momjian | 2001-06-04 18:22:45 | Re: [INTERFACES] libpq sockets on win32 |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-06-04 18:29:38 | Re: [INTERFACES] libpq sockets on win32 |
Previous Message | Bruce Momjian | 2001-06-04 18:22:45 | Re: [INTERFACES] libpq sockets on win32 |