From owner-cvs-all Sat Aug 4 11:25:55 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 A083437B401; Sat, 4 Aug 2001 11:25:48 -0700 (PDT) (envelope-from tmm@FreeBSD.org) Received: (from tmm@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f74IPm165057; Sat, 4 Aug 2001 11:25:48 -0700 (PDT) (envelope-from tmm) Message-Id: <200108041825.f74IPm165057@freefall.freebsd.org> From: Thomas Moestl Date: Sat, 4 Aug 2001 11:25:48 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src Makefile.inc1 src/lib Makefile src/lib/libdevstat Makefile devstat.3 devstat.c devstat.h src/sbin/vinum Makefile X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG tmm 2001/08/04 11:25:48 PDT Modified files: . Makefile.inc1 lib Makefile lib/libdevstat Makefile devstat.3 devstat.c devstat.h sbin/vinum Makefile Log: Add some features to libdevstat, and overhaul the interface a bit: 1.) prefix all functions in the library with devstat_ (compatability functions are available for all functions that were chaned in an incompatible way, but are deprecated). 2.) Add a pointer to a kvm_t as the first argument to functions that used to get their information via sysctl; they behave the same as before when NULL is passed as this argument, otherwise, the information is obtained via libkvm using the supplied handle. 3.) Add a new function, devstat_compute_statistics(), that is intended to replace the old compute_stats() function. It offers more statistics data, and has a more flexible interface. libdevstat does now require libkvm; a library depedency is added, so that libkvm only needs to be explicitely specified for statically linked programs. The library major version number is bumped. Submitted by: Sergey A. Osokin , ken (3) Reviewed by: ken Revision Changes Path 1.208 +3 -2 src/Makefile.inc1 1.126 +4 -3 src/lib/Makefile 1.7 +15 -1 src/lib/libdevstat/Makefile 1.15 +492 -92 src/lib/libdevstat/devstat.3 1.7 +658 -103 src/lib/libdevstat/devstat.c 1.4 +56 -1 src/lib/libdevstat/devstat.h 1.22 +3 -3 src/sbin/vinum/Makefile To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message