From owner-cvs-all Thu Mar 22 19:58:34 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B553337B71B; Thu, 22 Mar 2001 19:58:26 -0800 (PST) (envelope-from tmm@FreeBSD.org) Received: (from tmm@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2N3wQH70210; Thu, 22 Mar 2001 19:58:26 -0800 (PST) (envelope-from tmm) Message-Id: <200103230358.f2N3wQH70210@freefall.freebsd.org> From: Thomas Moestl Date: Thu, 22 Mar 2001 19:58:26 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/systat Makefile extern.h fetch.c iostat.c main.c netcmds.c netstat.c swap.c systat.h vmstat.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG tmm 2001/03/22 19:58:26 PST Modified files: usr.bin/systat Makefile extern.h fetch.c iostat.c main.c netcmds.c netstat.c swap.c systat.h vmstat.c Log: Get rid of setgid kmem for systat, and while being there, fix some bugs and compiler warnings. The data for network statistics are still obtained via the kvm interface if systat was started with the needed privileges, otherwise sysctls are used. The reason for this is that with really many open sockets, the sysctl method is probably slower, but it systat -netstat is probably not really usable in either mode under these conditions. Approved by: rwatson Revision Changes Path 1.9 +1 -3 src/usr.bin/systat/Makefile 1.8 +5 -0 src/usr.bin/systat/extern.h 1.3 +95 -1 src/usr.bin/systat/fetch.c 1.14 +3 -2 src/usr.bin/systat/iostat.c 1.14 +26 -4 src/usr.bin/systat/main.c 1.10 +2 -2 src/usr.bin/systat/netcmds.c 1.16 +143 -24 src/usr.bin/systat/netstat.c 1.15 +2 -5 src/usr.bin/systat/swap.c 1.4 +9 -1 src/usr.bin/systat/systat.h 1.45 +118 -116 src/usr.bin/systat/vmstat.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message