Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/sysctl sysctlnametomib() is a private function for the ...



details:   https://anonhg.NetBSD.org/src/rev/2d4fd15f89bf
branches:  trunk
changeset: 555948:2d4fd15f89bf
user:      atatat <atatat%NetBSD.org@localhost>
date:      Thu Dec 04 20:07:59 2003 +0000

description:
sysctlnametomib() is a private function for the moment.

diffstat:

 sbin/sysctl/sysctl.c     |  6 ++++--
 sbin/sysctl/sysctlutil.c |  4 +++-
 2 files changed, 7 insertions(+), 3 deletions(-)

diffs (45 lines):

diff -r 60a5b045c5f2 -r 2d4fd15f89bf sbin/sysctl/sysctl.c
--- a/sbin/sysctl/sysctl.c      Thu Dec 04 20:06:58 2003 +0000
+++ b/sbin/sysctl/sysctl.c      Thu Dec 04 20:07:59 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysctl.c,v 1.75 2003/12/04 19:49:39 atatat Exp $ */
+/*     $NetBSD: sysctl.c,v 1.76 2003/12/04 20:07:59 atatat Exp $ */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -72,7 +72,7 @@
 #if 0
 static char sccsid[] = "@(#)sysctl.c   8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: sysctl.c,v 1.75 2003/12/04 19:49:39 atatat Exp $");
+__RCSID("$NetBSD: sysctl.c,v 1.76 2003/12/04 20:07:59 atatat Exp $");
 #endif
 #endif /* not lint */
 
@@ -146,6 +146,8 @@
  * unexported from some place else (XXX tbd)
  */
 int learn_tree(int *, u_int, struct sysctlnode *);
+int sysctlnametomib(const char *, int *, u_int *,
+                   char *, size_t *, struct sysctlnode **);
 
 /*
  * "handlers"
diff -r 60a5b045c5f2 -r 2d4fd15f89bf sbin/sysctl/sysctlutil.c
--- a/sbin/sysctl/sysctlutil.c  Thu Dec 04 20:06:58 2003 +0000
+++ b/sbin/sysctl/sysctlutil.c  Thu Dec 04 20:07:59 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysctlutil.c,v 1.1 2003/12/04 19:49:39 atatat Exp $ */
+/*     $NetBSD: sysctlutil.c,v 1.2 2003/12/04 20:07:59 atatat Exp $ */
 
 #include <sys/param.h>
 #define __USE_NEW_SYSCTL
@@ -36,6 +36,8 @@
 int learn_tree(int *, u_int, struct sysctlnode *);
 static void free_children(struct sysctlnode *);
 static void relearnhead(void);
+int sysctlnametomib(const char *, int *, u_int *,
+                   char *, size_t *, struct sysctlnode **);
 
 /*
  * for ordering nodes -- a query may or may not be given them in



Home | Main Index | Thread Index | Old Index