diff options
author | markm <markm@FreeBSD.org> | 2001-01-14 16:43:41 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2001-01-14 16:43:41 +0000 |
commit | 18941d4ee07bd14978cdcd7635a820ce12211de8 (patch) | |
tree | e08325abb43fbbd24cac75658d30c2389b2f42fe | |
parent | 993fa3797048e16be9d558df13d46df78af65f17 (diff) | |
download | FreeBSD-src-18941d4ee07bd14978cdcd7635a820ce12211de8.zip FreeBSD-src-18941d4ee07bd14978cdcd7635a820ce12211de8.tar.gz |
Add a missing argument for SYSCTL_ADD_OPAQUE.
Fix the examples at the end which were horribly broken.
-rw-r--r-- | share/man/man9/sysctl_add_oid.9 | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/share/man/man9/sysctl_add_oid.9 b/share/man/man9/sysctl_add_oid.9 index 5ecc303..34acd76 100644 --- a/share/man/man9/sysctl_add_oid.9 +++ b/share/man/man9/sysctl_add_oid.9 @@ -150,6 +150,7 @@ .Fa "int access" .Fa "void *arg" .Fa "size_t *len" +.Fa "char *format" .Fa "char *descr" .Fc .Ft struct sysctl_oid * @@ -463,14 +464,14 @@ char *string = "dynamic sysctl"; ... root1 = SYSCTL_ADD_NODE( NULL, SYSCTL_STATIC_CHILDREN(/* tree top */), - OID_AUTO, newtree, CTFLAG_RW, 0, "new top level tree"); + OID_AUTO, "newtree", CTLFLAG_RW, 0, "new top level tree"); oidp = SYSCTL_ADD_INT( NULL, SYSCTL_CHILDREN(root1), - OID_AUTO, newint, CTLFLAG_RW, &a_int, 0, "new int leaf"); + OID_AUTO, "newint", CTLFLAG_RW, &a_int, 0, "new int leaf"); ... root2 = SYSCTL_ADD_NODE( NULL, SYSCTL_STATIC_CHILDREN(_debug), - OID_AUTO, newtree, CTFLAG_RW, 0, "new tree under debug"); + OID_AUTO, "newtree", CTLFLAG_RW, 0, "new tree under debug"); oidp = SYSCTL_ADD_STRING( NULL, SYSCTL_CHILDREN(root2), - OID_AUTO, newstring, CTLFLAG_R, string, 0, "new string leaf"); + OID_AUTO, "newstring", CTLFLAG_RD, string, 0, "new string leaf"); .Ed .Pp This example creates the following subtrees: |