[EMAIL PROTECTED]:~/parrot/languages/perl6% man memalign
POSIX_MEMALIGN(3)  Linux Programmer's Manual    POSIX_MEMALIGN(3)



NAME
       posix_memalign, memalign, valloc - Allocate aligned memory

SYNOPSIS
       #include <stdlib.h>

       int posix_memalign(void **memptr, size_t alignment, size_t size);
       void *memalign(size_t boundary, size_t size);
       void *valloc(size_t size);

DESCRIPTION

       The function posix_memalign() allocates size bytes and places
       the address of the allocated memory in *memptr. The address of
       the allocated memory will be a multiple of alignment, which
       must be a power of two and a multiple of sizeof(void *).

       The obsolete function memalign() allocates size bytes and
       returns a pointer to the allocated memory. The memory address
       will be a multiple of boundary, which must be a power of two.

       The obsolete function valloc() allocates size bytes and returns
       a pointer to the allocated memory. The memory address will be a
       multiple of the page size. It is equivalent to
       memalign(sysconf(_SC_PAGESIZE),size).

       For all three routines, the memory is not zeroed.

.
.
.

AVAILABILITY
       The functions memalign() and valloc() have been available in
       all Linux libc libraries. The function posix_memalign() is
       available since glibc 2.1.91.


CONFORMING TO
       The function valloc() appeared in 3.0 BSD. It is documented as
       being obsolete in BSD 4.3, and as legacy in SUSv2. It no longer
       occurs in SUSv3. The function memalign() appears in SunOS 4.1.3
       but not in BSD 4.4. The function posix_memalign() comes from
       POSIX 1003.1d.

Reply via email to