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: List-Subscribe: List-Archive: List-Post: List-Help: , 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: References: <7df53a72-cf45-a5df-45dd-6ea2b7d8e0ed AT redhat DOT com> From: Sam Habiel Date: Mon, 4 Jun 2018 16:22:52 -0400 Message-ID: Subject: Re: Help with C clearenv and setenv To: Ken Brown Cc: cygwin AT cygwin DOT com, Eric Blake Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes Thank you! On Mon, Jun 4, 2018 at 3:39 PM, Ken Brown 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