From f732b8413c6ac2e26b7d373bf25c2146958836aa Mon Sep 17 00:00:00 2001 From: nickysn Date: Thu, 23 Apr 2020 03:01:39 +0000 Subject: [PATCH] + added dummy sysfile.inc git-svn-id: branches/z80@45031 - --- .gitattributes | 1 + rtl/zxspectrum/sysfile.inc | 86 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 rtl/zxspectrum/sysfile.inc diff --git a/.gitattributes b/.gitattributes index 82425f558d..7d23eb2c5b 100644 --- a/.gitattributes +++ b/.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 diff --git a/rtl/zxspectrum/sysfile.inc b/rtl/zxspectrum/sysfile.inc new file mode 100644 index 0000000000..484bf00e4e --- /dev/null +++ b/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;