|
|
1.1 ! root 1: .TH VALLOC 3 "19 January 1983" ! 2: .UC ! 3: .SH NAME ! 4: valloc \- aligned memory allocator ! 5: .SH SYNOPSIS ! 6: .nf ! 7: .B char *valloc(size) ! 8: .B unsigned size; ! 9: .fi ! 10: .SH DESCRIPTION ! 11: .I Valloc ! 12: allocates ! 13: .I size ! 14: bytes aligned on a page boundary. ! 15: It is implemented by calling ! 16: .IR malloc (3) ! 17: with a slightly larger request, saving the true beginning of the block ! 18: allocated, and returning a properly aligned pointer. ! 19: .SH DIAGNOSTICS ! 20: .I Valloc ! 21: returns a null pointer (0) if there is no available memory ! 22: or if the arena has been detectably corrupted by storing outside the bounds ! 23: of a block. ! 24: .SH BUGS ! 25: .I Vfree ! 26: isn't implemented.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.