Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ valloc(lib) — Sprite KS.390

Media Vault

Software Library

Restoration Projects

Artifacts Sought

valloc  —  C Library Procedures

NAME

valloc − page-aligned memory allocator

SYNOPSIS

#include <unistd.h>
void ∗
valloc(size)

ARGUMENTS

size_t size   (in) Number of bytes to allocate. 
 

DESCRIPTION

valloc is like malloc, except that the pointer it returns is guaranteed to be page-aligned. 
 

BUGS

Using free to deallocate valloc’d memory can corrupt malloc.  Unfortunately, there is no vfree routine, so it is currently impossible to free valloc’d memory. 
 

KEYWORDS

memory, alloc

Sprite version 1.0  —  April 21, 1992

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