diff options
author | marco <marco@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2009-10-17 19:14:09 +0000 |
---|---|---|
committer | marco <marco@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2009-10-17 19:14:09 +0000 |
commit | 145e81f2c3ead11c7cd5ae6977678b89b639201e (patch) | |
tree | ddddcdd75458b66c9c818bce20eb8e9803158e29 /rtl/unix/bunxh.inc | |
parent | 7b5fb0794fed88349243814534b598ed44997af6 (diff) | |
download | fpc-145e81f2c3ead11c7cd5ae6977678b89b639201e.tar.gz |
* set/getrlimit now also visible in baseunix when syscalls are used.
on systems that force ugetrlimit, use that transparently. (since
ugetrlimit is not posix in theory or practice, we can't export it),
resolves 13916
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@13903 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'rtl/unix/bunxh.inc')
-rw-r--r-- | rtl/unix/bunxh.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rtl/unix/bunxh.inc b/rtl/unix/bunxh.inc index 485fe54a3c..df2cc6dd72 100644 --- a/rtl/unix/bunxh.inc +++ b/rtl/unix/bunxh.inc @@ -106,3 +106,6 @@ Type TGrpArr = Array [0..0] of TGid; { C style array workarounds} Function FpGetEnv (name : pChar): pChar; function fpsettimeofday(tp:ptimeval;tzp:ptimezone):cint; + function FpGetRLimit(resource:cint;rlim:PRLimit):cint; external name 'FPC_SYSC_GETRLIMIT'; + function FpSetRLimit(Resource:cint;rlim:PRLimit):cint; external name 'FPC_SYSC_SETRLIMIT'; + |