Skip to content

Commit 65793f2

Browse files
committed
Apply RLIM*_NLIMITS deprecation to emscripten, fuchsia, AIX
1 parent 2ca5cd4 commit 65793f2

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

src/fuchsia/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2731,7 +2731,10 @@ pub const POSIX_MADV_DONTNEED: ::c_int = 4;
27312731

27322732
pub const RLIM_INFINITY: ::rlim_t = !0;
27332733
pub const RLIMIT_RTTIME: ::c_int = 15;
2734+
#[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
27342735
pub const RLIMIT_NLIMITS: ::c_int = 16;
2736+
#[allow(deprecated)]
2737+
#[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
27352738
pub const RLIM_NLIMITS: ::c_int = RLIMIT_NLIMITS;
27362739

27372740
pub const MAP_ANONYMOUS: ::c_int = MAP_ANON;

src/unix/aix/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,6 +1762,7 @@ pub const PRIO_USER: ::c_int = 2;
17621762
pub const RUSAGE_THREAD: ::c_int = 1;
17631763
pub const RLIM_SAVED_MAX: ::c_ulong = RLIM_INFINITY - 1;
17641764
pub const RLIM_SAVED_CUR: ::c_ulong = RLIM_INFINITY - 2;
1765+
#[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
17651766
pub const RLIM_NLIMITS: ::c_int = 10;
17661767

17671768
// sys/sched.h

src/unix/linux_like/emscripten/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,7 +1334,10 @@ pub const POSIX_FADV_NOREUSE: ::c_int = 5;
13341334
pub const POSIX_MADV_DONTNEED: ::c_int = 0;
13351335

13361336
pub const RLIM_INFINITY: ::rlim_t = !0;
1337+
#[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
13371338
pub const RLIMIT_NLIMITS: ::c_int = 15;
1339+
#[allow(deprecated)]
1340+
#[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
13381341
pub const RLIM_NLIMITS: ::c_int = RLIMIT_NLIMITS;
13391342

13401343
pub const MAP_ANONYMOUS: ::c_int = MAP_ANON;

0 commit comments

Comments
 (0)