public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* aligned_alloc: update to match C17
@ 2023-05-08 23:31 DJ Delorie
  2023-05-09  0:01 ` Alejandro Colomar
  0 siblings, 1 reply; 4+ messages in thread
From: DJ Delorie @ 2023-05-08 23:31 UTC (permalink / raw)
  To: linux-man


Link: <https://sourceware.org/pipermail/libc-alpha/2023-May/147810.html>
Signed-off-by: DJ Delorie <dj@redhat.com>

diff --git a/man3/posix_memalign.3 b/man3/posix_memalign.3
index 9bc6eb9a4..88e4a8b63 100644
--- a/man3/posix_memalign.3
+++ b/man3/posix_memalign.3
@@ -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 ()


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: aligned_alloc: update to match C17
  2023-05-08 23:31 aligned_alloc: update to match C17 DJ Delorie
@ 2023-05-09  0:01 ` Alejandro Colomar
  2023-05-09  0:43   ` DJ Delorie
  0 siblings, 1 reply; 4+ messages in thread
From: Alejandro Colomar @ 2023-05-09  0:01 UTC (permalink / raw)
  To: DJ Delorie, linux-man


[-- Attachment #1.1: Type: text/plain, Size: 994 bytes --]

Hey DJ!

On 5/9/23 01:31, DJ Delorie wrote:
> Link: <https://sourceware.org/pipermail/libc-alpha/2023-May/147810.html>
> Signed-off-by: DJ Delorie <dj@redhat.com>

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

> 
> diff --git a/man3/posix_memalign.3 b/man3/posix_memalign.3
> index 9bc6eb9a4..88e4a8b63 100644
> --- a/man3/posix_memalign.3
> +++ b/man3/posix_memalign.3
> @@ -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 ()
> 

-- 
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: aligned_alloc: update to match C17
  2023-05-09  0:01 ` Alejandro Colomar
@ 2023-05-09  0:43   ` DJ Delorie
  2023-05-09  0:54     ` Alejandro Colomar
  0 siblings, 1 reply; 4+ messages in thread
From: DJ Delorie @ 2023-05-09  0:43 UTC (permalink / raw)
  To: Alejandro Colomar; +Cc: linux-man

Alejandro Colomar <alx.manpages@gmail.com> writes:
> Thanks for the patch!  IIRC this is something that someone reported in
> the list a few months ago, right?

Years ago, actually.

> 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:

Link: <https://sourceware.org/pipermail/libc-alpha/2023-May/147810.html>
Link: <https://patchwork.sourceware.org/project/glibc/patch/33ec9e0c1e587813b90e8aa771c2c8e6e379dd48.camel@posteo.net/>
Cc: John Scott <jscott@posteo.net>
Signed-off-by: DJ Delorie <dj@redhat.com>

diff --git a/man3/posix_memalign.3 b/man3/posix_memalign.3
index 9bc6eb9a4..88e4a8b63 100644
--- a/man3/posix_memalign.3
+++ b/man3/posix_memalign.3
@@ -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 ()


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: aligned_alloc: update to match C17
  2023-05-09  0:43   ` DJ Delorie
@ 2023-05-09  0:54     ` Alejandro Colomar
  0 siblings, 0 replies; 4+ messages in thread
From: Alejandro Colomar @ 2023-05-09  0:54 UTC (permalink / raw)
  To: DJ Delorie; +Cc: linux-man, Floyd, Paul, John Scott


[-- Attachment #1.1: Type: text/plain, Size: 1536 bytes --]

Hi DJ,

On 5/9/23 02:43, DJ Delorie wrote:
> Alejandro Colomar <alx.manpages@gmail.com> writes:
>> 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/d79b505c-5b19-331c-5b25-d40adc9cc843@wanadoo.fr/>
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


> 
>> 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:
> 
> Link: <https://sourceware.org/pipermail/libc-alpha/2023-May/147810.html>
> Link: <https://patchwork.sourceware.org/project/glibc/patch/33ec9e0c1e587813b90e8aa771c2c8e6e379dd48.camel@posteo.net/>
> Cc: John Scott <jscott@posteo.net>
> Signed-off-by: DJ Delorie <dj@redhat.com>
> 
> diff --git a/man3/posix_memalign.3 b/man3/posix_memalign.3
> index 9bc6eb9a4..88e4a8b63 100644
> --- a/man3/posix_memalign.3
> +++ b/man3/posix_memalign.3
> @@ -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 ()
> 

-- 
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-05-09  0:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-08 23:31 aligned_alloc: update to match C17 DJ Delorie
2023-05-09  0:01 ` Alejandro Colomar
2023-05-09  0:43   ` DJ Delorie
2023-05-09  0:54     ` Alejandro Colomar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox