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

Add more WASI libc bindings #1325

Merged
merged 14 commits into from
Apr 25, 2019
Merged

Add more WASI libc bindings #1325

merged 14 commits into from
Apr 25, 2019

Conversation

sunfishcode
Copy link
Member

This picks up #1321, adding more WASI libc bindings, adding several more fixes. In particular, cargo test --all including libc-test now builds successfully.

Rustc is changing it to be target_os; for now, recognize both.
Also, locale_t is a typedef for a pointer to an opaque struct, so
represent it that way explicitly.
dirent contains a flexible array member, so don't test its sizeof, don't
allow it to be copied, and don't represent it with an artificial size.
@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @gnzlbg (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.

@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Apr 23, 2019

📌 Commit ef7ae73 has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Apr 23, 2019

⌛ Testing commit ef7ae73 with merge e167760...

bors added a commit that referenced this pull request Apr 23, 2019
Add more WASI libc bindings

This picks up #1321, adding more WASI libc bindings, adding several more fixes. In particular, `cargo test --all` including libc-test now builds successfully.
@bors
Copy link
Contributor

bors commented Apr 23, 2019

💔 Test failed - checks-travis

This contains several fixes, including the FD_ISSET signature change
that the previous patch in this PR needs.
@gnzlbg
Copy link
Contributor

gnzlbg commented Apr 24, 2019

@bors: r+

@bors
Copy link
Contributor

bors commented Apr 24, 2019

📌 Commit edd541e has been approved by gnzlbg

@bors
Copy link
Contributor

bors commented Apr 24, 2019

⌛ Testing commit edd541e with merge 06b336f...

bors added a commit that referenced this pull request Apr 24, 2019
Add more WASI libc bindings

This picks up #1321, adding more WASI libc bindings, adding several more fixes. In particular, `cargo test --all` including libc-test now builds successfully.
@bors
Copy link
Contributor

bors commented Apr 24, 2019

💔 Test failed - checks-travis

fd_set isn't automatically copyable. While it will be possible to fix
that, for now just remove these so that they don't block other changes.
@gnzlbg
Copy link
Contributor

gnzlbg commented Apr 24, 2019

@sunfishcode note that if you want to use travis for testing you can comment out all "irrelevant" build jobs in a commit, so that travis only tests the relevant ones for the PR, and once those are green, kill the commit.

@sunfishcode
Copy link
Member Author

@gnzlbg That's good to know, thanks! In any case though, the CI is now green here.

@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Apr 25, 2019

📌 Commit 13ddc16 has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Apr 25, 2019

⌛ Testing commit 13ddc16 with merge 0ec9af9...

bors added a commit that referenced this pull request Apr 25, 2019
Add more WASI libc bindings

This picks up #1321, adding more WASI libc bindings, adding several more fixes. In particular, `cargo test --all` including libc-test now builds successfully.
@bors
Copy link
Contributor

bors commented Apr 25, 2019

☀️ Test successful - checks-cirrus, checks-travis, status-appveyor
Approved by: alexcrichton
Pushing 0ec9af9 to master...

@bors bors merged commit 13ddc16 into rust-lang:master Apr 25, 2019
@sunfishcode sunfishcode deleted the wasi-more-libc branch April 26, 2019 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants