This is already a requirement of memalign(3). aligned_alloc(3) is indeed exactly equivalent to memalign(3), since ISO C17.
Fixes: 7fd1e0f2be21 (2023-05-20; "posix_memalign.3: Update aligned_alloc(3) to match C17") Reported-by: Seth McDonald <[email protected]> Signed-off-by: Alejandro Colomar <[email protected]> --- man/man3/posix_memalign.3 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/man/man3/posix_memalign.3 b/man/man3/posix_memalign.3 index 397f65aec..9c4a0bff9 100644 --- a/man/man3/posix_memalign.3 +++ b/man/man3/posix_memalign.3 @@ -83,10 +83,7 @@ .SH DESCRIPTION .P .BR aligned_alloc () is the same as -.BR memalign (), -except for the added restriction that -.I alignment -must be a power of two. +.BR memalign (). .P The obsolete function .BR valloc () -- 2.51.0

