summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2013-03-24 17:45:50 +0000
committerderaadt <deraadt@openbsd.org>2013-03-24 17:45:50 +0000
commitf093de25b8ab131d0fd448565d40c2e0e634fbe7 (patch)
treedf9402005ec7261fc954ecd302f5211d2d1ec23f
parenthide some kernel functions from userland (diff)
downloadwireguard-openbsd-f093de25b8ab131d0fd448565d40c2e0e634fbe7.tar.xz
wireguard-openbsd-f093de25b8ab131d0fd448565d40c2e0e634fbe7.zip
hide some userland functions from the kernel
-rw-r--r--sys/sys/statvfs.h8
-rw-r--r--sys/sys/utsname.h4
2 files changed, 8 insertions, 4 deletions
diff --git a/sys/sys/statvfs.h b/sys/sys/statvfs.h
index acc09ad1c64..7c6492b063e 100644
--- a/sys/sys/statvfs.h
+++ b/sys/sys/statvfs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: statvfs.h,v 1.2 2008/03/22 19:37:05 otto Exp $ */
+/* $OpenBSD: statvfs.h,v 1.3 2013/03/24 17:45:50 deraadt Exp $ */
/*
* Copyright (c) 2008 Otto Moerbeek <otto@drijf.net>
@@ -38,9 +38,11 @@ struct statvfs {
#define ST_RDONLY 0x0001UL /* read-only filesystem */
#define ST_NOSUID 0x0002UL /* nosuid flag set */
+#ifndef _KERNEL
__BEGIN_DECLS
-int fstatvfs(int, struct statvfs *);
-int statvfs(const char *, struct statvfs *);
+int fstatvfs(int, struct statvfs *);
+int statvfs(const char *, struct statvfs *);
__END_DECLS
+#endif /* !_KERNEL */
#endif /* !_SYS_STATVFS_H_ */
diff --git a/sys/sys/utsname.h b/sys/sys/utsname.h
index 47e1b477eaf..22bbd597480 100644
--- a/sys/sys/utsname.h
+++ b/sys/sys/utsname.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: utsname.h,v 1.5 2003/06/02 23:28:22 millert Exp $ */
+/* $OpenBSD: utsname.h,v 1.6 2013/03/24 17:45:50 deraadt Exp $ */
/* $NetBSD: utsname.h,v 1.6 1994/06/29 06:46:11 cgd Exp $ */
/*-
@@ -50,8 +50,10 @@ struct utsname {
#include <sys/cdefs.h>
+#ifndef _KERNEL
__BEGIN_DECLS
int uname(struct utsname *);
__END_DECLS
+#endif /* !_KERNEL */
#endif /* !_SYS_UTSNAME_H */