This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: How to make an errno from Win32-API GetLastError() result?
On Mon, Oct 01, 2001 at 10:02:16AM +0200, Kandziora Jan wrote:
>Does Cygwin provide a way to map the result of GetLastError() to the errno
>variable?
No.
There is code in cygwin itself which translates between windows errors and errno
but it is not exported for users to use.
You can inspect the code in CVS via the web, here:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/errno.cc?rev=1.23&content-type=text/x-cvsweb-markup&cvsroot=src
Or, you can check out the cygwin sources using the instructions given here:
http://cygwin.com/cvs.html
cgf
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/