sysctl.3 (119654) | sysctl.3 (119893) |
---|---|
1.\" Copyright (c) 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)sysctl.3 8.4 (Berkeley) 5/9/95 | 1.\" Copyright (c) 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)sysctl.3 8.4 (Berkeley) 5/9/95 |
33.\" $FreeBSD: head/lib/libc/gen/sysctl.3 119654 2003-09-01 14:26:33Z eivind $ | 33.\" $FreeBSD: head/lib/libc/gen/sysctl.3 119893 2003-09-08 19:57:22Z ru $ |
34.\" 35.Dd January 23, 2001 36.Dt SYSCTL 3 37.Os 38.Sh NAME 39.Nm sysctl , 40.Nm sysctlbyname , 41.Nm sysctlnametomib --- 135 unchanged lines hidden (view full) --- 177 if (sysctl(mib, 4, &kp, &len, NULL, 0) == -1) 178 perror("sysctl"); 179 else if (len > 0) 180 printkproc(&kp); 181} 182.Ed 183.Pp 184The top level names are defined with a CTL_ prefix in | 34.\" 35.Dd January 23, 2001 36.Dt SYSCTL 3 37.Os 38.Sh NAME 39.Nm sysctl , 40.Nm sysctlbyname , 41.Nm sysctlnametomib --- 135 unchanged lines hidden (view full) --- 177 if (sysctl(mib, 4, &kp, &len, NULL, 0) == -1) 178 perror("sysctl"); 179 else if (len > 0) 180 printkproc(&kp); 181} 182.Ed 183.Pp 184The top level names are defined with a CTL_ prefix in |
185.Aq Pa sys/sysctl.h , | 185.In sys/sysctl.h , |
186and are as follows. 187The next and subsequent levels down are found in the include files 188listed here, and described in separate sections below. 189.Pp 190.Bl -column CTLXMACHDEPXXX "Next level namesXXXXXX" -offset indent 191.It Sy "Name Next level names Description" 192.It "CTL\_DEBUG sys/sysctl.h Debugging" 193.It "CTL\_VFS sys/mount.h File system" --- 221 unchanged lines hidden (view full) --- 415is the two digit minor version, 416.Ar R 417is 0 if release branch, otherwise 1, 418and 419.Ar xx 420is updated when the available APIs change. 421.Pp 422The userland release version is available from | 186and are as follows. 187The next and subsequent levels down are found in the include files 188listed here, and described in separate sections below. 189.Pp 190.Bl -column CTLXMACHDEPXXX "Next level namesXXXXXX" -offset indent 191.It Sy "Name Next level names Description" 192.It "CTL\_DEBUG sys/sysctl.h Debugging" 193.It "CTL\_VFS sys/mount.h File system" --- 221 unchanged lines hidden (view full) --- 415is the two digit minor version, 416.Ar R 417is 0 if release branch, otherwise 1, 418and 419.Ar xx 420is updated when the available APIs change. 421.Pp 422The userland release version is available from |
423.Aq Pa osreldate.h ; | 423.In osreldate.h ; |
424parse this file if you need to get the release version of 425the currently installed userland. 426.It Li KERN_OSRELEASE 427The system release string. 428.It Li KERN_OSREV 429The system revision string. 430.It Li KERN_OSTYPE 431The system type string. --- 379 unchanged lines hidden (view full) --- 811array specifies a value that is unknown. 812.It Bq Er EPERM 813An attempt is made to set a read-only value. 814.It Bq Er EPERM 815A process without appropriate privilege attempts to set a value. 816.El 817.Sh FILES 818.Bl -tag -width <netinet/icmpXvar.h> -compact | 424parse this file if you need to get the release version of 425the currently installed userland. 426.It Li KERN_OSRELEASE 427The system release string. 428.It Li KERN_OSREV 429The system revision string. 430.It Li KERN_OSTYPE 431The system type string. --- 379 unchanged lines hidden (view full) --- 811array specifies a value that is unknown. 812.It Bq Er EPERM 813An attempt is made to set a read-only value. 814.It Bq Er EPERM 815A process without appropriate privilege attempts to set a value. 816.El 817.Sh FILES 818.Bl -tag -width <netinet/icmpXvar.h> -compact |
819.It Aq Pa sys/sysctl.h | 819.It In sys/sysctl.h |
820definitions for top level identifiers, second level kernel and hardware 821identifiers, and user level identifiers | 820definitions for top level identifiers, second level kernel and hardware 821identifiers, and user level identifiers |
822.It Aq Pa sys/socket.h | 822.It In sys/socket.h |
823definitions for second level network identifiers | 823definitions for second level network identifiers |
824.It Aq Pa sys/gmon.h | 824.It In sys/gmon.h |
825definitions for third level profiling identifiers | 825definitions for third level profiling identifiers |
826.It Aq Pa vm/vm_param.h | 826.It In vm/vm_param.h |
827definitions for second level virtual memory identifiers | 827definitions for second level virtual memory identifiers |
828.It Aq Pa netinet/in.h | 828.It In netinet/in.h |
829definitions for third level IPv4/IPv6 identifiers and 830fourth level IPv4/v6 identifiers | 829definitions for third level IPv4/IPv6 identifiers and 830fourth level IPv4/v6 identifiers |
831.It Aq Pa netinet/icmp_var.h | 831.It In netinet/icmp_var.h |
832definitions for fourth level ICMP identifiers | 832definitions for fourth level ICMP identifiers |
833.It Aq Pa netinet/icmp6.h | 833.It In netinet/icmp6.h |
834definitions for fourth level ICMPv6 identifiers | 834definitions for fourth level ICMPv6 identifiers |
835.It Aq Pa netinet/udp_var.h | 835.It In netinet/udp_var.h |
836definitions for fourth level UDP identifiers 837.El 838.Sh SEE ALSO 839.Xr sysconf 3 , 840.Xr sysctl 8 841.Sh HISTORY 842The 843.Fn sysctl 844function first appeared in 845.Bx 4.4 . | 836definitions for fourth level UDP identifiers 837.El 838.Sh SEE ALSO 839.Xr sysconf 3 , 840.Xr sysctl 8 841.Sh HISTORY 842The 843.Fn sysctl 844function first appeared in 845.Bx 4.4 . |