Skip to content

Commit

Permalink
Move deprecation from SA_ONSTACK back to RLIM_NLIMITS
Browse files Browse the repository at this point in the history
In ad3f860 the RLIM_* values were removed,
but leaving behind a deprecation about RLIM_NLIMITS caused it to incorrectly
apply instead to SA_ONSTACK.
  • Loading branch information
androm3da committed Sep 2, 2023
1 parent 8356615 commit 6461865
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/unix/linux_like/linux/arch/generic/mod.rs
Expand Up @@ -277,6 +277,7 @@ cfg_if! {
pub const RLIMIT_NICE: ::c_int = 13;
pub const RLIMIT_RTPRIO: ::c_int = 14;
pub const RLIMIT_RTTIME: ::c_int = 15;
#[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
pub const RLIM_NLIMITS: ::c_int = 15;
pub const RLIMIT_NLIMITS: ::c_int = RLIM_NLIMITS;
}
Expand Down
1 change: 0 additions & 1 deletion src/unix/linux_like/linux/musl/b32/hexagon.rs
Expand Up @@ -265,7 +265,6 @@ pub const PF_FILE: ::c_int = 1;
pub const PF_KCM: ::c_int = 41;
pub const PF_MAX: ::c_int = 43;
pub const PF_QIPCRTR: ::c_int = 42;
#[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
pub const SA_ONSTACK: ::c_int = 0x08000000;
pub const SA_SIGINFO: ::c_int = 0x00000004;
pub const SA_NOCLDWAIT: ::c_int = 0x00000002;
Expand Down

0 comments on commit 6461865

Please sign in to comment.