aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej Bialecki <abial@FreeBSD.org>2000-11-11 16:12:30 +0000
committerAndrzej Bialecki <abial@FreeBSD.org>2000-11-11 16:12:30 +0000
commit2de021a4bc030cbaad579af966c68179af856ba7 (patch)
tree35f63bd84452a1b7aaf7a8a54ca62477a5753e3e
parente904636ad48b97e10a52a816c486f98f5be7870b (diff)
downloadsrc-2de021a4bc030cbaad579af966c68179af856ba7.tar.gz
src-2de021a4bc030cbaad579af966c68179af856ba7.zip
Correct description of KERN_PROC. Add description of KERN_PROC_ARGS.
Notes
Notes: svn path=/head/; revision=68608
-rw-r--r--lib/libc/gen/sysctl.315
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
--- a/lib/libc/gen/sysctl.3
+++ b/lib/libc/gen/sysctl.3
@@ -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
.El
+
+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
+.El
.It Li KERN_PROF
Return profiling information about the kernel.
If the kernel is not compiled for profiling,