summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorguenther <>2015-08-27 04:37:09 +0000
committerguenther <>2015-08-27 04:37:09 +0000
commit9b2397328086b49e1f5d15b4248c6aa164c42a4d (patch)
tree8c5a65fc0595a111de95e3f98ca573af9e08d429 /src/lib
parent809239262088f866c609ff697c71459aba004e00 (diff)
downloadopenbsd-9b2397328086b49e1f5d15b4248c6aa164c42a4d.tar.gz
openbsd-9b2397328086b49e1f5d15b4248c6aa164c42a4d.tar.bz2
openbsd-9b2397328086b49e1f5d15b4248c6aa164c42a4d.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 'src/lib')
-rw-r--r--src/lib/libc/include/atfork.h5
-rw-r--r--src/lib/libc/include/ctype_private.h6
2 files changed, 7 insertions, 4 deletions
diff --git a/src/lib/libc/include/atfork.h b/src/lib/libc/include/atfork.h
index 8ec611098c..f09de4892a 100644
--- a/src/lib/libc/include/atfork.h
+++ b/src/lib/libc/include/atfork.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: atfork.h,v 1.1 2015/04/07 01:27:07 guenther Exp $ */ 1/* $OpenBSD: atfork.h,v 1.2 2015/08/27 04:37:09 guenther Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2008 Kurt Miller <kurt@openbsd.org> 4 * Copyright (c) 2008 Kurt Miller <kurt@openbsd.org>
@@ -40,5 +40,6 @@ struct atfork_fn {
40 void *fn_dso; 40 void *fn_dso;
41}; 41};
42 42
43__BEGIN_HIDDEN_DECLS
43extern TAILQ_HEAD(atfork_listhead, atfork_fn) _atfork_list; 44extern TAILQ_HEAD(atfork_listhead, atfork_fn) _atfork_list;
44 45__END_HIDDEN_DECLS
diff --git a/src/lib/libc/include/ctype_private.h b/src/lib/libc/include/ctype_private.h
index 39cc792ea4..cbe1b20475 100644
--- a/src/lib/libc/include/ctype_private.h
+++ b/src/lib/libc/include/ctype_private.h
@@ -1,7 +1,9 @@
1/* $OpenBSD: ctype_private.h,v 1.1 2005/08/08 05:53:00 espie Exp $ */ 1/* $OpenBSD: ctype_private.h,v 1.2 2015/08/27 04:37:09 guenther Exp $ */
2/* Written by Marc Espie, public domain */ 2/* Written by Marc Espie, public domain */
3#define CTYPE_NUM_CHARS 256 3#define CTYPE_NUM_CHARS 256
4
5__BEGIN_HIDDEN_DECLS
4extern const char _C_ctype_[]; 6extern const char _C_ctype_[];
5extern const short _C_toupper_[]; 7extern const short _C_toupper_[];
6extern const short _C_tolower_[]; 8extern const short _C_tolower_[];
7 9__END_HIDDEN_DECLS