Date: Sat, 4 Aug 2001 11:25:48 -0700 (PDT) From: Thomas Moestl <tmm@FreeBSD.org> 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 Message-ID: <200108041825.f74IPm165057@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <osa@freebsd.org.ru>, 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108041825.f74IPm165057>