diff options
author | Rich Felker <dalias@aerifal.cx> | 2018-09-10 20:28:47 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018-09-12 14:34:32 -0400 |
commit | b07a5d66988344616d8dc61c6930be134086e99c (patch) | |
tree | c1df504b87e559ea7a66bc5bbd0ba0dbcf345d04 /src/internal | |
parent | 762cf6cdb36ec4403d833c85371a4df686e0e58d (diff) | |
download | musl-b07a5d66988344616d8dc61c6930be134086e99c.tar.gz musl-b07a5d66988344616d8dc61c6930be134086e99c.tar.xz musl-b07a5d66988344616d8dc61c6930be134086e99c.zip |
move __memalign declaration to malloc_impl.h
the malloc-implementation-private header is the only right place for this, because, being in the reserved namespace, __memalign is not interposable and thus not valid to use anywhere else. anything outside of the malloc implementation must call an appropriate-namespace public function (aligned_alloc or posix_memalign).
Diffstat (limited to 'src/internal')
-rw-r--r-- | src/internal/malloc_impl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/internal/malloc_impl.h b/src/internal/malloc_impl.h index 40d16960..88b4f670 100644 --- a/src/internal/malloc_impl.h +++ b/src/internal/malloc_impl.h @@ -12,6 +12,8 @@ void *__expand_heap(size_t *); void __malloc_donate(char *, char *); +void *__memalign(size_t, size_t); + struct chunk { size_t psize, csize; struct chunk *next, *prev; |