[Previous] [Contents] [Index] [Next]

valloc()

Allocate a heap block aligned on a page boundary

Synopsis:

#include <stdarg.h>

void * valloc( size_t size);

Arguments:

size
The size of the block to allocate, in bytes.

Library:

libc

Description:

The valloc() function allocates a heap block that's aligned on a page boundary. It's equivalent to:

memalign( sysconf( _SC_PAGESIZE ), size );

Returns:

See memalign().

Classification:

QNX 6

Safety:
Cancellation point No
Interrupt handler Yes
Signal handler Yes
Thread Yes

See also:

memalign(), sysconf()


[Previous] [Contents] [Index] [Next]