posix_memalign.3: Rename memalign() argument

Rename "boundary" to "alignment" for consistency
with posix_memalign().

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2012-03-23 06:28:21 +13:00
parent 5a789d8fff
commit 01657408e1
1 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ posix_memalign, memalign, valloc, pvalloc \- Allocate aligned memory
.sp .sp
.B #include <malloc.h> .B #include <malloc.h>
.sp .sp
.BI "void *memalign(size_t " boundary ", size_t " size ); .BI "void *memalign(size_t " alignment ", size_t " size );
.BI "void *pvalloc(size_t " size ); .BI "void *pvalloc(size_t " size );
.fi .fi
.sp .sp
@ -100,7 +100,7 @@ allocates
.I size .I size
bytes and returns a pointer to the allocated memory. bytes and returns a pointer to the allocated memory.
The memory address will be a multiple of The memory address will be a multiple of
.IR "boundary" , .IR alignment ,
which must be a power of two. which must be a power of two.
.\" The behavior of memalign() for size==0 is as for posix_memalign() .\" The behavior of memalign() for size==0 is as for posix_memalign()
.\" but no standards govern this. .\" but no standards govern this.
@ -205,7 +205,7 @@ verifies that
matches the requirements detailed above. matches the requirements detailed above.
.BR memalign () .BR memalign ()
may not check that the may not check that the
.I boundary .I alignment
argument is correct. argument is correct.
POSIX requires that memory obtained from POSIX requires that memory obtained from