Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sbin/sysctl Pull up rev 1.40:



details:   https://anonhg.NetBSD.org/src/rev/9430af617c31
branches:  netbsd-1-5
changeset: 488629:9430af617c31
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sat Jul 22 04:40:39 2000 +0000

description:
Pull up rev 1.40:
 Handle KERN_MSGBUF and KERN_CONSDEV gracefully.

diffstat:

 sbin/sysctl/sysctl.c |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r 9f0959630c96 -r 9430af617c31 sbin/sysctl/sysctl.c
--- a/sbin/sysctl/sysctl.c      Sat Jul 22 04:38:14 2000 +0000
+++ b/sbin/sysctl/sysctl.c      Sat Jul 22 04:40:39 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysctl.c,v 1.37.2.2 2000/07/22 01:47:47 enami Exp $    */
+/*     $NetBSD: sysctl.c,v 1.37.2.3 2000/07/22 04:40:39 simonb Exp $   */
 
 /*
  * Copyright (c) 1993
@@ -44,7 +44,7 @@
 #if 0
 static char sccsid[] = "@(#)sysctl.c   8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: sysctl.c,v 1.37.2.2 2000/07/22 01:47:47 enami Exp $");
+__RCSID("$NetBSD: sysctl.c,v 1.37.2.3 2000/07/22 04:40:39 simonb Exp $");
 #endif
 #endif /* not lint */
 
@@ -387,6 +387,14 @@
                case KERN_CP_TIME:
                        special |= CPTIME;
                        break;
+               case KERN_MSGBUF:
+                       if (flags == 0)
+                               return;
+                       warnx("Use dmesg to view %s information", string);
+                       return;
+               case KERN_CONSDEV:
+                       special |= CONSDEV;
+                       break;
                }
                break;
 



Home | Main Index | Thread Index | Old Index