Source-Changes-HG archive

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

[src/trunk]: src Don't check namelist when choosing to use the sysctl interface.



details:   https://anonhg.NetBSD.org/src/rev/765461248d36
branches:  trunk
changeset: 487975:765461248d36
user:      simonb <simonb%NetBSD.org@localhost>
date:      Fri Jun 16 03:51:00 2000 +0000

description:
Don't check namelist when choosing to use the sysctl interface.

diffstat:

 bin/ps/ps.c         |  6 +++---
 sbin/dmesg/dmesg.c  |  6 +++---
 usr.bin/ipcs/ipcs.c |  4 ++--
 3 files changed, 8 insertions(+), 8 deletions(-)

diffs (72 lines):

diff -r c910b5602f87 -r 765461248d36 bin/ps/ps.c
--- a/bin/ps/ps.c       Fri Jun 16 03:49:12 2000 +0000
+++ b/bin/ps/ps.c       Fri Jun 16 03:51:00 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ps.c,v 1.40 2000/06/08 13:30:40 simonb Exp $   */
+/*     $NetBSD: ps.c,v 1.41 2000/06/16 03:51:00 simonb Exp $   */
 
 /*
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -79,7 +79,7 @@
 #if 0
 static char sccsid[] = "@(#)ps.c       8.4 (Berkeley) 4/2/94";
 #else
-__RCSID("$NetBSD: ps.c,v 1.40 2000/06/08 13:30:40 simonb Exp $");
+__RCSID("$NetBSD: ps.c,v 1.41 2000/06/16 03:51:00 simonb Exp $");
 #endif
 #endif /* not lint */
 
@@ -340,7 +340,7 @@
        }
 #endif
 
-       if (nlistf == NULL && memf == NULL && swapf == NULL) {
+       if (memf == NULL && swapf == NULL) {
                kd = kvm_openfiles(nlistf, memf, swapf, KVM_NO_FILES, errbuf);
                donlist_sysctl();
        } else
diff -r c910b5602f87 -r 765461248d36 sbin/dmesg/dmesg.c
--- a/sbin/dmesg/dmesg.c        Fri Jun 16 03:49:12 2000 +0000
+++ b/sbin/dmesg/dmesg.c        Fri Jun 16 03:51:00 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dmesg.c,v 1.18 2000/06/16 03:42:12 simonb Exp $        */
+/*     $NetBSD: dmesg.c,v 1.19 2000/06/16 04:00:44 simonb Exp $        */
 /*-
  * Copyright (c) 1991, 1993
  *     The Regents of the University of California.  All rights reserved.
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)dmesg.c    8.1 (Berkeley) 6/5/93";
 #else
-__RCSID("$NetBSD: dmesg.c,v 1.18 2000/06/16 03:42:12 simonb Exp $");
+__RCSID("$NetBSD: dmesg.c,v 1.19 2000/06/16 04:00:44 simonb Exp $");
 #endif
 #endif /* not lint */
 
@@ -99,7 +99,7 @@
        argc -= optind;
        argv += optind;
 
-       if (memf == NULL && nlistf == NULL) {
+       if (memf == NULL) {
                size_t size;
                int mib[2];
 
diff -r c910b5602f87 -r 765461248d36 usr.bin/ipcs/ipcs.c
--- a/usr.bin/ipcs/ipcs.c       Fri Jun 16 03:49:12 2000 +0000
+++ b/usr.bin/ipcs/ipcs.c       Fri Jun 16 03:51:00 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipcs.c,v 1.24 2000/06/03 04:12:48 simonb Exp $ */
+/*     $NetBSD: ipcs.c,v 1.25 2000/06/16 03:58:20 simonb Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -220,7 +220,7 @@
        if (argc - optind > 0)
                usage();
 
-       if (namelist == NULL && core == NULL) {
+       if (core == NULL) {
                if (display & (MSGINFO | MSGTOTAL))
                        msg_sysctl();
                if (display & (SHMINFO | SHMTOTAL))



Home | Main Index | Thread Index | Old Index