Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ valloc(3) — SunOS 0.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getpagesize(2)

VALLOC(3)  —  System Interface Manual — Subroutines

NAME

valloc − aligned memory allocator

SYNOPSIS

char ∗valloc(size)
unsigned size;

DESCRIPTION

Valloc allocates size bytes aligned on a page-aligned 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.

Page size is machine dependent. 

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. 

SEE ALSO

getpagesize(2)

BUGS

Vfree isn’t implemented. 

Sun System Release 0.3  —  26 April 1983

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