be a semantic change for any of these files
SCCS-vsn: usr.bin/systat/iostat.c 5.9
SCCS-vsn: usr.bin/systat/main.c 5.12
SCCS-vsn: usr.bin/systat/mbufs.c 5.6
SCCS-vsn: usr.bin/systat/netstat.c 5.9
SCCS-vsn: usr.bin/systat/pigs.c 5.11
SCCS-vsn: usr.bin/systat/swap.c 5.12
SCCS-vsn: usr.bin/systat/systat.h 5.8
SCCS-vsn: usr.bin/systat/vmstat.c 5.20
-static char sccsid[] = "@(#)iostat.c 5.8 (Berkeley) %G%";
+static char sccsid[] = "@(#)iostat.c 5.9 (Berkeley) %G%";
#endif not lint
#include <sys/param.h>
#endif not lint
#include <sys/param.h>
#include "systat.h"
#include "extern.h"
#include "systat.h"
#include "extern.h"
-static struct nlist nlst[] = {
+static struct nlist nl[] = {
#define X_DK_BUSY 0
{ "_dk_busy" },
#define X_DK_TIME 1
#define X_DK_BUSY 0
{ "_dk_busy" },
#define X_DK_TIME 1
- if (nlst[X_DK_BUSY].n_type == 0) {
- if (kvm_nlist(kd, nlst)) {
- nlisterr(nlst);
+ if (nl[X_DK_BUSY].n_type == 0) {
+ if (kvm_nlist(kd, nl)) {
+ nlisterr(nl);
- if (nlst[X_DK_BUSY].n_type == 0) {
+ if (nl[X_DK_BUSY].n_type == 0) {
error("Disk init information isn't in namelist");
return(0);
}
error("Disk init information isn't in namelist");
return(0);
}
- if (nlst[X_DK_BUSY].n_type == 0)
+ if (nl[X_DK_BUSY].n_type == 0)
return;
NREAD(X_DK_BUSY, &s.dk_busy, LONG);
NREAD(X_DK_TIME, s.dk_time, dk_ndrive * LONG);
return;
NREAD(X_DK_BUSY, &s.dk_busy, LONG);
NREAD(X_DK_TIME, s.dk_time, dk_ndrive * LONG);
- if (nlst[X_DK_BUSY].n_type == 0) {
+ if (nl[X_DK_BUSY].n_type == 0) {
error("No dk_busy defined.");
return;
}
error("No dk_busy defined.");
return;
}
register int i, row, col;
register long t;
register int i, row, col;
register long t;
- if (nlst[X_DK_BUSY].n_type == 0)
+ if (nl[X_DK_BUSY].n_type == 0)
return;
for (i = 0; i < dk_ndrive; i++) {
#define X(fld) t = s.fld[i]; s.fld[i] -= s1.fld[i]; s1.fld[i] = t
return;
for (i = 0; i < dk_ndrive; i++) {
#define X(fld) t = s.fld[i]; s.fld[i] -= s1.fld[i]; s1.fld[i] = t
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)main.c 5.11 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c 5.12 (Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#endif /* not lint */
#include <sys/param.h>
#include "systat.h"
#include "extern.h"
#include "systat.h"
#include "extern.h"
-static struct nlist nlst[] = {
+static struct nlist nl[] = {
#define X_FIRST 0
#define X_HZ 0
{ "_hz" },
#define X_FIRST 0
#define X_HZ 0
{ "_hz" },
error("%s", errbuf);
exit(1);
}
error("%s", errbuf);
exit(1);
}
- if (kvm_nlist(kd, nlst)) {
- nlisterr(nlst);
+ if (kvm_nlist(kd, nl)) {
+ nlisterr(nl);
- if (nlst[X_FIRST].n_type == 0) {
+ if (nl[X_FIRST].n_type == 0) {
fprintf(stderr, "Couldn't namelist.\n");
exit(1);
}
fprintf(stderr, "Couldn't namelist.\n");
exit(1);
}
-static char sccsid[] = "@(#)mbufs.c 5.5 (Berkeley) %G%";
+static char sccsid[] = "@(#)mbufs.c 5.6 (Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#endif /* not lint */
#include <sys/param.h>
wmove(wnd, 1+j, 0); wclrtobot(wnd);
}
wmove(wnd, 1+j, 0); wclrtobot(wnd);
}
-static struct nlist nlst[] = {
+static struct nlist nl[] = {
#define X_MBSTAT 0
{ "_mbstat" },
{ "" }
#define X_MBSTAT 0
{ "_mbstat" },
{ "" }
- if (nlst[X_MBSTAT].n_type == 0) {
- if (kvm_nlist(kd, nlst)) {
- nlisterr(nlst);
+ if (nl[X_MBSTAT].n_type == 0) {
+ if (kvm_nlist(kd, nl)) {
+ nlisterr(nl);
- if (nlst[X_MBSTAT].n_type == 0) {
+ if (nl[X_MBSTAT].n_type == 0) {
error("namelist on %s failed", _PATH_UNIX);
return(0);
}
error("namelist on %s failed", _PATH_UNIX);
return(0);
}
- if (nlst[X_MBSTAT].n_type == 0)
+ if (nl[X_MBSTAT].n_type == 0)
return;
NREAD(X_MBSTAT, mb, sizeof (*mb));
}
return;
NREAD(X_MBSTAT, mb, sizeof (*mb));
}
-static char sccsid[] = "@(#)netstat.c 5.8 (Berkeley) %G%";
+static char sccsid[] = "@(#)netstat.c 5.9 (Berkeley) %G%";
-static struct nlist nlst[] = {
+static struct nlist nl[] = {
#define X_TCB 0
{ "_tcb" },
#define X_UDB 1
#define X_TCB 0
{ "_tcb" },
#define X_UDB 1
- if (kvm_nlist(kd, nlst)) {
- nlisterr(nlst);
+ if (kvm_nlist(kd, nl)) {
+ nlisterr(nl);
- if (nlst[X_TCB].n_value == 0) {
+ if (nl[X_TCB].n_value == 0) {
error("No symbols in namelist");
return(0);
}
error("No symbols in namelist");
return(0);
}
- if (nlst[X_TCB].n_value == 0)
+ if (nl[X_TCB].n_value == 0)
return;
for (p = netcb.ni_forw; p != (struct netinfo *)&netcb; p = p->ni_forw)
p->ni_seen = 0;
return;
for (p = netcb.ni_forw; p != (struct netinfo *)&netcb; p = p->ni_forw)
p->ni_seen = 0;
- if (nlst[X_TCB].n_type == 0)
+ if (nl[X_TCB].n_type == 0)
return;
wmove(wnd, 0, 0); wclrtobot(wnd);
mvwaddstr(wnd, 0, LADDR, "Local Address");
return;
wmove(wnd, 0, 0); wclrtobot(wnd);
mvwaddstr(wnd, 0, LADDR, "Local Address");
-static char sccsid[] = "@(#)pigs.c 5.10 (Berkeley) %G%";
+static char sccsid[] = "@(#)pigs.c 5.11 (Berkeley) %G%";
wmove(wnd, y, 0); wclrtobot(wnd);
}
wmove(wnd, y, 0); wclrtobot(wnd);
}
-static struct nlist nlst[] = {
+static struct nlist nl[] = {
#define X_FIRST 0
#define X_CPTIME 0
{ "_cp_time" },
#define X_FIRST 0
#define X_CPTIME 0
{ "_cp_time" },
- if (nlst[X_FIRST].n_type == 0) {
- if (kvm_nlist(kd, nlst)) {
- nlisterr(nlst);
+ if (nl[X_FIRST].n_type == 0) {
+ if (kvm_nlist(kd, nl)) {
+ nlisterr(nl);
- if (nlst[X_FIRST].n_type == 0) {
+ if (nl[X_FIRST].n_type == 0) {
error("namelist failed");
return(0);
}
error("namelist failed");
return(0);
}
double t;
static int lastnproc = 0;
double t;
static int lastnproc = 0;
- if (nlst[X_FIRST].n_type == 0)
+ if (nl[X_FIRST].n_type == 0)
return;
if ((kpp =
kvm_getprocs(kd, KINFO_PROC_ALL, 0, &nproc)) == NULL) {
return;
if ((kpp =
kvm_getprocs(kd, KINFO_PROC_ALL, 0, &nproc)) == NULL) {
-static char sccsid[] = "@(#)swap.c 5.11 (Berkeley) %G%";
+static char sccsid[] = "@(#)swap.c 5.12 (Berkeley) %G%";
#endif /* not lint */
#include <sys/types.h>
#endif /* not lint */
#include <sys/types.h>
-static struct nlist nlst[] = {
+static struct nlist nl[] = {
#define X_FIRST 0
#define X_NSWAP 0
{ "_nswap" },
#define X_FIRST 0
#define X_NSWAP 0
{ "_nswap" },
initswap()
{
#ifdef notdef
initswap()
{
#ifdef notdef
- if (nlst[X_FIRST].n_type == 0) {
- if (kvm_nlist(kd, nlst)) {
- nlsterr(nlst);
+ if (nl[X_FIRST].n_type == 0) {
+ if (kvm_nlist(kd, nl)) {
+ nlsterr(nl);
- if (nlst[X_FIRST].n_type == 0) {
+ if (nl[X_FIRST].n_type == 0) {
error("namelist on %s failed", _PATH_UNIX);
return(0);
}
error("namelist on %s failed", _PATH_UNIX);
return(0);
}
fetchswap()
{
#ifdef notdef
fetchswap()
{
#ifdef notdef
- if (nlst[X_FIRST].n_type == 0)
+ if (nl[X_FIRST].n_type == 0)
return;
/*
* TODO - read procs
return;
/*
* TODO - read procs
*
* %sccs.include.proprietary.c%
*
*
* %sccs.include.proprietary.c%
*
- * @(#)systat.h 5.7 (Berkeley) %G%
+ * @(#)systat.h 5.8 (Berkeley) %G%
#define UDP 0x2
#define KREAD(addr, buf, len) kvm_ckread((addr), (buf), (len))
#define UDP 0x2
#define KREAD(addr, buf, len) kvm_ckread((addr), (buf), (len))
-#define NVAL(indx) nlst[(indx)].n_value
+#define NVAL(indx) nl[(indx)].n_value
#define NPTR(indx) (void *)NVAL((indx))
#define NREAD(indx, buf, len) kvm_ckread(NPTR((indx)), (buf), (len))
#define LONG (sizeof (long))
#define NPTR(indx) (void *)NVAL((indx))
#define NREAD(indx, buf, len) kvm_ckread(NPTR((indx)), (buf), (len))
#define LONG (sizeof (long))
-static char sccsid[] = "@(#)vmstat.c 5.19 (Berkeley) %G%";
+static char sccsid[] = "@(#)vmstat.c 5.20 (Berkeley) %G%";
-static struct nlist nlst[] = {
+static struct nlist nl[] = {
#define X_CPTIME 0
{ "_cp_time" },
#define X_CNT 1
#define X_CPTIME 0
{ "_cp_time" },
#define X_CNT 1
int i;
static int once = 0;
int i;
static int once = 0;
- if (nlst[0].n_type == 0) {
- if (kvm_nlist(kd, nlst)) {
- nlisterr(nlst);
+ if (nl[0].n_type == 0) {
+ if (kvm_nlist(kd, nl)) {
+ nlisterr(nl);
- if (nlst[0].n_type == 0) {
+ if (nl[0].n_type == 0) {
error("No namelist");
return(0);
}
error("No namelist");
return(0);
}
#undef allocate
}
if (nintr == 0) {
#undef allocate
}
if (nintr == 0) {
- nintr = (nlst[X_EINTRCNT].n_value -
- nlst[X_INTRCNT].n_value) / sizeof (long);
+ nintr = (nl[X_EINTRCNT].n_value -
+ nl[X_INTRCNT].n_value) / sizeof (long);
intrloc = (long *) calloc(nintr, sizeof (long));
intrname = (char **) calloc(nintr, sizeof (long));
intrloc = (long *) calloc(nintr, sizeof (long));
intrname = (char **) calloc(nintr, sizeof (long));
- intrnamebuf = (char *) malloc(nlst[X_EINTRNAMES].n_value -
- nlst[X_INTRNAMES].n_value);
+ intrnamebuf = (char *) malloc(nl[X_EINTRNAMES].n_value -
+ nl[X_INTRNAMES].n_value);
if (intrnamebuf == 0 || intrname == 0 || intrloc == 0) {
error("Out of memory\n");
if (intrnamebuf)
if (intrnamebuf == 0 || intrname == 0 || intrloc == 0) {
error("Out of memory\n");
if (intrnamebuf)