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

solaris based systems update #2236

Merged
merged 1 commit into from
Jun 12, 2021
Merged

solaris based systems update #2236

merged 1 commit into from
Jun 12, 2021

Conversation

devnexen
Copy link
Contributor

basis to do cpu affinity with some illumos specifics.

@rust-highfive
Copy link

r? @m-ou-se

(rust-highfive has picked a reviewer for you, use r? to override)

@@ -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);
Copy link
Member

@JohnTitor JohnTitor Jun 12, 2021

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?

Copy link
Contributor Author

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

Copy link
Member

@RalfJung RalfJung Sep 28, 2024

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.
@JohnTitor
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Jun 12, 2021

📌 Commit 68ec7f2 has been approved by JohnTitor

@bors
Copy link
Contributor

bors commented Jun 12, 2021

⌛ Testing commit 68ec7f2 with merge 09602d5...

@bors
Copy link
Contributor

bors commented Jun 12, 2021

☀️ Test successful - checks-actions, checks-cirrus-freebsd-11, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13
Approved by: JohnTitor
Pushing 09602d5 to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants