aboutsummaryrefslogtreecommitdiff
path: root/lib/libkvm/kvm_getswapinfo.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1999-12-27 07:14:58 +0000
committerPeter Wemm <peter@FreeBSD.org>1999-12-27 07:14:58 +0000
commitc4a7cdb3b6f8e15dbf191dc8ba275fd8522c1467 (patch)
treee37fa69ea051833ecc995d1db2fa6ac8d03f5897 /lib/libkvm/kvm_getswapinfo.c
parentc2696359ab2f07077cb400d71b7dc4d3340a98e8 (diff)
downloadsrc-c4a7cdb3b6f8e15dbf191dc8ba275fd8522c1467.tar.gz
src-c4a7cdb3b6f8e15dbf191dc8ba275fd8522c1467.zip
Use kldsym(2) to lookup symbol values. This avoids the kvm_mkdb juggling
and is module aware. Yes, this means that kvm_nlist(3) will find symbols in loaded modules. The emulation of the nlist struct is pretty crude but seems to work well enough for all the users in the tree that I found.
Notes
Notes: svn path=/head/; revision=55127
Diffstat (limited to 'lib/libkvm/kvm_getswapinfo.c')
-rw-r--r--lib/libkvm/kvm_getswapinfo.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/libkvm/kvm_getswapinfo.c b/lib/libkvm/kvm_getswapinfo.c
index 05aeedfd7397..4c85e82709e9 100644
--- a/lib/libkvm/kvm_getswapinfo.c
+++ b/lib/libkvm/kvm_getswapinfo.c
@@ -28,7 +28,6 @@ static const char rcsid[] =
#include <err.h>
#include <fcntl.h>
#include <kvm.h>
-#include <limits.h>
#include <nlist.h>
#include <stdio.h>
#include <stdlib.h>