From eab0f04c474e5d81fee65d8a221e26759e78ffe5 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 22 Mar 2002 09:39:21 +0000 Subject: (Aligned Memory Blocks): Correct description of where memalign is declared [PR libc/3127]. --- manual/memory.texi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'manual') diff --git a/manual/memory.texi b/manual/memory.texi index 3a505e6ff5..e370c72e43 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 -- cgit 1.4.1