-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add strftime* for illumos. #4453
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
Conversation
|
Any chance to get this added also for Solaris? This should be common for both Illumos and Solaris. |
eed2acb to
40673d5
Compare
tgross35
left a comment
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.
Looks like there is a Solaris test failure, does this need a different link name or something?
bad strftime function pointer: rust: 140736400656704 (0x7fffbf2b0940) != c 140736400656800 (0x7fffbf2b09a0)
|
Seems like it, I ll have a look later today. |
src/unix/solarish/mod.rs
Outdated
|
|
||
| pub fn secure_getenv(name: *const c_char) -> *mut c_char; | ||
|
|
||
| #[link_name = "__xpg4_strftime"] |
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.
Doing this unconditionally for both Solaris and illumos is going to break the latter, I believe.
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.
in fact I m just trying to see if it fixes solaris case :) thus this PR being a draft for now
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.
@pfmooney would you be able to check the current version?
283f069 to
237d749
Compare
tgross35
left a comment
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.
Assuming this is good on Illumos since link_name isn't overridden. Thank you!
[ref](https://smartos.org/man/3C/strftime) [ref](https://docs.oracle.com/cd/E88353_01/html/E37843/strftime-3c.html) Fixes: rust-lang#4449 (backport <rust-lang#4453>) (cherry picked from commit f4964b5)
[ref](https://smartos.org/man/3C/strftime) [ref](https://docs.oracle.com/cd/E88353_01/html/E37843/strftime-3c.html) Fixes: #4449 (backport <#4453>) (cherry picked from commit f4964b5)
ref
Fixes: #4449