summaryrefslogtreecommitdiffstats
path: root/lib/libkvm/kvm_file2.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-11-16 00:37:11 +0000
committerguenther <guenther@openbsd.org>2013-11-16 00:37:11 +0000
commit26de9129c48fec1d0d58ed1148e82cc2b6dddbdf (patch)
tree282777925705e84d7bbb4ff7d5e988489f5092d1 /lib/libkvm/kvm_file2.c
parentRemove dead assignments and now unused variables. (diff)
downloadwireguard-openbsd-26de9129c48fec1d0d58ed1148e82cc2b6dddbdf.tar.xz
wireguard-openbsd-26de9129c48fec1d0d58ed1148e82cc2b6dddbdf.zip
Prep for hidden visibility: move the vnode/file related function
declarations, including _kvm_getftype(), into a new header, kvm_file.h, so that we don't have to pull <sys/vnode.h> into all the .c files. No more extern function declaration in .c files. ok millert@
Diffstat (limited to 'lib/libkvm/kvm_file2.c')
-rw-r--r--lib/libkvm/kvm_file2.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libkvm/kvm_file2.c b/lib/libkvm/kvm_file2.c
index 7e73671a848..799dbe20968 100644
--- a/lib/libkvm/kvm_file2.c
+++ b/lib/libkvm/kvm_file2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kvm_file2.c,v 1.30 2013/11/12 14:49:41 guenther Exp $ */
+/* $OpenBSD: kvm_file2.c,v 1.31 2013/11/16 00:37:11 guenther Exp $ */
/*
* Copyright (c) 2009 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -114,6 +114,7 @@
#include <unistd.h>
#include "kvm_private.h"
+#include "kvm_file.h"
static struct kinfo_file *kvm_deadfile_byfile(kvm_t *, int, int,
size_t, int *);
@@ -123,8 +124,6 @@ static int fill_file(kvm_t *, struct kinfo_file *, struct file *, u_long,
struct vnode *, struct proc *, int, pid_t);
static int filestat(kvm_t *, struct kinfo_file *, struct vnode *);
-mode_t _kvm_getftype(enum vtype v_type);
-
LIST_HEAD(proclist, proc);
struct kinfo_file *