Skip to content

Commit 57ff42c

Browse files
committed
Apply RLIM*_NLIMITS deprecation to Haiku, NTO
1 parent cc6c8b0 commit 57ff42c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/unix/haiku/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,7 @@ pub const RLIMIT_AS: ::c_int = 6;
741741
pub const RLIM_INFINITY: ::rlim_t = 0xffffffff;
742742
// Haiku specific
743743
pub const RLIMIT_NOVMON: ::c_int = 7;
744+
#[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
744745
pub const RLIM_NLIMITS: ::c_int = 8;
745746

746747
pub const RUSAGE_SELF: ::c_int = 0;

src/unix/nto/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2557,6 +2557,7 @@ pub const RLIMIT_NPROC: ::c_int = 8;
25572557
pub const RLIMIT_RSS: ::c_int = 6;
25582558
pub const RLIMIT_STACK: ::c_int = 3;
25592559
pub const RLIMIT_VMEM: ::c_int = 6;
2560+
#[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
25602561
pub const RLIM_NLIMITS: ::c_int = 14;
25612562

25622563
pub const SCHED_ADJTOHEAD: ::c_int = 5;

0 commit comments

Comments
 (0)