diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-03-22 09:39:21 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-03-22 09:39:21 +0000 |
commit | eab0f04c474e5d81fee65d8a221e26759e78ffe5 (patch) | |
tree | a1e51e67d1bf8d12782d6c07339fa9b78822d666 /manual | |
parent | fbaee91d72bbe63f7502a5cb8486e0c0d36aa27e (diff) | |
download | glibc-eab0f04c474e5d81fee65d8a221e26759e78ffe5.zip glibc-eab0f04c474e5d81fee65d8a221e26759e78ffe5.tar.gz glibc-eab0f04c474e5d81fee65d8a221e26759e78ffe5.tar.bz2 |
(Aligned Memory Blocks): Correct description of where memalign is declared [PR libc/3127].
Diffstat (limited to 'manual')
-rw-r--r-- | manual/memory.texi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/manual/memory.texi b/manual/memory.texi index 3a505e6..e370c72 100644 --- a/manual/memory.texi +++ b/manual/memory.texi @@ -617,14 +617,15 @@ The address of a block returned by @code{malloc} or @code{realloc} in the GNU system is always a multiple of eight (or sixteen on 64-bit systems). If you need a block whose address is a multiple of a higher power of two than that, use @code{memalign}, @code{posix_memalign}, or -@code{valloc}. These functions are declared in @file{stdlib.h}. +@code{valloc}. @code{memalign} is declared in @file{malloc.h} and +@code{posix_memalign) is declared in @file{stdlib.h}. With the GNU library, you can use @code{free} to free the blocks that @code{memalign}, @code{posix_memalign}, and @code{valloc} return. That does not work in BSD, however---BSD does not provide any way to free such blocks. -@comment malloc.h stdlib.h +@comment malloc.h @comment BSD @deftypefun {void *} memalign (size_t @var{boundary}, size_t @var{size}) The @code{memalign} function allocates a block of @var{size} bytes whose |