X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f From: sandmann AT clio DOT rice DOT edu (Charles Sandmann) Message-Id: <10408102240.AA89930@clio.rice.edu> Subject: Re: Fix for environ pollution To: djgpp-workers AT delorie DOT com Date: Tue, 10 Aug 2004 17:40:06 -0500 (CDT) In-Reply-To: from "Esa A E Peuha" at Aug 10, 2004 01:59:24 PM X-Mailer: ELM [version 2.5 PL2] Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavis-20030616-p6 at mail.rice.edu X-DCC--Metrics: handler4.mail.rice.edu 1066; Body=1 Fuz1=1 Fuz2=1 Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > As Brian Ingals noticed, the variable environ currently pollutes the > namespace. The solution is obvious: change all references to environ > to _environ in the library, and move its declaration from crt1.c to > djgpp.djl which can then provide environ to those programs that expect > it. Here's a patch to do it: Instead of putting environ in djgpp.djl, could we use a define statement in a header outside the ansi and posix definitions? I am not familiar with the pros and cons of PROVIDE. There were some other symbols listed in a later email also which were also in the namespace