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

zircon: the type of zx_handle_t is now unsigned #45030

Merged
merged 2 commits into from
Oct 8, 2017

Conversation

raggi
Copy link
Contributor

@raggi raggi commented Oct 4, 2017

This is a kernel ABI change that landed today. I noticed some other ABI
issues and have left a note to cleanup once they are better defined.

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @aturon (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

This is a kernel ABI change that landed today. I noticed some other ABI
issues and have left a note to cleanup once they are better defined.
pub type zx_vaddr_t = usize;
pub type zx_rights_t = u32;
pub type zx_status_t = i32;

// TODO(raggi): zx_size_t was removed from Zircon. various syscall API docs use size_t here, but
// don't define that well at the ABI level yet, as the C spec definition of size_t isn't what is
// meant. In the future Zirocn will define size_t more strictly for it's ABI. At that time,
Copy link
Member

@cramertj cramertj Oct 4, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Zircon, its 😄

@raggi raggi force-pushed the zircon-handle-t branch 2 times, most recently from b0ab54b to 718356e Compare October 4, 2017 23:06
 * Use size_t where size_t is used, while it's not critical on our
 specifically supported architectures, this is more accurate.
 * Update HND_SPECIAL_COUNT to the correct value, and give it the size
 that enum is likely to be.
@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Oct 5, 2017

📌 Commit fb03bb7 has been approved by alexcrichton

@shepmaster shepmaster added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Oct 6, 2017
@bors
Copy link
Contributor

bors commented Oct 8, 2017

⌛ Testing commit fb03bb7 with merge 2a0569bed006f5d7629e6dab58fb45cbd2ee6e39...

@bors
Copy link
Contributor

bors commented Oct 8, 2017

💔 Test failed - status-travis

@kennytm
Copy link
Member

kennytm commented Oct 8, 2017

@bors retry

x86_64-gnu-aux failed to download openssl, cache or network issue I guess.

[01:04:11] thread 'main' panicked at 'downloaded openssl sha256 different
[01:04:11] expected: 6b3977c61f2aedf0f96367dcfb5c6e578cf37e7b8d913b4ecb6643c3cb88d8c0
[01:04:11] found:    6dfc7dd80c0fa4dedb51a793af0379118fa0226d0726e5413f8850b2e9258720
[01:04:11] ', /checkout/src/bootstrap/native.rs:380:16
[01:04:11] note: Run with `RUST_BACKTRACE=1` for a backtrace.
[01:04:11] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test src/tools/cargotest src/tools/cargo src/tools/rls src/tools/rustfmt src/tools/miri src/test/pretty src/test/run-pass/pretty src/test/run-fail/pretty src/test/run-pass-valgrind/pretty src/test/run-pass-fulldeps/pretty src/test/run-fail-fulldeps/pretty

@bors
Copy link
Contributor

bors commented Oct 8, 2017

⌛ Testing commit fb03bb7 with merge 150b625...

bors added a commit that referenced this pull request Oct 8, 2017
zircon: the type of zx_handle_t is now unsigned

This is a kernel ABI change that landed today. I noticed some other ABI
issues and have left a note to cleanup once they are better defined.
@bors
Copy link
Contributor

bors commented Oct 8, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 150b625 to master...

@bors bors merged commit fb03bb7 into rust-lang:master Oct 8, 2017
kennytm added a commit to kennytm/rust that referenced this pull request Oct 13, 2017
…nload-error, r=Mark-Simulacrum

rustbuild: Make openssl download more reliable.

1. Add `-f` flag to curl, so when the server returns 403 or 500 it will fail immediately.
2. Moved the checksum part into the retry loop, assuming checksum failure is due to broken download that can be fixed by downloading again.

This PR is created responding to two recent spurious failures in rust-lang#45075 (comment) and rust-lang#45030 (comment).

r? @Mark-Simulacrum , cc @aidanhs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants