summaryrefslogtreecommitdiffstats
path: root/lib/libkvm
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-11-17 20:27:14 +0000
committerguenther <guenther@openbsd.org>2013-11-17 20:27:14 +0000
commit3e334d286937d262fa812f81d1f89e963595a76b (patch)
treea2b323a3d380c20d1328b2b4ace17b35d9d96395 /lib/libkvm
parentInclude unistd.h as it is the standard location for getopt(). (diff)
downloadwireguard-openbsd-3e334d286937d262fa812f81d1f89e963595a76b.tar.xz
wireguard-openbsd-3e334d286937d262fa812f81d1f89e963595a76b.zip
Mark internal symbols as hidden. This removes symbols from the ABI,
albeit ones no one should be using, so major bump the shlib. ok kettenis@ ports testing by landry@
Diffstat (limited to 'lib/libkvm')
-rw-r--r--lib/libkvm/kvm_file.h4
-rw-r--r--lib/libkvm/kvm_private.h4
-rw-r--r--lib/libkvm/shlib_version2
3 files changed, 7 insertions, 3 deletions
diff --git a/lib/libkvm/kvm_file.h b/lib/libkvm/kvm_file.h
index fea2859f90d..759d4fdd10a 100644
--- a/lib/libkvm/kvm_file.h
+++ b/lib/libkvm/kvm_file.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: kvm_file.h,v 1.1 2013/11/16 00:37:11 guenther Exp $ */
+/* $OpenBSD: kvm_file.h,v 1.2 2013/11/17 20:27:14 guenther Exp $ */
/* $NetBSD: kvm_private.h,v 1.7 1996/05/05 04:32:15 gwr Exp $ */
/*-
@@ -39,7 +39,9 @@
/*
* Functions used internally by kvm vnode/file routines
*/
+__BEGIN_HIDDEN_DECLS
mode_t _kvm_getftype(enum vtype);
int _kvm_stat_cd9660(kvm_t *, struct kinfo_file *, struct vnode *);
int _kvm_stat_udf(kvm_t *, struct kinfo_file *, struct vnode *);
int _kvm_stat_ntfs(kvm_t *, struct kinfo_file *, struct vnode *);
+__END_HIDDEN_DECLS
diff --git a/lib/libkvm/kvm_private.h b/lib/libkvm/kvm_private.h
index 0e735d5bf95..967f4e5cb9b 100644
--- a/lib/libkvm/kvm_private.h
+++ b/lib/libkvm/kvm_private.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: kvm_private.h,v 1.21 2013/11/16 00:47:49 guenther Exp $ */
+/* $OpenBSD: kvm_private.h,v 1.22 2013/11/17 20:27:14 guenther Exp $ */
/* $NetBSD: kvm_private.h,v 1.7 1996/05/05 04:32:15 gwr Exp $ */
/*-
@@ -90,6 +90,7 @@ struct __kvm {
/*
* Functions used internally by kvm, but across kvm modules.
*/
+__BEGIN_HIDDEN_DECLS
void _kvm_err(kvm_t *kd, const char *program, const char *fmt, ...)
__attribute__((__format__ (printf, 3, 4)));
int _kvm_dump_mkheader(kvm_t *kd_live, kvm_t *kd_dump);
@@ -103,3 +104,4 @@ void _kvm_syserr(kvm_t *kd, const char *program, const char *fmt, ...)
__attribute__((__format__ (printf, 3, 4)));
ssize_t _kvm_pread(kvm_t *, int, void *, size_t, off_t);
ssize_t _kvm_pwrite(kvm_t *, int, const void *, size_t, off_t);
+__END_HIDDEN_DECLS
diff --git a/lib/libkvm/shlib_version b/lib/libkvm/shlib_version
index 77913220429..84e2c2920d7 100644
--- a/lib/libkvm/shlib_version
+++ b/lib/libkvm/shlib_version
@@ -1,2 +1,2 @@
-major=15
+major=16
minor=0