Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Mon, 1 Oct 2001 11:06:28 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: How to make an errno from Win32-API GetLastError() result? Message-ID: <20011001110628.E1878@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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/