Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ valloc(3) — DG/UX 4.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought



                                                                valloc(3)



        _________________________________________________________________
        valloc                                                 Subroutine
        aligned memory allocator in DG/UX
        _________________________________________________________________


        SYNTAX

        char *valloc(size)
        unsigned size;


        DESCRIPTION

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


        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

        malloc(3).



        BUGS

        Vfree isn't implemented.


















        DG/UX 4.00                                                 Page 1
               Licensed material--property of copyright holder(s)



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