1 files changed, 13 insertions, 2 deletions
diff --git a/lib/libc/gen/sysctl.3 b/lib/libc/gen/sysctl.3
index 8b5897058b20..900fa4499170 100644
@@ -361,8 +361,10 @@ The version of ISO/IEC 9945 (POSIX 1003.1) with which the system
attempts to comply.
.It Li KERN_PROC
Return the entire process table, or a subset of it.
-An array of
-.Va struct kinfo_proc
+An array of pairs of
+.Va struct proc
+followed by corresponding
+.Va struct eproc
structures is returned,
whose size depends on the current number of such objects in the system.
The third and fourth level names are as follows:
@@ -375,6 +377,15 @@ The third and fourth level names are as follows:
.It KERN\_PROC\_UID A user ID
.It KERN\_PROC\_RUID A real user ID
+If the third level name is KERN_PROC_ARGS then the command line argument
+array is returned in a flattened form, i.e. zero-terminated arguments
+follow each other. The total size of array is returned. It's also possible
+for a process to set it's own process title this way.
+.Bl -column "Third level nameXXXXXX" "Fourth level is:XXXXXX" -offset indent
+.It Pa Third level name Fourth level is:
+.It KERN\_PROC\_ARGS A process ID
.It Li KERN_PROF
Return profiling information about the kernel.
If the kernel is not compiled for profiling,