Browse Source

+ added dummy sysfile.inc

git-svn-id: branches/z80@45031 -
nickysn 5 years ago
parent
commit
f732b8413c
2 changed files with 87 additions and 0 deletions
  1. 1 0
      .gitattributes
  2. 86 0
      rtl/zxspectrum/sysfile.inc

+ 1 - 0
.gitattributes

@@ -12197,6 +12197,7 @@ rtl/zxspectrum/Makefile svneol=native#text/plain
 rtl/zxspectrum/Makefile.fpc svneol=native#text/plain
 rtl/zxspectrum/prt0.asm svneol=native#text/plain
 rtl/zxspectrum/rtldefs.inc svneol=native#text/plain
+rtl/zxspectrum/sysfile.inc svneol=native#text/plain
 rtl/zxspectrum/sysheap.inc svneol=native#text/plain
 rtl/zxspectrum/sysos.inc svneol=native#text/plain
 rtl/zxspectrum/sysosh.inc svneol=native#text/plain

+ 86 - 0
rtl/zxspectrum/sysfile.inc

@@ -0,0 +1,86 @@
+{
+    This file is part of the Free Pascal run time library.
+    Copyright (c) 2001 by Free Pascal development team
+
+    Low leve file functions
+
+    See the file COPYING.FPC, included in this distribution,
+    for details about the copyright.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ **********************************************************************}
+
+
+{****************************************************************************
+                        Low level File Routines
+ ****************************************************************************}
+
+procedure do_close(handle : thandle);
+begin
+end;
+
+
+procedure do_erase(p : pchar; pchangeable: boolean);
+begin
+end;
+
+
+procedure do_rename(p1,p2 : pchar; p1changeable, p2changeable: boolean);
+begin
+end;
+
+
+function do_write(h:thandle;addr:pointer;len : longint) : longint;
+begin
+end;
+
+
+function do_read(h:thandle;addr:pointer;len : longint) : longint;
+begin
+end;
+
+
+function do_filepos(handle : thandle) : longint;
+begin
+end;
+
+
+procedure do_seek(handle:thandle;pos : longint);
+begin
+end;
+
+
+
+function do_seekend(handle:thandle):longint;
+begin
+end;
+
+
+function do_filesize(handle : thandle) : longint;
+begin
+end;
+
+
+{ truncate at a given position }
+procedure do_truncate (handle:thandle;pos:longint);
+begin
+end;
+
+procedure do_open(var f;p:pchar;flags:longint; pchangeable: boolean);
+{
+  filerec and textrec have both handle and mode as the first items so
+  they could use the same routine for opening/creating.
+  when (flags and $100)   the file will be append
+  when (flags and $1000)  the file will be truncate/rewritten
+  when (flags and $10000) there is no check for close (needed for textfiles)
+}
+begin
+end;
+
+
+function do_isdevice(handle:THandle):boolean;
+begin
+end;