hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 66a9ff3b894d133cce9ed9936a2ffd9d6692be01
parent 57a61e79a10f1e18a7ab366adc33db7f2ecb636b
Author: Sebastian <sebastian@sebsite.pw>
Date:   Thu, 31 Aug 2023 02:12:00 -0400

rt: add RLIM_INFINITY

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mrt/+freebsd/types.ha | 2++
Mrt/+linux/types.ha | 2++
2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/rt/+freebsd/types.ha b/rt/+freebsd/types.ha @@ -460,6 +460,8 @@ export type rlimit = struct { rlim_max: rlim_t, }; +export def RLIM_INFINITY: rlim_t = -1; + export def RLIMIT_CPU: int = 0; export def RLIMIT_FSIZE: int = 1; export def RLIMIT_DATA: int = 2; diff --git a/rt/+linux/types.ha b/rt/+linux/types.ha @@ -885,6 +885,8 @@ export type rlimit = struct { rlim_max: rlim_t, }; +export def RLIM_INFINITY: rlim_t = -1; + export def RLIMIT_CPU: int = 0; export def RLIMIT_FSIZE: int = 1; export def RLIMIT_DATA: int = 2;