Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ valloc.bsd(3) — Domain/IX SR9.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

VALLOC(3)

NAME

valloc − aligned memory allocator

USAGE

char *valloc(size)
unsigned size;

DESCRIPTION

Valloc allocates size 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 properly aligned pointer. 

NOTES

A vfree function has not been implemented. 

DIAGNOSTICS

Valloc returns a null pointer (zero) if there is no available memory, or if the arena has been detectably corrupted by storing outside the bounds of a block. 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026