Modula-2 ||
Compiler & Tools ||
Library ||
Search Engine
Ulm's Modula-2 Library:
SysBreak
NAME
SysBreak - heap allocation
SYNOPSIS
PROCEDURE Break(addr: ADDRESS) : BOOLEAN;
PROCEDURE Sbreak(incr: CARDINAL) : ADDRESS;
DESCRIPTION
The memory area between the end of the data segment upto
the break is used as heap.
By moving the break to higher addresses the heap may
be extended.
Break
sets the break to the given absolute address.
Sbreak
advances the break by incr
and returns the current value of the break.
Note that neither Break nor Sbreak should be
called directly except by Storage.
DIAGNOSTICS
Both operations may fail due to insufficient memory.
In this case, FALSE is returned by Break,
and Sbreak returns the old break value.
Additionally, Errno.errno is set.
SEE ALSO
brk(2), Storage
Edited by: borchert, last change: 1997/02/25, revision: 1.1, converted to HTML: 1997/04/28
Modula-2 ||
Compiler & Tools ||
Library ||
Search Engine