summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2010-03-30 07:04:50 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2010-03-30 07:04:50 +0000
commit35f7afa05a1c01c5fc0cef0ac2f7127a6383a8e9 (patch)
tree312f423f8450f80f22ea024ea292379fbaaef553
parent46db26c0a0e4930df50e4112ec7c3be826d4b78e (diff)
describe better what KERN_PROC_ARGV and KERN_PROC_ENV return; ok jmc@
-rw-r--r--lib/libc/gen/sysctl.311
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/libc/gen/sysctl.3 b/lib/libc/gen/sysctl.3
index 2717b843788..33ac2a36350 100644
--- a/lib/libc/gen/sysctl.3
+++ b/lib/libc/gen/sysctl.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sysctl.3,v 1.194 2010/03/12 13:21:16 jmc Exp $
+.\" $OpenBSD: sysctl.3,v 1.195 2010/03/30 07:04:49 otto Exp $
.\"
.\" Copyright (c) 1993
.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: March 12 2010 $
+.Dd $Mdocdate: March 30 2010 $
.Dt SYSCTL 3
.Os
.Sh NAME
@@ -753,6 +753,13 @@ in the argv or env array.
returns the argv array and
.Dv KERN_PROC_ENV
returns the environ array.
+The buffer pointed to by
+.Fa oldp
+is filled with an array of char pointers
+followed by the strings themselves.
+The last char pointer is a
+.Dv NULL
+pointer.
.It Dv KERN_PROF
Return profiling information about the kernel.
If the kernel is not compiled for profiling,