summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2009-06-07 03:09:35 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2009-06-07 03:09:35 +0000
commit015c62b69daf0ef2f78e7e50cded1b5eae40ee94 (patch)
treed0175d8b91c8bd05a0e7d763d83881d134f27273 /include
parent35f0486b79701fae79f4e1da115887021cca6abf (diff)
Add kvm_getfile2 which uses KERN_FILE2 when possible, falling
back on kmem grovelling for non-live kernels. OK deraadt@
Diffstat (limited to 'include')
-rw-r--r--include/kvm.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/kvm.h b/include/kvm.h
index 027ef420543..5366024f016 100644
--- a/include/kvm.h
+++ b/include/kvm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: kvm.h,v 1.13 2006/03/31 03:09:16 deraadt Exp $ */
+/* $OpenBSD: kvm.h,v 1.14 2009/06/07 03:09:34 millert Exp $ */
/* $NetBSD: kvm.h,v 1.7 1996/04/19 12:02:50 leo Exp $ */
/*-
@@ -66,6 +66,8 @@ char **kvm_getenvv2(kvm_t *, const struct kinfo_proc2 *, int);
char *kvm_geterr(kvm_t *);
int kvm_getloadavg(kvm_t *, double [], int);
char *kvm_getfiles(kvm_t *, int, int, int *);
+struct kinfo_file2 *
+ kvm_getfile2(kvm_t *, int, int, size_t, int *);
struct kinfo_proc *
kvm_getprocs(kvm_t *, int, int, int *);
struct kinfo_proc2 *