pcp
[Top] [All Lists]

pcp updates

To: pcp@xxxxxxxxxxx
Subject: pcp updates
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Thu, 17 Mar 2011 20:31:01 +1100 (EST)
Changes committed to git://oss.sgi.com/nathans/pcp.git

 src/include/platform_defs.h.in |    5 +-
 src/libpcp/src/err.c           |   24 +++++++++---
 src/libpcp/src/win32.c         |   78 +++++++++++++++++++++++++++++++++++++++++
 3 files changed, 99 insertions(+), 8 deletions(-)

commit 0f4944ced1b21eb39db05b0a71efa421ddfc9c59
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Thu Mar 17 20:18:20 2011 +1100

    Finally, Win32 socket error messages are reporting correctly.
    
    In a stroke of good fortune (finally) it turns out Win32 socket
    error codes don't quite overlap with PCP error codes (was quite
    a worried lad there for awhile), and it is possible to make them
    coexist peacefully.  Took alot of pain, but finally they are now
    being reported sensibly.
    
    The latest, and last for awhile hopefully, gotcha found and fixed
    here is that you cannot pass WSA (Windows sockets) errors to the
    generic errno strerror routine, even though they don't overlap -
    might be the format flags to FormatMessage Win32 API ... which is
    likely underlying strerror on Windows.

commit 344596b0c72694e5d03f940807eb9e53cee7b55e
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Wed Mar 16 16:52:35 2011 +1100

    Use errno directly on Windows, for oserror implementation.
    
    Turns out, several Windows CRT calls do not set the thread
    local errno stuff, so cannot be queried with the Win32 API,
    and need to use errno directly.

<Prev in Thread] Current Thread [Next in Thread>