aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2021-06-20 19:36:10 +0000
committerKyle Evans <kevans@FreeBSD.org>2021-07-19 04:06:19 +0000
commitdb0f26439357b78863e61985acd1e5acf75ce73d (patch)
tree9a30a6481206e81ec1b726294398fdd41c88896c /sys/sys
parent7a129c973b5ba0fa916dfa658d523bec66dbd02d (diff)
downloadsrc-db0f26439357b78863e61985acd1e5acf75ce73d.tar.gz
src-db0f26439357b78863e61985acd1e5acf75ce73d.zip
kenv: allow listing of static kernel environments
The early environment is typically cleared, so these new options need the PRESERVE_EARLY_KENV kernel config(8) option. These environments are reported as missing by kenv(1) if the option is not present in the running kernel. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D30835
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/kenv.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/sys/kenv.h b/sys/sys/kenv.h
index 4c851631f343..eccdc027adcc 100644
--- a/sys/sys/kenv.h
+++ b/sys/sys/kenv.h
@@ -34,10 +34,12 @@
/*
* Constants for the kenv(2) syscall
*/
-#define KENV_GET 0
-#define KENV_SET 1
-#define KENV_UNSET 2
-#define KENV_DUMP 3
+#define KENV_GET 0
+#define KENV_SET 1
+#define KENV_UNSET 2
+#define KENV_DUMP 3
+#define KENV_DUMP_LOADER 4
+#define KENV_DUMP_STATIC 5
#define KENV_MNAMELEN 128 /* Maximum name length (for the syscall) */
#define KENV_MVALLEN 128 /* Maximum value length (for the syscall) */