Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/sysctl Make requestors of kern.file2 be referred to pst...
details: https://anonhg.NetBSD.org/src/rev/f7bc9ea6e6ee
branches: trunk
changeset: 574847:f7bc9ea6e6ee
user: atatat <atatat%NetBSD.org@localhost>
date: Tue Mar 15 13:59:35 2005 +0000
description:
Make requestors of kern.file2 be referred to pstat (the same as
kern.file) and add EINVAL to the list of errno values which are
silently ignored when walking the tree.
diffstat:
sbin/sysctl/sysctl.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 48a1c891593e -r f7bc9ea6e6ee sbin/sysctl/sysctl.c
--- a/sbin/sysctl/sysctl.c Tue Mar 15 13:19:41 2005 +0000
+++ b/sbin/sysctl/sysctl.c Tue Mar 15 13:59:35 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysctl.c,v 1.96 2004/12/17 05:03:03 atatat Exp $ */
+/* $NetBSD: sysctl.c,v 1.97 2005/03/15 13:59:35 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.96 2004/12/17 05:03:03 atatat Exp $");
+__RCSID("$NetBSD: sysctl.c,v 1.97 2005/03/15 13:59:35 atatat Exp $");
#endif
#endif /* not lint */
@@ -181,6 +181,7 @@
{ { CTL_KERN, KERN_PROC2 }, printother, NULL, "ps" },
{ { CTL_KERN, KERN_PROC_ARGS }, printother, NULL, "ps" },
{ { CTL_KERN, KERN_FILE }, printother, NULL, "pstat" },
+ { { CTL_KERN, KERN_FILE2 }, printother, NULL, "pstat" },
{ { CTL_KERN, KERN_NTPTIME }, printother, NULL,
"ntpdc -c kerninfo" },
{ { CTL_KERN, KERN_MSGBUF }, printother, NULL, "dmesg" },
@@ -1523,6 +1524,7 @@
case ENOENT:
case ENOPROTOOPT:
case ENOTDIR:
+ case EINVAL:
case EOPNOTSUPP:
case EPROTONOSUPPORT:
if (Aflag || req)
Home |
Main Index |
Thread Index |
Old Index