Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 May 2007 14:07:03 -0500 (CDT)
From:      "Sean C. Farley" <sean-freebsd@farley.org>
To:        current@freebsd.org
Subject:   Re: HEADS DOWN (was Re: HEADS UP: putenv, setenv, unsetenv, getenv changes)
Message-ID:  <20070501135439.B36275@thor.farley.org>
In-Reply-To: <20070501160645.GA9333@nagual.pp.ru>
References:  <20070501003935.GA1043@nagual.pp.ru> <20070501083009.GA4627@nagual.pp.ru> <20070501160645.GA9333@nagual.pp.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 1 May 2007, Andrey Chernov wrote:

> All backed out.
>
> Not because I admit they are technically wrong and not because of bug
> reports (I receive nothing). But because I surprisingly meets so
> strong opposition and resistance so lost any desire to continue that.
>
> Anyone who interested in POSIX can dig out what changes and how
> through cvs diffs.

I am the one writing a replacement for the *env() functions.  I have a
BSD (mostly the same except unsetenv() returns an int) version and a
POSIX version.

Questions for developers to help me proceed:
1. Would POSIX or BSD be preferred?  By POSIX, I do not necessarily mean
    completely POSIX.  It can be some shade of gray.  For example, I
    added some checking to putenv() that is not mentioned in the POSIX
    spec but makes it closer to setenv() in its errors.
2. Would a series of stages to move from BSD to POSIX be
    acceptable/desired?  This is to avoid POSIX from overwhelming people.
3. How about dropping putenv() altogether?  :)  putenv() is ugly.  My
    changes currently prevent setenv() from leaking like a sieve, so the
    need for putenv() should not be as necessary.  It could also be that
    shade of gray where putenv() stayed the way it is (wrapper around
    setenv()) while the rest can be POSIX.

Sean
-- 
sean-freebsd@farley.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070501135439.B36275>