Document aligned_alloc(3), and then say memalign(3) is equivalent,
instead of the other way around.  aligned_alloc(3) is the important one.

Signed-off-by: Alejandro Colomar <[email protected]>
---
 man/man3/posix_memalign.3 | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/man/man3/posix_memalign.3 b/man/man3/posix_memalign.3
index 9c4a0bff9..4cf63d283 100644
--- a/man/man3/posix_memalign.3
+++ b/man/man3/posix_memalign.3
@@ -70,8 +70,7 @@ .SH DESCRIPTION
 .\" glibc does this:
 or a unique pointer value.
 .P
-The obsolete function
-.BR memalign ()
+.BR aligned_alloc ()
 allocates
 .I size
 bytes and returns a pointer to the allocated memory.
@@ -81,9 +80,10 @@ .SH DESCRIPTION
 .\" The behavior of memalign() for size==0 is as for posix_memalign()
 .\" but no standards govern this.
 .P
-.BR aligned_alloc ()
+The obsolete function
+.BR memalign ()
 is the same as
-.BR memalign ().
+.BR aligned_alloc ().
 .P
 The obsolete function
 .BR valloc ()
-- 
2.51.0

Reply via email to