summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2015-10-04 07:33:46 +0000
committerguenther <guenther@openbsd.org>2015-10-04 07:33:46 +0000
commit7645a7bf7333eb7d257efb0996dadec079cdff5a (patch)
tree956d5422e2d9a23525894d039a86c12175be081a /lib/libc
parentAdd tame(2) to file(1) and drop the old systrace(4) sandbox. tame(2) is (diff)
downloadwireguard-openbsd-7645a7bf7333eb7d257efb0996dadec079cdff5a.tar.xz
wireguard-openbsd-7645a7bf7333eb7d257efb0996dadec079cdff5a.zip
wrap _fwalk() so internal calls are direct (at least until we stop
exporting it)
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdio/fwalk.c3
-rw-r--r--lib/libc/stdio/local.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/stdio/fwalk.c b/lib/libc/stdio/fwalk.c
index 8ac6628aa2b..fffa5c76274 100644
--- a/lib/libc/stdio/fwalk.c
+++ b/lib/libc/stdio/fwalk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fwalk.c,v 1.10 2009/11/09 00:18:27 kurt Exp $ */
+/* $OpenBSD: fwalk.c,v 1.11 2015/10/04 07:33:46 guenther Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
@@ -51,3 +51,4 @@ _fwalk(int (*function)(FILE *))
}
return (ret);
}
+DEF_STRONG(_fwalk);
diff --git a/lib/libc/stdio/local.h b/lib/libc/stdio/local.h
index 56cdf22d9f1..79f23654524 100644
--- a/lib/libc/stdio/local.h
+++ b/lib/libc/stdio/local.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: local.h,v 1.21 2015/08/27 04:37:09 guenther Exp $ */
+/* $OpenBSD: local.h,v 1.22 2015/10/04 07:33:46 guenther Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -43,6 +43,7 @@
void _cleanup(void);
int _fwalk(int (*)(FILE *));
+PROTO_NORMAL(_fwalk);
extern void __atexit_register_cleanup(void (*)(void));