summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_environment.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix an inverted test csae. Success of getenv() is determined by a returnjhb2001-10-251-1/+1
| | | | | | | value of !NUL rather than NUL. Submitted by: luigi Pointy hat to: jhb
* - Change getenv_quad() to return an int instead of a quad_t since itjhb2001-10-231-1/+21
| | | | | | returns an success/failure code rather than the actual value. - Add getenv_string() which copies a string from the environment to another string and returns true on success.
* Make MAXTSIZ, DFLDSIZ, MAXDSIZ, DFLSSIZ, MAXSSIZ, SGROWSIZ loaderps2001-10-101-0/+8
| | | | | | | tunable. Reviewed by: peter MFC after: 2 weeks
* Add a pointer to kenv(1).peter2001-09-211-0/+3
|
* Revert last commit. The same functionality can be obtained through thejlemon2001-09-211-26/+27
| | | | 'kenv' command, which I obviously was unaware of.
* Add a sysctl MIB 'kern.env', that dumps the contents of the kerneljlemon2001-09-201-27/+26
| | | | | environment from the loader, as well as the kernel's compiled in static hints.
* Fix some warnings in kern_environment.c. Make the getenv*() familypeter2001-06-151-3/+3
| | | | | | take a const 'name', since they dont modify anything. 159: warning: passing arg 1 of `getenv_int' discards qualifiers... 167: warning: passing arg 1 of `getenv' discards qualifiers from pointer..
* "Fix" the previous initial attempt at fixing TUNABLE_INT(). This timepeter2001-06-081-0/+15
| | | | | | | around, use a common function for looking up and extracting the tunables from the kernel environment. This saves duplicating the same function over and over again. This way typically has an overhead of 8 bytes + the path string, versus about 26 bytes + the path string.
* Previous commit changing SYSCTL_HANDLER_ARGS violated KNF.phk2000-07-041-1/+1
| | | | Pointed out by: bde
* Style police catches up with rev 1.26 of src/sys/sys/sysctl.h:phk2000-07-031-1/+1
| | | | | | | | Sanitize SYSCTL_HANDLER_ARGS so that simplistic tools can grog our sources: -sysctl_vm_zone SYSCTL_HANDLER_ARGS +sysctl_vm_zone (SYSCTL_HANDLER_ARGS)
* Change the prototype of the strto* routines to make the secondarchie1999-11-241-2/+3
| | | | | | | | | | | parameter a char ** instead of a const char **. This make these kernel routines consistent with the corresponding libc userland routines. Which is actually 'correct' is debatable, but consistency and following the spec was deemed more important in this case. Reviewed by (in concept): phk, bde
* add in actual getenv_quad functionmjacob1999-11-071-1/+17
|
* Trim unused options (or #ifdef for undoc options).peter1999-10-111-1/+0
| | | | Submitted by: phk
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Fix warnings related to -Wall -Wcast-qualdillon1999-01-281-2/+2
|
* Fix getenv() comparison against '=' ... was *cp = '=' instead ofdillon1999-01-271-2/+2
| | | | *cp == '='.
* Add getenv_int(), specifically for retrieving integer values from kernelmsmith1999-01-151-1/+20
| | | | | environment variables. This makes it easy to pass tuning parameters in from the bootloader.
* Don't try to initialise the environment out of a sysinit, it's handledmsmith1998-10-091-10/+1
| | | | in MD code instead.
* Fix damaged comment.jkh1998-10-091-1/+2
|
* Kernel environment access, preloaded module lookup.msmith1998-10-091-0/+126
OpenPOWER on IntegriCloud