-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
base: main
Are you sure you want to change the base?
Conversation
Any chance to get this added also for Solaris? This should be common for both Illumos and Solaris. |
eed2acb
to
40673d5
Compare
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
@@ -3202,6 +3202,21 @@ extern "C" { | |||
pub fn arc4random_uniform(upper_bound: u32) -> u32; | |||
|
|||
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
ref
Fixes: #4449