Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ valloc(3) — UNIX 3BSD

Media Vault

Software Library

Restoration Projects

Artifacts Sought

VALLOC(3)  —  Unix Programmer’s Manual

NAME

valloc, vfree − aligned memory allocator

SYNOPSIS

char ∗valloc(size)
unsigned size; vfree(cp)
char ∗cp;

DESCRIPTION

Valloc allocates size bytes aligned on a boundary adequate for vread (2)).  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.  Vfree must be used to dispose of the block. 

DIAGNOSTICS

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

BUGS

3rd Berkeley Distribution

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