summaryrefslogtreecommitdiffstats
path: root/lib/libc/include
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2015-08-27 04:37:09 +0000
committerguenther <guenther@openbsd.org>2015-08-27 04:37:09 +0000
commitbb64080b0f4926cfaad11f8655a5a0ff1c21e50f (patch)
tree2f9ddff73dde02f16705737abba78e6aa5e185c8 /lib/libc/include
parentMove the __rand48_* declarations into rand48.h, and then hide both them (diff)
downloadwireguard-openbsd-bb64080b0f4926cfaad11f8655a5a0ff1c21e50f.tar.xz
wireguard-openbsd-bb64080b0f4926cfaad11f8655a5a0ff1c21e50f.zip
Use static and __{BEGIN,ENV}_HIDDEN_DECLS to hide a bunch of internal
symbols that are not longer exported. (This improves the generated code.) ok deraadt@
Diffstat (limited to 'lib/libc/include')
-rw-r--r--lib/libc/include/atfork.h5
-rw-r--r--lib/libc/include/ctype_private.h6
2 files changed, 7 insertions, 4 deletions
diff --git a/lib/libc/include/atfork.h b/lib/libc/include/atfork.h
index 8ec611098c1..f09de4892af 100644
--- a/lib/libc/include/atfork.h
+++ b/lib/libc/include/atfork.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: atfork.h,v 1.1 2015/04/07 01:27:07 guenther Exp $ */
+/* $OpenBSD: atfork.h,v 1.2 2015/08/27 04:37:09 guenther Exp $ */
/*
* Copyright (c) 2008 Kurt Miller <kurt@openbsd.org>
@@ -40,5 +40,6 @@ struct atfork_fn {
void *fn_dso;
};
+__BEGIN_HIDDEN_DECLS
extern TAILQ_HEAD(atfork_listhead, atfork_fn) _atfork_list;
-
+__END_HIDDEN_DECLS
diff --git a/lib/libc/include/ctype_private.h b/lib/libc/include/ctype_private.h
index 39cc792ea44..cbe1b204758 100644
--- a/lib/libc/include/ctype_private.h
+++ b/lib/libc/include/ctype_private.h
@@ -1,7 +1,9 @@
-/* $OpenBSD: ctype_private.h,v 1.1 2005/08/08 05:53:00 espie Exp $ */
+/* $OpenBSD: ctype_private.h,v 1.2 2015/08/27 04:37:09 guenther Exp $ */
/* Written by Marc Espie, public domain */
#define CTYPE_NUM_CHARS 256
+
+__BEGIN_HIDDEN_DECLS
extern const char _C_ctype_[];
extern const short _C_toupper_[];
extern const short _C_tolower_[];
-
+__END_HIDDEN_DECLS