From 37ac1a7962312051ecd4d5ac042973e6aab74d8b Mon Sep 17 00:00:00 2001 From: tmm Date: Sat, 4 Aug 2001 18:25:48 +0000 Subject: 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 --- lib/libdevstat/Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'lib/libdevstat/Makefile') diff --git a/lib/libdevstat/Makefile b/lib/libdevstat/Makefile index ea52a6e..6655b20 100644 --- a/lib/libdevstat/Makefile +++ b/lib/libdevstat/Makefile @@ -3,11 +3,25 @@ MAINTAINER=ken@FreeBSD.ORG LIB= devstat +SHLIB_MAJOR= 3 +SHLIB_MINOR= 0 SRCS= devstat.c INCS= devstat.h +DPADD+= ${LIBKVM} +LDADD+= -lkvm + MAN= devstat.3 +MLINKS+=devstat.3 devstat_getnumdevs.3 +MLINKS+=devstat.3 devstat_getgeneration.3 +MLINKS+=devstat.3 devstat_getversion.3 +MLINKS+=devstat.3 devstat_checkversion.3 +MLINKS+=devstat.3 devstat_getdevs.3 +MLINKS+=devstat.3 devstat_selectdevs.3 +MLINKS+=devstat.3 devstat_buildmatch.3 +MLINKS+=devstat.3 devstat_compute_statistics.3 +MLINKS+=devstat.3 devstat_compute_etime.3 MLINKS+=devstat.3 getnumdevs.3 MLINKS+=devstat.3 getgeneration.3 MLINKS+=devstat.3 getversion.3 -- cgit v1.1