delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/06/04/16:23:07

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:from:date
:message-id:subject:to:cc:content-type; q=dns; s=default; b=Al2K
gQyN1drGrZOiouCDqpRsQCzzA1rdrcOIaBBjityWkT+4xHmOmITN8T+dE7Xnwf7J
LKFAYtt/lM+mLWh/QonvH/EtI6Ho+cHwuxl75y5J+8TDg3NX4eiFiqCHHkBGYRnC
y0+jnuEdKCHNT5+QX6+holxXeY2zgb4YNTQDmV8=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:from:date
:message-id:subject:to:cc:content-type; s=default; bh=oMLobviPGu
Qz2OaSsdJ841nwju4=; b=Dp3W/4zdBJbLByOfsz77IJqgxTfhEZqub5Dm3PUEAN
zjE2knyv1M/YF2a6FYISsRNEeF9HwcfZ7gszF+JjGOKSVr8SLE8RmeJa5q1OTPqL
MH68F4AAEwQHyKAdx9fw+phX+jPPJPTPTqhLOuP38Uay2sWAEvGLINGzboPB4I7E
g=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=HX-Google-Smtp-Source:ADUXVKJ, you!
X-HELO: mail-wr0-f173.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Z+IqzDMRhOphtt4HUOA1XrJEMzB+uPgrm7+55Fyyss8=; b=FTBL0W8c3kQzW53h6+cvL+cZUTi4MTHXVW06sCr/0ogPY3bjK/JI05IwqGFqtAzTaB hOdzVQajuBq3o7lCPtUOj3zO8TgYohnihL01QcjG9EQAJy0QHF0rcyTwNC9YiU4IDAqK lcy4PwaD/pKaAfkZWKRHfMbx2Fg3Cbr/3h1i35i3ba06PbD2kJcldrxI6SaY/zYZ09kF r8AHPjMWjAYDv/fEdxckQuZGhhYO0tjd3j+ddqoexb7Ea42HPsKTXOCOlHcf4Bsa+QRr Z5FKaPsj0cpZEyLoDq6Hs/ztrbU5ZKS9H4KvXqX2DZhoxy9mppffrTu43skifGEVI3PZ lDIw==
X-Gm-Message-State: ALKqPwf5gHsRN3tkVCllVQ7e1oYiblgcWlXV24wBEHSYPPZxh511uMJ+ 8kCLPpb7dzXc+Db47vWJILcdWvPVsv4D7GFCcpA=
X-Google-Smtp-Source: ADUXVKJ/nkqjyMz/c0NsdxMu3kaoaJJpQN3m//Kyv3HQxt5xy6H1hQQiWMIi7KNWN7k2sKNsbdwqLMfbMs6yerUjmZ0=
X-Received: by 2002:adf:ae59:: with SMTP id u25-v6mr17086959wrd.157.1528143772954; Mon, 04 Jun 2018 13:22:52 -0700 (PDT)
MIME-Version: 1.0
In-Reply-To: <e029a690-11fa-ddb7-3702-9e513325b1bb@cornell.edu>
References: <CABHT962nB5jK2sNP9jGaVEbWGrvD72hBVN_q6xX9TKuq3yQ0Gg AT mail DOT gmail DOT com> <7df53a72-cf45-a5df-45dd-6ea2b7d8e0ed AT redhat DOT com> <e029a690-11fa-ddb7-3702-9e513325b1bb AT cornell DOT edu>
From: Sam Habiel <sam DOT habiel AT gmail DOT com>
Date: Mon, 4 Jun 2018 16:22:52 -0400
Message-ID: <CABHT960ssuKG9HQgwi=8R9qxFhmQTsieWbTKS1oZ9kTa-r=S4Q@mail.gmail.com>
Subject: Re: Help with C clearenv and setenv
To: Ken Brown <kbrown AT cornell DOT edu>
Cc: cygwin AT cygwin DOT com, Eric Blake <eblake AT redhat DOT com>
X-IsSubscribed: yes

Thank you!

On Mon, Jun 4, 2018 at 3:39 PM, Ken Brown <kbrown AT cornell DOT edu> wrote:
> On 5/31/2018 9:43 AM, Eric Blake wrote:
>>
>> On 05/30/2018 09:48 AM, Sam Habiel wrote:
>>>
>>> I have code for a database I am porting to Cygwin.
>>>
>>> Part of that code is a clearenv() then a couple of setenvs. There is
>>> an ifdef for Cygwin, as it doesn't implement clearenv.
>>
>>
>> It wouldn't be hard to implement clearenv() for a future release of
>> Cygwin, at least for a version that leaves environ pointing to a 1-element
>> array containing NULL.  A bit more effort and we could probably also support
>> glibc's notion of environ==NULL being shorthand for an empty environment;
>
>
> I've attempted to do this:
>
>   https://cygwin.com/ml/cygwin-patches/2018-q2/msg00024.html
>
> Ken

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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