mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-22 13:00:24 +01:00
* fix shmat from Nikolay Nikolov
git-svn-id: trunk@1247 -
This commit is contained in:
parent
bd8db92094
commit
e94b08ae68
@ -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));
|
shmat:=pointer(do_syscall(syscall_nr_SHMAT,TSysParam(shmid),TSysParam(shmaddr),TSysParam(shmflg)));
|
||||||
If Error<0 then
|
|
||||||
shmat:=pointer(error)
|
|
||||||
else
|
|
||||||
shmat:=raddr;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function shmdt (shmaddr:pointer): cint;
|
function shmdt (shmaddr:pointer): cint;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user