dos_compilers/Logitech Modula-2 v1/DISKFILE.DEF
2024-06-30 15:16:10 -07:00

40 lines
1.0 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

DEFINITION MODULE DiskFiles;
(*
Interface to disk file functions of the underlying OS
Derived from the Lilith Modula-2 system developed by the
group of Prof. N. Wirth at ETH Zurich, Switzerland.
[Private module of the Modula-2 system]
*)
FROM FileSystem IMPORT File;
EXPORT QUALIFIED InitDiskSystem,
DiskFileProc, DiskDirProc;
PROCEDURE InitDiskSystem;
(*- Initialize mediums for further disk file operations
This procedure has to be imported by FileSystem. This has the side-effect,
that this module is referenced and will therefore be linked to the user
program.
*)
PROCEDURE DiskFilePROC (VAR f: File);
(*- low-level interface for disk operations within a file
This procedure is passed as a parameter to the procedure CreateMedium in
FileSystem.
*)
PROCEDURE DiskDirProc (VAR f: File; name: ARRAY OF CHAR);
(*- low-level interface for disk operations within a directory
This procedure is passed as a parameter to the procedure CreateMedium in
FileSystem.
*)
END DiskFiles.