|
@@ -32,14 +32,8 @@ begin
|
|
end;
|
|
end;
|
|
|
|
|
|
function shmat (shmid:cint; shmaddr:pointer; shmflg:cint): pointer;
|
|
function shmat (shmid:cint; shmaddr:pointer; shmflg:cint): pointer;
|
|
-Var raddr : pointer;
|
|
|
|
- error : ptrint;
|
|
|
|
begin
|
|
begin
|
|
- error:=do_syscall(syscall_nr_SHMAT,TSysParam(shmid),TSysParam(shmflg),TSysParam(@raddr),TSysParam(shmaddr));
|
|
|
|
- If Error<0 then
|
|
|
|
- shmat:=pointer(error)
|
|
|
|
- else
|
|
|
|
- shmat:=raddr;
|
|
|
|
|
|
+ shmat:=pointer(do_syscall(syscall_nr_SHMAT,TSysParam(shmid),TSysParam(shmaddr),TSysParam(shmflg)));
|
|
end;
|
|
end;
|
|
|
|
|
|
function shmdt (shmaddr:pointer): cint;
|
|
function shmdt (shmaddr:pointer): cint;
|