DEFINITION MODULE SysStorage ;

(*
    Title      : SysStorage
    Author     : Gaius Mulley
    System     : UNIX (gm2)
    Date       : Fri May  2 15:19:49 1997
    Last edit  : Fri May  2 15:19:49 1997
    Description: provides dynamic allocation for the system components
                 of a realtime system. This allows the application to
                 use the traditional Storage module which can be
                 handled differently.
*)

FROM SYSTEM IMPORT ADDRESS ;

EXPORT QUALIFIED ALLOCATE, DEALLOCATE, Available, Init ;


(*
   ALLOCATE - attempt to allocate memory from the heap.
              NIL is returned in, a, if ALLOCATE fails.
*)

PROCEDURE ALLOCATE (VAR a: ADDRESS ; Size: CARDINAL) ;


(*
   DEALLOCATE - return, Size, bytes to the heap.
*)

PROCEDURE DEALLOCATE (a: ADDRESS ; Size: CARDINAL) ;


(*
   Available - returns TRUE if, Size, bytes can be allocated.
*)

PROCEDURE Available (Size: CARDINAL) : BOOLEAN;


(*
   Init - initializes the heap.
*)

PROCEDURE Init ;


END SysStorage.