From 0676c3a34c7bf12b33f8f5efb92476f4ffc7f20e Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 11 Sep 2018 15:58:46 -0400 Subject: use wrapper headers to hide most namespaced/internally-public symbols not all prefixed symbols can be made hidden. some are part of ABI-compat (e.g. __nl_langinfo_l) and others are ABI as a consequence of the way copy relocations for weak aliases work in ELF shared libraries. most, however, can be made hidden. with this commit, there should be no remaining unintentionally visible symbols exported from libc.so. --- src/include/stdlib.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/include/stdlib.h') diff --git a/src/include/stdlib.h b/src/include/stdlib.h index 8b8fe9c8..d38a5417 100644 --- a/src/include/stdlib.h +++ b/src/include/stdlib.h @@ -3,10 +3,10 @@ #include "../../include/stdlib.h" -int __putenv(char *, size_t, char *); -void __env_rm_add(char *, char *); -int __mkostemps(char *, int, int); -int __ptsname_r(int, char *, size_t); -char *__randname(char *); +hidden int __putenv(char *, size_t, char *); +hidden void __env_rm_add(char *, char *); +hidden int __mkostemps(char *, int, int); +hidden int __ptsname_r(int, char *, size_t); +hidden char *__randname(char *); #endif -- cgit v1.2.1