From 0af6d6f5028517ebbfba940fe74a35f37de14aa9 Mon Sep 17 00:00:00 2001 From: guenther <> Date: Tue, 22 Oct 2013 16:40:25 +0000 Subject: [PATCH] - add UNIX-domain socket info to struct kinfo_file2 - convert netstat from kvm_getfiles() to kvm_getfile2() using that - delete kvm_getfiles() and KERN_FILE as no longer used (bump libkvm's major) - rename kvm_getfile2() to kvm_getfiles(), kinfo_file2 to kinfo_file and KERN_FILE2 to KERN_FILE. ok deraadt@, millert@ ports scan sthen@ --- src/include/kvm.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/include/kvm.h b/src/include/kvm.h index ea7e2cd6..9c832392 100644 --- a/src/include/kvm.h +++ b/src/include/kvm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm.h,v 1.17 2012/12/05 23:19:57 deraadt Exp $ */ +/* $OpenBSD: kvm.h,v 1.18 2013/10/22 16:40:25 guenther Exp $ */ /* $NetBSD: kvm.h,v 1.7 1996/04/19 12:02:50 leo Exp $ */ /*- @@ -61,9 +61,8 @@ char **kvm_getargv(kvm_t *, const struct kinfo_proc *, int); char **kvm_getenvv(kvm_t *, const struct kinfo_proc *, 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_file * + kvm_getfiles(kvm_t *, int, int, size_t, int *); struct kinfo_proc * kvm_getprocs(kvm_t *, int, int, size_t, int *); int kvm_nlist(kvm_t *, struct nlist *);