| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Approved by: trb
|
|
|
|
| |
Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
|
|
|
|
| |
Suggested by: peter
|
| |
|
| |
|
|
|
|
| |
Reviewed by: md5
|
|
|
|
|
|
|
| |
permitting MAC policies to limit access to the kernel environment.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
|
|
|
|
| |
for safety and consistency.
|
|
|
|
| |
whitespace and update a comment.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- malformed environment strings (ones without an '=') were not rejected.
There shouldn't be any of these, but when the static environment is
empty it always begins with one of these; this one should be considered
as the terminator after the end of the environment, but it isn't.
- the comparison of the name being looked up with the name in the
environment was fuzzy -- only the characters up to the length of the
latter were compared, so _getenv_static("foobar") matched "foo=..."
in the environment and everything matched "" in the empty environment.
MFC after: 3 days
|
|
|
|
|
|
| |
kenv lock.
Reviewed by: jake
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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).
Reviewed by: peter
|
|
|
|
|
|
|
| |
value of !NUL rather than NUL.
Submitted by: luigi
Pointy hat to: jhb
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
tunable.
Reviewed by: peter
MFC after: 2 weeks
|
| |
|
|
|
|
| |
'kenv' command, which I obviously was unaware of.
|
|
|
|
|
| |
environment from the loader, as well as the kernel's compiled in static
hints.
|
|
|
|
|
|
| |
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..
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Pointed out by: bde
|
|
|
|
|
|
|
|
| |
Sanitize SYSCTL_HANDLER_ARGS so that simplistic tools can grog our
sources:
-sysctl_vm_zone SYSCTL_HANDLER_ARGS
+sysctl_vm_zone (SYSCTL_HANDLER_ARGS)
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
Submitted by: phk
|
| |
|
| |
|
|
|
|
| |
*cp == '='.
|
|
|
|
|
| |
environment variables. This makes it easy to pass tuning parameters
in from the bootloader.
|
|
|
|
| |
in MD code instead.
|
| |
|
|
|