aboutsummaryrefslogtreecommitdiff
path: root/lib/libstand/environment.c
Commit message (Collapse)AuthorAgeFilesLines
* Move lib/libstand to sys/boot/libsaWarner Losh2017-10-121-223/+0
| | | | | | | | | | Move the sources to sys/boot. Make adjustments related to the move. Kill LIBSTAND_SRC since it's no longer needed. Sponsored by: Netflix Notes: svn path=/head/; revision=324551
* Fix an inappropriate free of a non-dynamic value. While here, make theMarcel Moolenaar2013-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. Notes: svn path=/head/; revision=259561
* Switch to ANSI function prototypes in a few places.Craig Rodrigues2011-05-031-2/+3
| | | | | | | Get rid of some unused parameter warnings. Notes: svn path=/head/; revision=221358
* Fix typos - remove duplicate "the".Rebecca Cran2011-02-211-1/+1
| | | | | | | | | PR: bin/154928 Submitted by: Eitan Adler <lists at eitanadler.com> MFC after: 3 days Notes: svn path=/head/; revision=218909
* Cast away const qualifier to squash GCC warning.Alexander Kabaev2007-04-041-1/+1
| | | | Notes: svn path=/head/; revision=168348
* Preserve the constness of the value argument passed to env_setenv() asPeter Wemm2003-10-261-1/+1
| | | | | | | it gets passed through the filter functions. Notes: svn path=/head/; revision=121532
* Add __FBSDID()s to libstandMatthew Dillon2001-09-301-3/+3
| | | | Notes: svn path=/head/; revision=84221
* Cleanup warnings by adding missint prototypes, removing unneeded duplicateJohn Baldwin2000-08-031-3/+3
| | | | | | | | | | prototypes, and adding in several 'const's. Also, add some missing $FreeBSD$'s. Found by: BDECFLAGS Notes: svn path=/head/; revision=64185
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Replace the old and extremely icky Mach/NetBSD allocator with a similarlyMike Smith1998-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> Notes: svn path=/head/; revision=39665
* This is libstand; a support library for standalone executables (eg. bootstrapMike Smith1998-08-201-0/+212
modules). Obtained from: NetBSD, with some architectural changes and many additions. Notes: svn path=/cvs2svn/branches/MSMITH/; revision=38451