+ Added munmap call

This commit is contained in:
michael 2000-05-25 19:59:57 +00:00
parent e9ee3ce8ae
commit 75d0a262a9
3 changed files with 27 additions and 3 deletions

View File

@ -628,9 +628,21 @@ begin
LinuxError:=Errno;
end;
function MUnMap (P : Pointer; Size : Longint) : Boolean;
Var
Sr : Syscallregs;
begin
Sr.reg2:=longint(P);
sr.reg3:=Size;
MUnMap:=syscall(syscall_nr_munmap,P,Size,0)=0;
LinuxError:=Errno;
end;
{
$Log$
Revision 1.2 2000-04-16 16:10:01 marco
Revision 1.3 2000-05-25 19:59:57 michael
+ Added munmap call
Revision 1.2 2000/04/16 16:10:01 marco
* Some procedure were forgotten. FIxed
}

View File

@ -894,6 +894,15 @@ begin
LinuxError:=Errno;
end;
function MUnMap (P : Pointer; Size : Longint) : Boolean;
Var
Sr : Syscallregs;
begin
Sr.reg2:=longint(P);
sr.reg3:=Size;
MUnMap:=syscall(syscall_nr_munmap,sr)=0;
LinuxError:=Errno;
end;
{--------------------------------
Port IO functions

View File

@ -794,7 +794,7 @@ type
end;
function MMap(const m:tmmapargs):longint;
function MUnMap (P : Pointer; Size : Longint) : Boolean;
{**************************
Port IO functions
@ -2931,7 +2931,10 @@ End.
{
$Log$
Revision 1.70 2000-05-21 17:10:13 michael
Revision 1.71 2000-05-25 19:59:57 michael
+ Added munmap call
Revision 1.70 2000/05/21 17:10:13 michael
+ AssignStream now always returns PID of spawned process
Revision 1.69 2000/05/17 17:11:44 peter