*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> valloc (3)              
Title
Content
Arch
Section
 

VALLOC(3)

Contents


NAME    [Toc]    [Back]

     valloc -- aligned memory allocation function

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <unistd.h>

     void *
     valloc(size_t size);

DESCRIPTION    [Toc]    [Back]

     The valloc() function is obsoleted by the current version of malloc(3),
     which aligns page-sized and larger allocations.

     The valloc() function 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.

RETURN VALUES    [Toc]    [Back]

     The valloc() function returns a pointer to the allocated space if successful;
 otherwise a null pointer is returned

HISTORY    [Toc]    [Back]

     The valloc() function appeared in 3.0BSD.

BUGS    [Toc]    [Back]

     A vfree() function has not been implemented.


FreeBSD 5.2.1			 June 4, 1993			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
cfree OpenBSD memory allocation and deallocation
calloc OpenBSD memory allocation and deallocation
malloc.conf OpenBSD memory allocation and deallocation
free OpenBSD memory allocation and deallocation
malloc OpenBSD memory allocation and deallocation
realloc OpenBSD memory allocation and deallocation
memstats FreeBSD memory allocation/deallocation system
memcluster FreeBSD memory allocation/deallocation system
memput FreeBSD memory allocation/deallocation system
malloc_ss IRIX SpeedShop memory allocation library
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service