From owner-freebsd-arch@FreeBSD.ORG Wed Jun 27 19:07:39 2007 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A96A016A400 for ; Wed, 27 Jun 2007 19:07:39 +0000 (UTC) (envelope-from rodrigc@c-71-192-57-29.hsd1.ma.comcast.net) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.200.83]) by mx1.freebsd.org (Postfix) with ESMTP id 732EE13C45E for ; Wed, 27 Jun 2007 19:07:39 +0000 (UTC) (envelope-from rodrigc@c-71-192-57-29.hsd1.ma.comcast.net) Received: from c-71-192-57-29.hsd1.ma.comcast.net ([71.192.57.29]) by comcast.net (sccrmhc13) with ESMTP id <20070627185631013005mtj7e>; Wed, 27 Jun 2007 18:56:32 +0000 Received: from c-71-192-57-29.hsd1.ma.comcast.net (localhost.crodrigues.org [127.0.0.1]) by c-71-192-57-29.hsd1.ma.comcast.net (8.14.1/8.14.1) with ESMTP id l5RIuiXr093223; Wed, 27 Jun 2007 14:56:44 -0400 (EDT) (envelope-from rodrigc@c-71-192-57-29.hsd1.ma.comcast.net) Received: (from rodrigc@localhost) by c-71-192-57-29.hsd1.ma.comcast.net (8.14.1/8.14.1/Submit) id l5RIuiW2093222; Wed, 27 Jun 2007 14:56:44 -0400 (EDT) (envelope-from rodrigc) Date: Wed, 27 Jun 2007 14:56:44 -0400 From: Craig Rodrigues To: "Sean C. Farley" Message-ID: <20070627185644.GB93140@crodrigues.org> References: <20070627130518.M12708@thor.farley.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070627130518.M12708@thor.farley.org> User-Agent: Mutt/1.4.2.2i Cc: freebsd-arch@FreeBSD.org Subject: Re: setenv() update in 7-CURRENT time frame X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2007 19:07:39 -0000 On Wed, Jun 27, 2007 at 01:29:23PM -0500, Sean C. Farley wrote: > Sean > 1. http://lists.freebsd.org/pipermail/freebsd-ports/2007-May/041577.html > 2. http://www.farley.org/freebsd/tmp/setenv/setenv.diff > -- > scf@FreeBSD.org Hi, I support your changes. I was TA'ing a Unix Systems Programming course last year, and it surprised me that when students wrote their assignments using setenv()/putenv() on Linux, that it was different from FreeBSD....in this case, Linux was standards-conformant and FreeBSD was not. It would be nice to make FreeBSD conformant as well. For what it's worth, on OS X/Darwin, it looks like they have made these functions standards conformant as well: char *getenv(const char *); int putenv(char *) __DARWIN_ALIAS(putenv); int setenv(const char *, const char *, int) __DARWIN_ALIAS(setenv); int unsetenv(const char *) __DARWIN_ALIAS(unsetenv); void unsetenv(const char *); -- Craig Rodrigues rodrigc@crodrigues.org