Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ valloc(3C) — bsd — mips UMIPS RISC/os 4.52

Media Vault

Software Library

Restoration Projects

Artifacts Sought



VALLOC(3C-BSD)      RISC/os Reference Manual       VALLOC(3C-BSD)



NAME
     valloc - aligned memory allocator

SYNOPSIS
     char *valloc(size)
     unsigned size;

DESCRIPTION
     Valloc is obsoleted by the current version of malloc, which
     aligns page-sized and larger allocations.

     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.

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.

ERRORS
     vfree isn't implemented.
































                         Printed 1/15/91                   Page 1



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