summaryrefslogtreecommitdiffstats
path: root/lib/libstand/environment.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix an inappropriate free of a non-dynamic value. While here, make themarcel2013-12-181-9/+12
| | | | | | | | | | | | | | | | | code more naive and robust: 1. When setting ev_value, also always set ev_flags appropriately 2. Always check ev_value and ev_flags before calling free. Both the value and the EV_DYNAMIC property can come directly from the consumers of the environment functionality, so it's good to be careful. And since this code is typically not looked at for long periods of time, it's good to have it be a little "dumb-looking". Trigger case for the bug: env_setenv("foo", 0, "1", NULL, NULL); env_setenv("foo", 0, "2", NULL, NULL); Obtained from: Juniper Networks, Inc.
* Switch to ANSI function prototypes in a few places.rodrigc2011-05-031-2/+3
| | | | Get rid of some unused parameter warnings.
* Fix typos - remove duplicate "the".brucec2011-02-211-1/+1
| | | | | | PR: bin/154928 Submitted by: Eitan Adler <lists at eitanadler.com> MFC after: 3 days
* Cast away const qualifier to squash GCC warning.kan2007-04-041-1/+1
|
* Preserve the constness of the value argument passed to env_setenv() aspeter2003-10-261-1/+1
| | | | it gets passed through the filter functions.
* Add __FBSDID()s to libstanddillon2001-09-301-3/+3
|
* Cleanup warnings by adding missint prototypes, removing unneeded duplicatejhb2000-08-031-3/+3
| | | | | | | prototypes, and adding in several 'const's. Also, add some missing $FreeBSD$'s. Found by: BDECFLAGS
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Replace the old and extremely icky Mach/NetBSD allocator with a similarlymsmith1998-09-261-34/+41
| | | | | | | | | | | | | | | | | compact and much better one donated by Matt Dillon. Implement a simple sbrk() which uses the existing setheap() api. Remove the custom allocator from the UFS code. It wasn't working quite right, and it shouldn't be needed with the new allocator. Fix a serious problem with changing the value of already-existent environment variables. Don't attempt to modify the supposedly-const argument to putenv() Fix an off-by-one sizing error in the zipfs code detected by the new allocator. Submitted by: zmalloc from Matt Dillon <dillon@backplane.com>
* This is libstand; a support library for standalone executables (eg. bootstrapmsmith1998-08-201-0/+212
modules). Obtained from: NetBSD, with some architectural changes and many additions.
OpenPOWER on IntegriCloud