summaryrefslogtreecommitdiffstats
path: root/bin/kenv/kenv.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r309238,309239:delphij2016-12-121-12/+12
| | | | | r309238: Plug a potential memory leak. r309239: style(9).
* Constify parameters, no functional or binary change.delphij2013-05-151-6/+6
| | | | | Verified with: sha256(1) MFC after: 2 weeks
* Add a -v and -N option to kenv(1), so it can be more easily used inmdf2012-05-111-7/+21
| | | | | | | | | | | scripts the way sysctl(8) is. The -N option, like in sysctl(8), displays only the kenv names, not their values. The -v option prints an individual kenv variable name with its value as name="value". This is the inverse of sysctl(8)'s -n flag, since the default behaviour of kenv(1) is already like sysctl(8) -n. Submitted by: Garrett Cooper < yanegomi AT gmail DOT com > MFC after: 1 week
* Add missing `void' for function without arguments.ed2009-12-291-1/+1
|
* Add a "-q" quiet flag to kenv so that warnings can be suppressed.rwatson2005-09-131-8/+12
| | | | MFC after: 1 week
* /*- or .\"- or #- to begin license clauses.imp2005-01-101-1/+1
|
* Various quibbles:das2004-04-281-15/+28
| | | | | | | | | - Print a diagnostic if kdumpenv() fails. This can occur due to MAC restrictions or lack of memory. Catch all kenv(2) failures as well. - Just of the heck of it, DTRT if the kernel environment size changes at the wrong time. The old code could fail silently or fail to null-terminate a buffer if you got exceptionally unlucky. - Sort and GC the #includes.
* Consistently use FBSDIDobrien2002-06-301-2/+4
|
* Use the new functionalities provided by the kenv(2) syscall.mux2002-04-171-63/+104
| | | | Reviewed by: peter
* Deuglify the usage message by putting the program name after thedd2001-11-151-1/+2
| | | | | | | | "usage:" string. This is how most (all?) other programs in the system do it. PR: 31596 Submitted by: Cyrille Lefevre <clefevre@citeweb.net>
* Initial kenv(1) hack for dumping the kernel environment. This can bepeter2000-07-081-0/+131
used to extract modified boot hints to make loader(8)-time changes "sticky". It tries to use \ style quoting so that it can be used directly with foo.conf files. It can also extract specific variables.
OpenPOWER on IntegriCloud