Source-Changes-HG archive

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

[src/trunk]: src/libexec/rpc.rstatd Remove remaining kvm glue.



details:   https://anonhg.NetBSD.org/src/rev/4d5fd37b8532
branches:  trunk
changeset: 796425:4d5fd37b8532
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon Jun 02 19:29:58 2014 +0000

description:
Remove remaining kvm glue.

diffstat:

 libexec/rpc.rstatd/Makefile     |   6 +++---
 libexec/rpc.rstatd/rstat_proc.c |  12 ++----------
 2 files changed, 5 insertions(+), 13 deletions(-)

diffs (60 lines):

diff -r e8288e0d29a2 -r 4d5fd37b8532 libexec/rpc.rstatd/Makefile
--- a/libexec/rpc.rstatd/Makefile       Mon Jun 02 19:29:00 2014 +0000
+++ b/libexec/rpc.rstatd/Makefile       Mon Jun 02 19:29:58 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.20 2006/04/14 13:19:03 blymn Exp $
+#      $NetBSD: Makefile,v 1.21 2014/06/02 19:29:58 joerg Exp $
 
 .include <bsd.own.mk>
 
@@ -10,7 +10,7 @@
 MAN =  rpc.rstatd.8
 MLINKS=        rpc.rstatd.8 rstatd.8
 
-DPADD= ${LIBRPCSVC} ${LIBKVM}
-LDADD= -lrpcsvc -lkvm
+DPADD= ${LIBRPCSVC}
+LDADD= -lrpcsvc
 
 .include <bsd.prog.mk>
diff -r e8288e0d29a2 -r 4d5fd37b8532 libexec/rpc.rstatd/rstat_proc.c
--- a/libexec/rpc.rstatd/rstat_proc.c   Mon Jun 02 19:29:00 2014 +0000
+++ b/libexec/rpc.rstatd/rstat_proc.c   Mon Jun 02 19:29:58 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rstat_proc.c,v 1.49 2014/06/02 18:17:51 joerg Exp $    */
+/*     $NetBSD: rstat_proc.c,v 1.50 2014/06/02 19:29:58 joerg Exp $    */
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: rstat_proc.c,v 1.49 2014/06/02 18:17:51 joerg Exp $");
+__RCSID("$NetBSD: rstat_proc.c,v 1.50 2014/06/02 19:29:58 joerg Exp $");
 
 /*
  * rstat service:  built with rstat.x and derived from rpc.rstatd.c
@@ -50,7 +50,6 @@
 #include <signal.h>
 #include <fcntl.h>
 #include <limits.h>
-#include <nlist.h>
 #include <syslog.h>
 #include <sys/sysctl.h>
 #include <uvm/uvm_extern.h>
@@ -80,14 +79,7 @@
 #define BSD_CPUSTATES  5       /* Use protocol's idea of CPU states */
 int    cp_xlat[CPUSTATES] = { CP_USER, CP_NICE, CP_SYS, CP_IDLE };
 
-struct nlist nl[] = {
-#define        X_IFNET         0
-       { "_ifnet", 0, 0, 0, 0 },
-       { NULL, 0, 0, 0, 0 },
-};
-
 int hz;
-char *memf = NULL, *nlistf = NULL;
 
 extern int from_inetd;
 int sincelastreq = 0;          /* number of alarms since last request */



Home | Main Index | Thread Index | Old Index