Copyright (C) 1994, Digital Equipment Corp.
RTOS is a private interface that provides the low-level,
OS-specific memory allocation and shutdown routines.
INTERFACE RTOS;
PROCEDURE Exit (n: INTEGER);
Terminate current process with return code n.
PROCEDURE Crash ();
Terminate current process with a crash
PROCEDURE GetMemory (size: INTEGER): ADDRESS;
Return the address of size bytes of unused storage
PROCEDURE LockHeap ();
Enters an allocator/collector critical section; the same thread may
enter the critical section multiple times.
PROCEDURE UnlockHeap ();
Leaves the critical section.
PROCEDURE Write (a: ADDRESS; n: INTEGER);
Write the n bytes beginning at address a to the standard
error output file or console.
END RTOS.