Skip to content

Deprecate RLIM_NLIMITS#1497

Merged
bors merged 1 commit into
rust-lang:masterfrom
asomers:rlim_nlimits
Sep 7, 2019
Merged

Deprecate RLIM_NLIMITS#1497
bors merged 1 commit into
rust-lang:masterfrom
asomers:rlim_nlimits

Conversation

@asomers

@asomers asomers commented Sep 2, 2019

Copy link
Copy Markdown
Contributor

This constant is not stable across OS versions, so it cannot be used in
any backwards- or forwards- compatible way. It's typically used to size
arrays in the kernel and in debugging utilities that are closely tied to
the OS version. Since libc is ignorant about OS versions, we shouldn't
even be defining it.

This constant is not stable across OS versions, so it cannot be used in
any backwards- or forwards- compatible way.  It's typically used to size
arrays in the kernel and in debugging utilities that are closely tied to
the OS version.  Since libc is ignorant about OS versions, we shouldn't
even be defining it.
@rust-highfive

Copy link
Copy Markdown

r? @gnzlbg

(rust_highfive has picked a reviewer for you, use r? to override)

@semarie

semarie commented Sep 2, 2019

Copy link
Copy Markdown
Contributor

@asomers I am not sure to understand the rational here. lot of things are not stable across OS versions. do you want to deprecate them all ?

@asomers

asomers commented Sep 2, 2019

Copy link
Copy Markdown
Contributor Author

@semarie Pretty much. libc's versioning model is basically "adding new stuff is ok; but don't change anything already defined". That's also more or less what glibc does. Right now, libc has no way to guarantee that RLIM_NLIMITS will have the correct value. If you try to use that symbol, you're likely to experience errors at runtime.

@gnzlbg

gnzlbg commented Sep 7, 2019

Copy link
Copy Markdown
Contributor

@bors: r+

@bors

bors commented Sep 7, 2019

Copy link
Copy Markdown
Contributor

📌 Commit ac1e124 has been approved by gnzlbg

@bors

bors commented Sep 7, 2019

Copy link
Copy Markdown
Contributor

⌛ Testing commit ac1e124 with merge f7de365...

bors added a commit that referenced this pull request Sep 7, 2019
Deprecate RLIM_NLIMITS

This constant is not stable across OS versions, so it cannot be used in
any backwards- or forwards- compatible way.  It's typically used to size
arrays in the kernel and in debugging utilities that are closely tied to
the OS version.  Since libc is ignorant about OS versions, we shouldn't
even be defining it.
@bors

bors commented Sep 7, 2019

Copy link
Copy Markdown
Contributor

☀️ Test successful - checks-cirrus-freebsd-11, checks-cirrus-freebsd-12, status-azure
Approved by: gnzlbg
Pushing f7de365 to master...

@bors bors merged commit ac1e124 into rust-lang:master Sep 7, 2019
@bors bors mentioned this pull request Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants