home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 5
/
FreshFish_July-August1994.bin
/
bbs
/
gnu
/
ixemul-39.47-env-bin.lha
/
man
/
cat3
/
valloc.0
< prev
next >
Wrap
Text File
|
1993-12-07
|
1KB
|
67 lines
VALLOC(3) UNIX 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
ppaaggeessiizzeedd 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 April 19, 1991 1