Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate RLIM_NLIMITS #1497

Merged
merged 1 commit into from
Sep 7, 2019
Merged

Deprecate RLIM_NLIMITS #1497

merged 1 commit into from
Sep 7, 2019

Conversation

asomers
Copy link
Contributor

@asomers asomers commented Sep 2, 2019

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

r? @gnzlbg

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

@semarie
Copy link
Contributor

semarie commented Sep 2, 2019

@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
Copy link
Contributor Author

asomers commented Sep 2, 2019

@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
Copy link
Contributor

gnzlbg commented Sep 7, 2019

@bors: r+

@bors
Copy link
Contributor

bors commented Sep 7, 2019

📌 Commit ac1e124 has been approved by gnzlbg

@bors
Copy link
Contributor

bors commented Sep 7, 2019

⌛ 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
Copy link
Contributor

bors commented Sep 7, 2019

☀️ 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