Date: 17 Apr 2002 16:13:15 +0200 From: Dag-Erling Smorgrav <des@ofug.org> To: Maxime Henrion <mux@FreeBSD.org> 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 ... Message-ID: <xzpsn5uv2f8.fsf@flood.ping.uio.no> In-Reply-To: <200204171306.g3HD6aO65499@freefall.freebsd.org> References: <200204171306.g3HD6aO65499@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Maxime Henrion <mux@FreeBSD.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpsn5uv2f8.fsf>