VALLOC(3) BSD Programmer's Manual VALLOC(3) NNAAMMEE vvaalllloocc - aligned memory allocation function SSYYNNOOPPSSIISS ##iinncclluuddee <<uunniissttdd..hh>> _c_h_a_r _* vvaalllloocc(_u_n_s_i_g_n_e_d _s_i_z_e); DDEESSCCRRIIPPTTIIOONN VVaalllloocc iiss oobbssoolleetteedd bbyy tthhee ccuurrrreenntt vveerrssiioonn ooff mmaalllloocc((33)),, wwhhiicchh aalliiggnnss ppaaggee--ssiizzeedd aanndd llaarrggeerr aallllooccaattiioonnss.. The vvaalllloocc() function allocates _s_i_z_e 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 proper- ly aligned pointer. RREETTUURRNN VVAALLUUEESS The vvaalllloocc() function returns a pointer to the allocated space if suc- cessful; otherwise a null pointer is returned HHIISSTTOORRYY The vvaalllloocc() function appeared in 3.0BSD. BBUUGGSS A _v_f_r_e_e function has not been implemented. 3rd Berkeley Distribution June 4, 1993 1