-
Notifications
You must be signed in to change notification settings - Fork 1k
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
adding new illumos ptsname_r call. #3867
Conversation
@rustbot label stable-nominated |
c9d3388
to
f069c8d
Compare
src/unix/solarish/illumos.rs
Outdated
@@ -68,6 +68,8 @@ pub const B4000000: ::speed_t = 31; | |||
// sys/systeminfo.h | |||
pub const SI_ADDRESS_WIDTH: ::c_int = 520; | |||
|
|||
pub const PTHREAD_MUTEX_DEFAULT: ::c_int = 8; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This define cannot be changed in libc so soon. It was only changed in illumos in February 2024. Any running systems which predate the change (which there are many) would potentially malfunction if newly-compiled rust binaries use this newer value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so we are ok if unit tests do not necessarily pass then ?
f069c8d
to
2c6ad42
Compare
description updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I haven't been very successful finding illumos headers but that looks like a good source.
This lgtm but I'll give pfmooney a couple more days to double check.
@pfmooney any chance you could double check this with the changes? |
This looks straightforward enough to me so I'll just merge it. I won't backport it for a few days at least, @pfmooney feel free to leave an ack/nack at any time. |
(backport <rust-lang#3867>) (cherry picked from commit 2c6ad42)
while at it, fixing PTHREAD_MUTEX_DEFAULT which differs from solaris.
man page