From 9b2397328086b49e1f5d15b4248c6aa164c42a4d Mon Sep 17 00:00:00 2001 From: guenther <> Date: Thu, 27 Aug 2015 04:37:09 +0000 Subject: 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@ --- src/lib/libc/include/atfork.h | 5 +++-- src/lib/libc/include/ctype_private.h | 6 ++++-- 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 @@ -/* $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 @@ -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/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 @@ -/* $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 -- cgit v1.2.3-55-g6feb