mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-26 13:31:27 +01:00
* fixed FpGetRLimit and FpUGetRLimit
git-svn-id: trunk@2093 -
This commit is contained in:
parent
a11a177469
commit
c945b972c4
@ -476,7 +476,7 @@ end;
|
|||||||
function FpGetRLimit(resource : cInt; rlim : PRLimit) : cInt;
|
function FpGetRLimit(resource : cInt; rlim : PRLimit) : cInt;
|
||||||
begin
|
begin
|
||||||
FpGetRLimit := do_syscall(syscall_nr_getrlimit,
|
FpGetRLimit := do_syscall(syscall_nr_getrlimit,
|
||||||
TSysParam(resource), TSysParam(@rlim));
|
TSysParam(resource), TSysParam(rlim));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{$ifdef HAS_UGETRLIMIT}
|
{$ifdef HAS_UGETRLIMIT}
|
||||||
@ -484,6 +484,6 @@ function fpugetrlimit(resource : cInt; rlim : PRLimit) : cInt;
|
|||||||
begin
|
begin
|
||||||
FpUGetRLimit := do_syscall(syscall_nr_ugetrlimit,
|
FpUGetRLimit := do_syscall(syscall_nr_ugetrlimit,
|
||||||
syscall_nr_getrlimit,
|
syscall_nr_getrlimit,
|
||||||
TSysParam(resource), TSysParam(@rlim));
|
TSysParam(resource), TSysParam(rlim));
|
||||||
end;
|
end;
|
||||||
{$endif}
|
{$endif}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user