From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 121840 invoked by alias); 4 Jun 2018 20:22:57 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 121002 invoked by uid 89); 4 Jun 2018 20:22:56 -0000 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 Received: from mail-wr0-f173.google.com (HELO mail-wr0-f173.google.com) (209.85.128.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 04 Jun 2018 20:22:55 +0000 Received: by mail-wr0-f173.google.com with SMTP id y15-v6so45482038wrg.11 for ; Mon, 04 Jun 2018 13:22:54 -0700 (PDT) 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 Received: by 2002:a1c:9a96:0:0:0:0:0 with HTTP; Mon, 4 Jun 2018 13:22:52 -0700 (PDT) In-Reply-To: References: <7df53a72-cf45-a5df-45dd-6ea2b7d8e0ed@redhat.com> From: Sam Habiel Date: Mon, 04 Jun 2018 20:22:00 -0000 Message-ID: Subject: Re: Help with C clearenv and setenv To: Ken Brown Cc: cygwin@cygwin.com, Eric Blake Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2018-06/txt/msg00020.txt.bz2 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