1{
2    This file is part of the Free Pascal run time library.
3    Copyright (c) 2001 by Free Pascal development team
4
5    This file implements all the base types and limits required
6    for a minimal POSIX compliant subset required to port the compiler
7    to a new OS.
8
9    See the file COPYING.FPC, included in this distribution,
10    for details about the copyright.
11
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15
16 **********************************************************************}
17function sbrk2 (size : longint):pointer; cdecl; external name 'sbrk';
18
19function SysOSAlloc(size: ptruint): pointer;
20begin
21{  result:=Fpmmap(nil,Size,3,MAP_PRIVATE+MAP_ANONYMOUS,-1,0);}
22  result := sbrk2(size);
23  if result=pointer(-1) then
24    result:=nil
25  else
26    seterrno(0);
27end;
28
29{ $ define HAS_SYSOSFREE}
30
31procedure SysOSFree(p: pointer; size: ptruint);
32begin
33  //  fpmunmap(p, size);
34end;
35
36
37