VALLOC(3C) 1986 VALLOC(3C) NNAAMMEE valloc - aligned memory allocator SSYYNNOOPPSSIISS cchhaarr **vvaalllloocc((ssiizzee)) uunnssiiggnneedd ssiizzee;; DDEESSCCRRIIPPTTIIOONN VVaalllloocc iiss oobbssoolleetteedd bbyy tthhee ccuurrrreenntt vveerrssiioonn ooff mmaalllloocc,, wwhhiicchh aalliiggnnss ppaaggee--ssiizzeedd aanndd llaarrggeerr aallllooccaattiioonnss.. _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. DDIIAAGGNNOOSSTTIICCSS _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. BBUUGGSS _V_f_r_e_e isn't implemented. Printed 7/27/90 May 1