move __memalign declaration to malloc_impl.h
commitb07a5d66988344616d8dc61c6930be134086e99c
authorRich Felker <dalias@aerifal.cx>
Tue, 11 Sep 2018 00:28:47 +0000 (10 20:28 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 12 Sep 2018 18:34:32 +0000 (12 14:34 -0400)
treec1df504b87e559ea7a66bc5bbd0ba0dbcf345d04
parent762cf6cdb36ec4403d833c85371a4df686e0e58d
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).
src/internal/malloc_impl.h
src/malloc/aligned_alloc.c
src/malloc/posix_memalign.c