From 802af9b75e14fba9ea22ae35f68c651d66347504 Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Thu, 7 Sep 2023 08:09:11 -0700 Subject: [PATCH] Apply RLIM*_NLIMITS deprecation to Haiku, NTO --- src/unix/haiku/mod.rs | 1 + src/unix/nto/mod.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/unix/haiku/mod.rs b/src/unix/haiku/mod.rs index 24aa599c07070..b1036cdc5eb91 100644 --- a/src/unix/haiku/mod.rs +++ b/src/unix/haiku/mod.rs @@ -741,6 +741,7 @@ pub const RLIMIT_AS: ::c_int = 6; pub const RLIM_INFINITY: ::rlim_t = 0xffffffff; // Haiku specific pub const RLIMIT_NOVMON: ::c_int = 7; +#[deprecated(since = "0.2.64", note = "Not stable across OS versions")] pub const RLIM_NLIMITS: ::c_int = 8; pub const RUSAGE_SELF: ::c_int = 0; diff --git a/src/unix/nto/mod.rs b/src/unix/nto/mod.rs index a79450f4e1fd2..de972a065ab2b 100644 --- a/src/unix/nto/mod.rs +++ b/src/unix/nto/mod.rs @@ -2557,6 +2557,7 @@ pub const RLIMIT_NPROC: ::c_int = 8; pub const RLIMIT_RSS: ::c_int = 6; pub const RLIMIT_STACK: ::c_int = 3; pub const RLIMIT_VMEM: ::c_int = 6; +#[deprecated(since = "0.2.64", note = "Not stable across OS versions")] pub const RLIM_NLIMITS: ::c_int = 14; pub const SCHED_ADJTOHEAD: ::c_int = 5;