+ added sysheap.inc and sysfile.inc to the msdos target, empty for now

git-svn-id: branches/i8086@23857 -
This commit is contained in:
nickysn 2013-03-16 12:03:24 +00:00
parent c136785c10
commit bca7bf78dc
3 changed files with 110 additions and 0 deletions

2
.gitattributes vendored
View File

@ -8202,6 +8202,8 @@ rtl/morphos/videodata.inc svneol=native#text/plain
rtl/msdos/Makefile svneol=native#text/plain
rtl/msdos/Makefile.fpc svneol=native#text/plain
rtl/msdos/prt0.asm svneol=native#text/plain
rtl/msdos/sysfile.inc svneol=native#text/plain
rtl/msdos/sysheap.inc svneol=native#text/plain
rtl/msdos/sysos.inc svneol=native#text/plain
rtl/msdos/sysosh.inc svneol=native#text/plain
rtl/msdos/system.pp svneol=native#text/plain

78
rtl/msdos/sysfile.inc Normal file
View File

@ -0,0 +1,78 @@
{
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);
begin
end;
procedure do_rename(p1,p2 : pchar);
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);
begin
end;
function do_isdevice(handle:THandle):boolean;
begin
end;

30
rtl/msdos/sysheap.inc Normal file
View File

@ -0,0 +1,30 @@
{
This file is part of the Free Pascal run time library.
Copyright (c) 2001 by Free Pascal development team
This file implements all the base types and limits required
for a minimal POSIX compliant subset required to port the compiler
to a new OS.
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.
**********************************************************************}
{*****************************************************************************
Heap Management
*****************************************************************************}
function SysOSAlloc (size: ptruint): pointer;
begin
Result := nil;
end;
procedure SysOSFree(p: pointer; size: ptruint);
begin
end;