The GNU Modula-2 front end to GCC

ulm-lib-gm2/std/Directories

DEFINITION MODULE Directories;

   FROM SystemTypes IMPORT DirSize, OFF;

   TYPE
      DIR;

      FileName = ARRAY [0..DirSize-1] OF CHAR;
      Direct =
         RECORD
            ino: CARDINAL;
            name: FileName;
         END;


   PROCEDURE OpenDir(VAR dirp: DIR; filename: ARRAY OF CHAR) : BOOLEAN;


   PROCEDURE ReadDir(dirp: DIR; VAR direct: Direct) : BOOLEAN;


   PROCEDURE TellDir(dirp: DIR; VAR offset: OFF) : BOOLEAN;


   PROCEDURE SeekDir(dirp: DIR; pos: OFF) : BOOLEAN;


   PROCEDURE RewindDir(dirp: DIR) : BOOLEAN;


   PROCEDURE CloseDir(VAR dirp: DIR);

END Directories.