]> git.saurik.com Git - apple/libc.git/blob - gen/FreeBSD/sysctl.3.patch
Libc-498.1.5.tar.gz
[apple/libc.git] / gen / FreeBSD / sysctl.3.patch
1 --- sysctl.3.orig 2006-08-17 22:44:01.000000000 -0700
2 +++ sysctl.3 2006-08-17 22:45:34.000000000 -0700
3 @@ -182,13 +182,21 @@
4 }
5 .Ed
6 .Pp
7 +Note: Implementation of
8 +.Fn printkproc
9 +-- to print whatever data deemed necessary from the large
10 +.Vt kinfo_proc
11 +structure (
12 +.In sysctl.h
13 +) -- is left as an exercise for the reader.
14 +.Pp
15 The top level names are defined with a CTL_ prefix in
16 .In sys/sysctl.h ,
17 and are as follows.
18 The next and subsequent levels down are found in the include files
19 listed here, and described in separate sections below.
20 .Pp
21 -.Bl -column CTLXMACHDEPXXX "Next level namesXXXXXX" -offset indent
22 +.Bl -column CTLXMACHDEP "Next level names" -offset indent
23 .It Sy "Name Next level names Description"
24 .It "CTL_DEBUG sys/sysctl.h Debugging"
25 .It "CTL_VFS sys/mount.h File system"
26 @@ -197,7 +205,8 @@
27 .It "CTL_MACHDEP sys/sysctl.h Machine dependent"
28 .It "CTL_NET sys/socket.h Networking"
29 .It "CTL_USER sys/sysctl.h User-level"
30 -.It "CTL_VM vm/vm_param.h Virtual memory"
31 +.It "CTL_VM sys/resources.h Virtual memory (struct loadavg)"
32 +.It "CTL_VM sys/vmmeter.h Virtual memory (struct vmtotal)"
33 .El
34 .Pp
35 For example, the following retrieves the maximum number of processes allowed
36 @@ -453,16 +462,6 @@
37 .It "KERN_PROC_UID A user ID"
38 .It "KERN_PROC_RUID A real user ID"
39 .El
40 -.Pp
41 -If the third level name is KERN_PROC_ARGS then the command line argument
42 -array is returned in a flattened form, i.e., zero-terminated arguments
43 -follow each other.
44 -The total size of array is returned.
45 -It is also possible for a process to set its own process title this way.
46 -.Bl -column "Third level nameXXXXXX" "Fourth level is:XXXXXX" -offset indent
47 -.It Sy "Third level name Fourth level is:"
48 -.It "KERN_PROC_ARGS A process ID"
49 -.El
50 .It Li KERN_PROF
51 Return profiling information about the kernel.
52 If the kernel is not compiled for profiling,
53 @@ -845,7 +844,7 @@
54 definitions for second level network identifiers
55 .It In sys/gmon.h
56 definitions for third level profiling identifiers
57 -.It In vm/vm_param.h
58 +.It In mach/vm_param.h
59 definitions for second level virtual memory identifiers
60 .It In netinet/in.h
61 definitions for third level IPv4/IPv6 identifiers and