Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: errno in XS not propagating to $! - breaks Net::SSLeay

by cdarke (Prior)
on Feb 14, 2008 at 17:59 UTC ( [id://667987]=note: print w/replies, xml ) Need Help??


in reply to errno in XS not propagating to $! - breaks Net::SSLeay

Be careful of hacking the code, but a work-around might be, in the C:
SetLastError(ERROR_FILE_NOT_FOUND); instead of <code>errono=ENOENT; SetLastError(ERROR_INVALID_DATA); instead of <code>errno=EINVAL;
Be sure to #include <windows.h> and the error code will be available through $^E. Maybe that's what you did? Personally I stay away from the C RTL error handling in Windows XS.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://667987]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-25 08:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found