Skip to contentSkip to conversation

aligned_alloc: update to match C17

PATCH DJ Delorie 2 participants 4 messages May 8, 2023 – May 9, 2023 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#1 lore raw

Hey DJ!

Quoted 2 lines · DJ Delorie

Thanks for the patch! IIRC this is something that someone reported in the list a few months ago, right? Would you mind mentioning the reporter and CC anyone involved in the discussion? If it's difficult for you to find those, tell me and I'll do it.

Cheers,
Alex

Quoted 18 lines
man3/posix_memalign.3 +2 -3
index 9bc6eb9a4..88e4a8b63 100644
@@ -91,9 +91,8 @@ The function
 is the same as
 .BR memalign (),
 except for the added restriction that
-.I size
-should be a multiple of
-.IR alignment .
+.I alignment
+must be a power of two.
 .PP
 The obsolete function
 .BR valloc ()
Signature · 2 lines
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5
author
#2 lore raw
Quoted 2 lines · Alejandro Colomar

Thanks for the patch! IIRC this is something that someone reported in the list a few months ago, right?

Years ago, actually.

Quoted 3 lines

Would you mind mentioning the reporter
and CC anyone involved in the discussion? If it's difficult for you to find those, tell me and I'll do it.

I got them:

man3/posix_memalign.3 +2 -3
index 9bc6eb9a4..88e4a8b63 100644
@@ -91,9 +91,8 @@ The function
 is the same as
 .BR memalign (),
 except for the added restriction that
-.I size
-should be a multiple of
-.IR alignment .
+.I alignment
+must be a power of two.
 .PP
 The obsolete function
 .BR valloc ()
#3 lore raw

Hi DJ,

Quoted 5 lines · DJ Delorie
Quoted 2 lines · Alejandro Colomar

Thanks for the patch! IIRC this is something that someone reported in the list a few months ago, right?

Years ago, actually.

True :)

I found this one too: <https://lore.kernel.org/linux-man/[email protected]/>
I've CCd that Valgrind maintainer, since he's probably interested in this.

I'll probably apply the patch tomorrow, after some sleep.

Cheers,
Alex

Quoted 29 lines
Quoted 4 lines

Would you mind mentioning the reporter
and CC anyone involved in the discussion? If it's difficult for you to find those, tell me and I'll do it.

I got them:

man3/posix_memalign.3 +2 -3
index 9bc6eb9a4..88e4a8b63 100644
@@ -91,9 +91,8 @@ The function
 is the same as
 .BR memalign (),
 except for the added restriction that
-.I size
-should be a multiple of
-.IR alignment .
+.I alignment
+must be a power of two.
 .PP
 The obsolete function
 .BR valloc ()
Signature · 2 lines
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5