Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/w Pass the size of struct kinfo_proc2 instead of kin...
details: https://anonhg.NetBSD.org/src/rev/aad769de8d75
branches: trunk
changeset: 487454:aad769de8d75
user: enami <enami%NetBSD.org@localhost>
date: Thu Jun 08 02:37:28 2000 +0000
description:
Pass the size of struct kinfo_proc2 instead of kinfo_proc to kvm_getproc2
so that w(1) displays what commands are running as before.
diffstat:
usr.bin/w/w.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r a76d7ea1196c -r aad769de8d75 usr.bin/w/w.c
--- a/usr.bin/w/w.c Thu Jun 08 02:20:50 2000 +0000
+++ b/usr.bin/w/w.c Thu Jun 08 02:37:28 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: w.c,v 1.35 2000/05/26 03:10:31 simonb Exp $ */
+/* $NetBSD: w.c,v 1.36 2000/06/08 02:37:28 enami Exp $ */
/*-
* Copyright (c) 1980, 1991, 1993, 1994
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)w.c 8.6 (Berkeley) 6/30/94";
#else
-__RCSID("$NetBSD: w.c,v 1.35 2000/05/26 03:10:31 simonb Exp $");
+__RCSID("$NetBSD: w.c,v 1.36 2000/06/08 02:37:28 enami Exp $");
#endif
#endif /* not lint */
@@ -229,8 +229,8 @@
#define WUSED (sizeof (HEADER) - sizeof ("WHAT\n"))
(void)printf(HEADER);
- if ((kp = kvm_getproc2(kd, KERN_PROC_ALL, 0, sizeof(struct kinfo_proc),
- &nentries)) == NULL)
+ if ((kp = kvm_getproc2(kd, KERN_PROC_ALL, 0,
+ sizeof(struct kinfo_proc2), &nentries)) == NULL)
errx(1, "%s", kvm_geterr(kd));
for (i = 0; i < nentries; i++, kp++) {
Home |
Main Index |
Thread Index |
Old Index