delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/01/11:06:32

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <cgf AT redhat DOT com>
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: <F536EC3453B2D411AD6100508BAF5F9901FAB400 AT bwga521a DOT ts DOT siemens DOT de>
Mime-Version: 1.0
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019