4.3BSD-UWisc/man/cat3/valloc.3c




VALLOC(3C)          UNIX Programmer's Manual           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.

     _V_a_l_l_o_c allocates _s_i_z_e bytes aligned on a page boundary.  It
     is implemented by calling _m_a_l_l_o_c(3) with a slightly larger
     request, saving the true beginning of the block allocated,
     and returning a properly aligned pointer.

DIAGNOSTICS
     _V_a_l_l_o_c 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
     _V_f_r_e_e isn't implemented.
































Printed 12/27/86          May 12, 1986                          1