unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (4.2BSD)
Page:
Section:
Apropos / Subsearch:
optional field

VALLOC(3)                  Library Functions Manual                  VALLOC(3)



NAME
       valloc - aligned memory allocator

SYNOPSIS
       char *valloc(size)
       unsigned size;

DESCRIPTION
       Valloc  allocates  size bytes aligned on a page boundary.  It is imple-
       mented 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.

BUGS
       Vfree isn't implemented.



3rd Berkeley Distribution       19 January 1983                      VALLOC(3)