From owner-cvs-all Wed Apr 17 7:13:23 2002 Delivered-To: cvs-all@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id AF17E37B400; Wed, 17 Apr 2002 07:13:18 -0700 (PDT) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 4D0D35309; Wed, 17 Apr 2002 16:13:15 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Maxime Henrion Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/include Makefile kenv.h src/sys/alpha/alpha machdep.c src/sys/dev/acpica acpi.c acpi_timer.c src/sys/dev/mly mly.c src/sys/i386/i386 autoconf.c bios.c machdep.c src/sys/ia64/ia64 machdep.c src/sys/kern init_main.c init_sysent.c ... References: <200204171306.g3HD6aO65499@freefall.freebsd.org> From: Dag-Erling Smorgrav Date: 17 Apr 2002 16:13:15 +0200 In-Reply-To: <200204171306.g3HD6aO65499@freefall.freebsd.org> Message-ID: Lines: 21 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Maxime Henrion writes: > Log: > Rework the kernel environment subsystem. We now convert the static > environment needed at boot time to a dynamic subsystem when VM is > up. The dynamic kernel environment is protected by an sx lock. > > This adds some new functions to manipulate the kernel environment : > freeenv(), setenv(), unsetenv() and testenv(). freeenv() has to be > called after every getenv() when you have finished using the string. > testenv() only tests if an environment variable is present, and > doesn't require a freeenv() call. setenv() and unsetenv() are self > explanatory. > > The kenv(2) syscall exports these new functionalities to userland, > mainly for kenv(1). Hmm, this could form the basis for variable symlinks... DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message