summaryrefslogtreecommitdiff
path: root/src/include/time.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-09-11 15:58:46 -0400
committerRich Felker <dalias@aerifal.cx>2018-09-12 14:34:37 -0400
commit0676c3a34c7bf12b33f8f5efb92476f4ffc7f20e (patch)
tree50f0e611bc15084bedb7003913bb6fdf21c2c631 /src/include/time.h
parentced75472d7e3d73d5b057e36ccbc7b7fcba95104 (diff)
downloadmusl-0676c3a34c7bf12b33f8f5efb92476f4ffc7f20e.tar.gz
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.
Diffstat (limited to 'src/include/time.h')
-rw-r--r--src/include/time.h10
1 files changed, 5 insertions, 5 deletions
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