-
Notifications
You must be signed in to change notification settings - Fork 1.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
solaris based systems update #2236
Conversation
r? @m-ou-se (rust-highfive has picked a reviewer for you, use r? to override) |
src/unix/solarish/mod.rs
Outdated
@@ -2227,6 +2241,8 @@ extern "C" { | |||
pub fn labs(i: ::c_long) -> ::c_long; | |||
pub fn rand() -> ::c_int; | |||
pub fn srand(seed: ::c_uint); | |||
pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int; | |||
pub fn getrandom(bbuf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint); |
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.
Shouldn't getrandom
return ssize_t
?
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.
oh right I just forgot the return type
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.
Is using the same type for Illumos and Solaris correct here? rand
/getrandom
used to use different return types for getrandom
for these two OSes (see e.g. rust-random/rand#730), and glibc also mentions Solaris having a non-standard return type (here).
(I came here while investigating rust-lang/miri#3924.)
basis to do cpu affinity with some illumos specifics.
@bors r+ |
📌 Commit 68ec7f2 has been approved by |
☀️ Test successful - checks-actions, checks-cirrus-freebsd-11, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13 |
basis to do cpu affinity with some illumos specifics.