diff options
author | mdf <mdf@FreeBSD.org> | 2011-01-19 17:04:07 +0000 |
---|---|---|
committer | mdf <mdf@FreeBSD.org> | 2011-01-19 17:04:07 +0000 |
commit | 6648b8cede12bffb36e7260cfcf022cf2315acf1 (patch) | |
tree | 5e1c41064fb9146dbfbbbd14965e9bed5fb07985 /share/man/man9/sysctl.9 | |
parent | a7310f271d99214ed08e3b1b382ffcd076a9d2b5 (diff) | |
download | FreeBSD-src-6648b8cede12bffb36e7260cfcf022cf2315acf1.zip FreeBSD-src-6648b8cede12bffb36e7260cfcf022cf2315acf1.tar.gz |
sysctl(8) should use the CTLTYPE to determine the type of data when
reading. (This was already done for writing to a sysctl). This
requires all SYSCTL setups to specify a type. Most of them are now
checked at compile-time.
Remove SYSCTL_*X* sysctl additions as the print being in hex should be
controlled by the -x flag to sysctl(8).
Succested by: bde
Diffstat (limited to 'share/man/man9/sysctl.9')
-rw-r--r-- | share/man/man9/sysctl.9 | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/share/man/man9/sysctl.9 b/share/man/man9/sysctl.9 index ff2b938..172b6df 100644 --- a/share/man/man9/sysctl.9 +++ b/share/man/man9/sysctl.9 @@ -39,8 +39,6 @@ .Nm SYSCTL_STRUCT , .Nm SYSCTL_UINT , .Nm SYSCTL_ULONG , -.Nm SYSCTL_XINT , -.Nm SYSCTL_XLONG , .Nm SYSCTL_QUAD .Nd Static sysctl declaration functions .Sh SYNOPSIS @@ -56,8 +54,6 @@ .Fn SYSCTL_STRUCT parent nbr name access ptr type descr .Fn SYSCTL_UINT parent nbr name access ptr val descr .Fn SYSCTL_ULONG parent nbr name access ptr val descr -.Fn SYSCTL_XINT parent nbr name access ptr val descr -.Fn SYSCTL_XLONG parent nbr name access ptr val descr .Fn SYSCTL_QUAD parent nbr name access ptr val descr .Sh DESCRIPTION The @@ -84,8 +80,6 @@ New nodes are declared using one of .Fn SYSCTL_STRUCT , .Fn SYSCTL_UINT , .Fn SYSCTL_ULONG , -.Fn SYSCTL_XINT , -.Fn SYSCTL_XLONG , and .Fn SYSCTL_QUAD . Each macro accepts a parent name, as declared using @@ -206,7 +200,6 @@ Examples of integer, opaque, string, and procedure sysctls follow: * Example of a constant integer value. Notice that the control * flags are CTLFLAG_RD, the variable pointer is NULL, and the * value is declared. - * If sysctl(8) should print this value in hex, use 'SYSCTL_XINT'. */ SYSCTL_INT(_debug_sizeof, OID_AUTO, bio, CTLFLAG_RD, NULL, sizeof(struct bio), "sizeof(struct bio)"); |