![]() |
![]() |
![]() |
![]() |
Allocate a heap block aligned on a page boundary
#include <stdarg.h> void * valloc( size_t size);
libc
The valloc() function allocates a heap block that's aligned on a page boundary. It's equivalent to:
memalign( sysconf( _SC_PAGESIZE ), size );
See memalign().
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | Yes |
Signal handler | Yes |
Thread | Yes |
![]() |
![]() |
![]() |
![]() |