Here's how this patch looks like when reading the manual page:

        $ MANWIDTH=64 diffman-git HEAD^ 
        --- HEAD^^:man/man3/aligned_alloc.3
        +++ HEAD^:man/man3/aligned_alloc.3
        @@ -52,6 +52,39 @@ STANDARDS
         HISTORY
              glibc 2.16.  C11, POSIX.1‐2024.
         
        +   C11
        +     In C11, the specification of this function had several is‐
        +     sues.
        +
        +     •  size had to be a multiple of alignment.  Otherwise, the
        +        behavior was undefined.
        +
        +        Some implementations still implement that restriction,
        +        or claim to have it.
        +
        +        OpenBSD
        +               The function reports an error if this restric‐
        +               tion is violated, without exploiting the UB.
        +
        +        FreeBSD
        +        jemalloc
        +               The documentation claims to have this restric‐
        +               tion, but the implementation works correctly if
        +               it is violated.
        +
        +        It was only a theoretical UB.  No known implementation
        +        has ever exploited this UB.
        +
        +        This restriction was removed in C17.
        +
        +     •  If alignment was not a power of two, the behavior was
        +        undefined.
        +
        +        No implementations ever exploited this UB.  It was only
        +        a theoretical UB.
        +
        +        This UB was removed in C17.
        +
         NOTES
              On many systems there are alignment restrictions, for ex‐
              ample, on buffers used for direct block device I/O.  POSIX


Cheers,
Alex

-- 
<https://www.alejandro-colomar.es>

Attachment: signature.asc
Description: PGP signature

Reply via email to