From 35f7afa05a1c01c5fc0cef0ac2f7127a6383a8e9 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Tue, 30 Mar 2010 07:04:50 +0000 Subject: describe better what KERN_PROC_ARGV and KERN_PROC_ENV return; ok jmc@ --- lib/libc/gen/sysctl.3 | 11 +++++++++-- 1 file 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, -- cgit v1.2.3