getsockopt() SO_ERROR optval mapping

Jason Tishler Jason.Tishler@dothill.com
Mon Apr 2 12:08:00 GMT 2001


This patch maps getsockopt() SO_ERROR optval's from their Winsock versions to
their corresponding errno versions.  This prevents strerror(optval) from
generating cryptic messages like:

    error 10061

instead of:

    Connection refused

Jason

-- 
Jason Tishler
Director, Software Engineering       Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corp.               Fax:   +1 (732) 264-8798
82 Bethany Road, Suite 7             Email: Jason.Tishler@dothill.com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com


More information about the Cygwin-patches mailing list