Query: valloc
OS: bsd
Section: 3c
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
VALLOC(3C) VALLOC(3C)NAMEvalloc - aligned memory allocatorSYNOPSISchar *valloc(size) unsigned size;DESCRIPTIONValloc 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.DIAGNOSTICSValloc 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.BUGSVfree isn't implemented. 3rd Berkeley Distribution May 12, 1986 VALLOC(3C)
Related Man Pages |
---|
memalign(3) - redhat |
posix_memalign(3) - redhat |
calloc(3) - ultrix |
malloc(3) - ultrix |
bsdmalloc(3malloc) - sunos |