diff options
author | abial <abial@FreeBSD.org> | 2000-11-11 16:12:30 +0000 |
---|---|---|
committer | abial <abial@FreeBSD.org> | 2000-11-11 16:12:30 +0000 |
commit | 2af062972057ae3f21b2f8702c8317116c2acdfe (patch) | |
tree | 746a735075c7d42179d8c933d286614972874ca7 /lib | |
parent | b1e3e6e70f23df9589426083a6494eee2ef2409b (diff) | |
download | FreeBSD-src-2af062972057ae3f21b2f8702c8317116c2acdfe.zip FreeBSD-src-2af062972057ae3f21b2f8702c8317116c2acdfe.tar.gz |
Correct description of KERN_PROC. Add description of KERN_PROC_ARGS.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gen/sysctl.3 | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/libc/gen/sysctl.3 b/lib/libc/gen/sysctl.3 index 8b58970..900fa44 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, |