diff options
author | DJ Delorie <dj@redhat.com> | 2023-03-21 00:46:43 -0400 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2023-05-08 16:40:10 -0400 |
commit | d1417176a35d27ffb8da0ffb1e33154163b6eeb2 (patch) | |
tree | aa3e8cd61cadf5fec88e4cf57cfaf4b0e0ae6538 /manual | |
parent | cea74a4a24c36202309e8254f1f938e2166488f3 (diff) | |
download | glibc-d1417176a35d27ffb8da0ffb1e33154163b6eeb2.tar.gz glibc-d1417176a35d27ffb8da0ffb1e33154163b6eeb2.tar.xz glibc-d1417176a35d27ffb8da0ffb1e33154163b6eeb2.zip |
aligned_alloc: conform to C17
This patch adds the strict checking for power-of-two alignments in aligned_alloc(), and updates the manual accordingly. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'manual')
-rw-r--r-- | manual/memory.texi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/manual/memory.texi b/manual/memory.texi index 9d3398a326..8952ff2bfa 100644 --- a/manual/memory.texi +++ b/manual/memory.texi @@ -995,7 +995,7 @@ power of two than that, use @code{aligned_alloc} or @code{posix_memalign}. @c Alias to memalign. The @code{aligned_alloc} function allocates a block of @var{size} bytes whose address is a multiple of @var{alignment}. The @var{alignment} must be a -power of two and @var{size} must be a multiple of @var{alignment}. +power of two. The @code{aligned_alloc} function returns a null pointer on error and sets @code{errno} to one of the following values: |