From d1e6fdd3674eff0e09554c7ddc431acb8925232f Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 3 Jun 2020 19:11:23 -0400 Subject: reverse dependency order of memalign and aligned_alloc this change eliminates the internal __memalign function and makes the memalign and posix_memalign functions completely independent of the malloc implementation, written portably in terms of aligned_alloc. --- src/malloc/memalign.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/malloc/memalign.c') diff --git a/src/malloc/memalign.c b/src/malloc/memalign.c index cf9dfbda..e06c76ed 100644 --- a/src/malloc/memalign.c +++ b/src/malloc/memalign.c @@ -3,7 +3,7 @@ #include #include "malloc_impl.h" -void *__memalign(size_t align, size_t len) +void *aligned_alloc(size_t align, size_t len) { unsigned char *mem, *new; @@ -50,5 +50,3 @@ void *__memalign(size_t align, size_t len) __bin_chunk(c); return new; } - -weak_alias(__memalign, memalign); -- cgit v1.2.1