bsd man page for valloc

Query: valloc

OS: bsd

Section: 3c

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

VALLOC(3C)																VALLOC(3C)

NAME
valloc - aligned memory allocator
SYNOPSIS
char *valloc(size) unsigned size;
DESCRIPTION
Valloc is obsoleted by the current version of malloc, which aligns page-sized and larger allocations. Valloc allocates size bytes aligned on a page boundary. It is implemented by calling malloc(3) with a slightly larger request, saving the true beginning of the block allocated, and returning a properly aligned pointer.
DIAGNOSTICS
Valloc returns a null pointer(0) if there is no available memory or if the arena has been detectably corrupted by storing outside the bounds of a block.
BUGS
Vfree isn't implemented. 3rd Berkeley Distribution May 12, 1986 VALLOC(3C)
Related Man Pages
realloc(3) - bsd
memalign(3) - redhat
malloc(3) - minix
memalign(3c) - hpux
bsdmalloc(3malloc) - sunos
Similar Topics in the Unix Linux Community
Error in compilation of cxx file on Sun C++ 5.9 SunOS_sparc 2007/05/03)
How to zip file in AIX with password.
Tool to simulate non-sequential disk I/O (simulate db file sequential read) in C POSIX
What is the function to get address of the virtual memory block in linux??
Memory fragmentation in a Linux settop box