summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-09-11 15:24:36 +0000
committerbors <bors@rust-lang.org>2021-09-11 15:24:36 +0000
commit4b80850a5e3838ec47e57ff3a40e81d266e0fafd (patch)
treec7224bd6c1e32b85b42d8b1d2195be2004f115cb
parenta1e1a90777ba1cfc990fb2685b7be3f26990a1c8 (diff)
parent03f29865a2aaec1c0d4909412e38201362d94d39 (diff)
downloadrust-libc-4b80850a5e3838ec47e57ff3a40e81d266e0fafd.tar.gz
Auto merge of #2392 - devnexen:haiku_rlim_inf, r=JohnTitor
haiku finall have RLIMIT_INFINITY
-rw-r--r--src/unix/haiku/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unix/haiku/mod.rs b/src/unix/haiku/mod.rs
index 403aabcd87..5515340c35 100644
--- a/src/unix/haiku/mod.rs
+++ b/src/unix/haiku/mod.rs
@@ -549,6 +549,7 @@ pub const RLIMIT_FSIZE: ::c_int = 3;
pub const RLIMIT_NOFILE: ::c_int = 4;
pub const RLIMIT_STACK: ::c_int = 5;
pub const RLIMIT_AS: ::c_int = 6;
+pub const RLIM_INFINITY: ::c_ulong = 0xffffffff;
// Haiku specific
pub const RLIMIT_NOVMON: ::c_int = 7;
pub const RLIM_NLIMITS: ::c_int = 8;