[Spread-users] [BUG][PATCH] fd to session troubles

Ben Laurie ben at algroup.co.uk
Mon Feb 4 12:56:20 EST 2002

Marc Zyngier wrote:
> >>>>> "JS" == Jonathan Stanton <jonathan at cnds.jhu.edu> writes:
> JS> On Mon, Feb 04, 2002 at 02:39:53PM +0100, Marc Zyngier wrote:
> JS> I know using the WSA error stuff is "better" on windows, but isn't
> JS> there at least a backwands compatible Posix errno error reporting
> JS> that I can enable as default until everything is converted? It
> JS> seems odd that windows has most of the posix/unix stuff (at least
> JS> as a compatibility layer) but doesn't do error reporting the same
> JS> way.
> Nope... Given that sockets are *not* included in Posix.1 (which is the
> only posix-ism windows ever tried to support), it is not really
> surprising. Sockets are completly isolated from the rest of the
> libc. Error codes do not match with libc and I've just been taught by
> our great WindowsGuru (hi Pascal ! :-) that there is in fact at least
> 3 levels of errors (errno for libc, GetLastError for win32 and
> WSAGetLastError for winsock) which are completly independant...
> Fun, isn't it ?

Note that 'nix does this too, at least to two levels, with herrno...




http://www.apache-ssl.org/ben.html       http://www.thebunker.net/

"There is no limit to what a man can do or how far he can go if he
doesn't mind who gets the credit." - Robert Woodruff

More information about the Spread-users mailing list