1VALLOC(3C) VALLOC(3C)
2
3
4
6 valloc - aligned memory allocator
7
9 char *valloc(size)
10 unsigned size;
11
13 Valloc is obsoleted by the current version of malloc, which aligns
14 page-sized and larger allocations.
15
16 Valloc allocates size bytes aligned on a page boundary. It is impleā
17 mented by calling malloc(3) with a slightly larger request, saving the
18 true beginning of the block allocated, and returning a properly aligned
19 pointer.
20
22 Valloc returns a null pointer (0) if there is no available memory or if
23 the arena has been detectably corrupted by storing outside the bounds
24 of a block.
25
27 Vfree isn't implemented.
28
29
30
313rd Berkeley Distribution May 12, 1986 VALLOC(3C)