diff options
author | Rich Felker <dalias@aerifal.cx> | 2018-09-11 15:58:46 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018-09-12 14:34:37 -0400 |
commit | 0676c3a34c7bf12b33f8f5efb92476f4ffc7f20e (patch) | |
tree | 50f0e611bc15084bedb7003913bb6fdf21c2c631 /src/include/sys/mman.h | |
parent | ced75472d7e3d73d5b057e36ccbc7b7fcba95104 (diff) | |
download | musl-0676c3a34c7bf12b33f8f5efb92476f4ffc7f20e.tar.gz musl-0676c3a34c7bf12b33f8f5efb92476f4ffc7f20e.tar.bz2 musl-0676c3a34c7bf12b33f8f5efb92476f4ffc7f20e.tar.xz musl-0676c3a34c7bf12b33f8f5efb92476f4ffc7f20e.zip |
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/sys/mman.h')
-rw-r--r-- | src/include/sys/mman.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/include/sys/mman.h b/src/include/sys/mman.h index 28394dd5..57c5bd3d 100644 --- a/src/include/sys/mman.h +++ b/src/include/sys/mman.h @@ -3,18 +3,18 @@ #include "../../../include/sys/mman.h" -void __vm_wait(void); -void __vm_lock(void); -void __vm_unlock(void); +hidden void __vm_wait(void); +hidden void __vm_lock(void); +hidden void __vm_unlock(void); -void *__mmap(void *, size_t, int, int, int, off_t); -int __munmap(void *, size_t); -void *__mremap(void *, size_t, size_t, int, ...); -int __madvise(void *, size_t, int); -int __mprotect(void *, size_t, int); +hidden void *__mmap(void *, size_t, int, int, int, off_t); +hidden int __munmap(void *, size_t); +hidden void *__mremap(void *, size_t, size_t, int, ...); +hidden int __madvise(void *, size_t, int); +hidden int __mprotect(void *, size_t, int); -const unsigned char *__map_file(const char *, size_t *); +hidden const unsigned char *__map_file(const char *, size_t *); -char *__shm_mapname(const char *, char *); +hidden char *__shm_mapname(const char *, char *); #endif |