Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Mon, 1 Oct 2001 11:06:28 -0400
From: Christopher Faylor <cgf@redhat.com>
To: cygwin@cygwin.com
Subject: Re: How to make an errno from Win32-API GetLastError() result?
Message-ID: <20011001110628.E1878@redhat.com>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <F536EC3453B2D411AD6100508BAF5F9901FAB400@bwga521a.ts.siemens.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <F536EC3453B2D411AD6100508BAF5F9901FAB400@bwga521a.ts.siemens.de>
User-Agent: Mutt/1.3.21i

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/

