Skip to content

Commit 6461865

Browse files
committed
Move deprecation from SA_ONSTACK back to RLIM_NLIMITS
In ad3f860 the RLIM_* values were removed, but leaving behind a deprecation about RLIM_NLIMITS caused it to incorrectly apply instead to SA_ONSTACK.
1 parent 8356615 commit 6461865

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/unix/linux_like/linux/arch/generic/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ cfg_if! {
277277
pub const RLIMIT_NICE: ::c_int = 13;
278278
pub const RLIMIT_RTPRIO: ::c_int = 14;
279279
pub const RLIMIT_RTTIME: ::c_int = 15;
280+
#[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
280281
pub const RLIM_NLIMITS: ::c_int = 15;
281282
pub const RLIMIT_NLIMITS: ::c_int = RLIM_NLIMITS;
282283
}

src/unix/linux_like/linux/musl/b32/hexagon.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,6 @@ pub const PF_FILE: ::c_int = 1;
265265
pub const PF_KCM: ::c_int = 41;
266266
pub const PF_MAX: ::c_int = 43;
267267
pub const PF_QIPCRTR: ::c_int = 42;
268-
#[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
269268
pub const SA_ONSTACK: ::c_int = 0x08000000;
270269
pub const SA_SIGINFO: ::c_int = 0x00000004;
271270
pub const SA_NOCLDWAIT: ::c_int = 0x00000002;

0 commit comments

Comments
 (0)