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/time.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/include/time.h') diff --git a/src/include/time.h b/src/include/time.h index 991f0b4d..24c87973 100644 --- a/src/include/time.h +++ b/src/include/time.h @@ -3,12 +3,12 @@ #include "../../include/time.h" -int __clock_gettime(clockid_t, struct timespec *); +hidden int __clock_gettime(clockid_t, struct timespec *); -char *__asctime_r(const struct tm *, char *); -struct tm *__gmtime_r(const time_t *restrict, struct tm *restrict); -struct tm *__localtime_r(const time_t *restrict, struct tm *restrict); +hidden char *__asctime_r(const struct tm *, char *); +hidden struct tm *__gmtime_r(const time_t *restrict, struct tm *restrict); +hidden struct tm *__localtime_r(const time_t *restrict, struct tm *restrict); -size_t __strftime_l(char *restrict, size_t, const char *restrict, const struct tm *restrict, locale_t); +hidden size_t __strftime_l(char *restrict, size_t, const char *restrict, const struct tm *restrict, locale_t); #endif -- cgit 1.4.1