delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/05/02/12:01:31

X-Spam-Check-By: sourceware.org
Date: Tue, 2 May 2006 12:01:18 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Truncated Environment Variables? - using Cygwin + GetEnvironmentStrings() WIN32 API
Message-ID: <20060502160118.GC982@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <44576A04 DOT 3090409 AT arkasoft DOT com> <001201c66df5$46bca0e0$a501a8c0 AT CAM DOT ARTIMI DOT COM> <20060502155721 DOT GB982 AT trixie DOT casa DOT cgf DOT cx>
Mime-Version: 1.0
In-Reply-To: <20060502155721.GB982@trixie.casa.cgf.cx>
User-Agent: Mutt/1.5.11
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Tue, May 02, 2006 at 11:57:21AM -0400, Christopher Faylor wrote:
>That's usually a good idea but I just noticed that cygwin-internal
>doesn't set errno.  There is no reason why it would have to, really,
>since the interface is entirely local to cygwin and we can decide to do
>what we want.  However, I have changed it now so that it returns ENOSYS
>when it is returning -1.

To translate the above: I have changed the cygwin_internal function so
that when the function is given an argument that it doesn't understand
it will set errno to ENOSYS and return -1.  This is likely to happen
when a program is built with a newer version of cygwin but is trying to
retrieve information from an older DLL.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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