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

Fix libc deprecations #1072

Merged
merged 7 commits into from
Jun 3, 2019
Merged

Fix libc deprecations #1072

merged 7 commits into from
Jun 3, 2019

Conversation

dario23
Copy link
Contributor

@dario23 dario23 commented May 31, 2019

The libc crate now uses rust types in some places where previously types like libc::uint8_t had been defined. This PR adjusts nix's code to reflect these simplifications.

Copy link
Member

@asomers asomers left a comment

Choose a reason for hiding this comment

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

This seems like a good idea. Thanks for the PR.

bors r+

@dario23
Copy link
Contributor Author

dario23 commented May 31, 2019

there seem to be more deprecations than showed up on my machine, travis has some failures.. i'll push an update soon-ish.

@asomers
Copy link
Member

asomers commented May 31, 2019

bors r-

@bors
Copy link
Contributor

bors bot commented May 31, 2019

Canceled

@asomers
Copy link
Member

asomers commented Jun 2, 2019

Any update? We're still very interested in this PR.

On musl, pthread_t is a pointer type.
libc just undefined MADV_SOFT_OFFLINE on mips.
rust-lang/libc#1365

Fixes nix-rust#1074
libc just changed the signedness of sigaction.sa_flags for Android.
rust-lang/libc@841b3eb
There were some breaking changes between 0.2.55 and 0.2.57.  Now Nix
will only work with the later version.
@asomers
Copy link
Member

asomers commented Jun 3, 2019

bors r+

bors bot added a commit that referenced this pull request Jun 3, 2019
1072: Fix libc deprecations r=asomers a=dario23

The `libc` crate now uses rust types in some places where previously types like `libc::uint8_t` had been defined. This PR adjusts nix's code to reflect these simplifications.

Co-authored-by: Johannes Schilling <dario@deaktualisierung.org>
Co-authored-by: Alan Somers <asomers@gmail.com>
@bors
Copy link
Contributor

bors bot commented Jun 3, 2019

Build succeeded

@bors bors bot merged commit 59fabaf into nix-rust:master Jun 3, 2019
@dario23 dario23 deleted the fix-libc-deprecations branch June 3, 2019 13:41
@dario23
Copy link
Contributor Author

dario23 commented Jun 3, 2019

@asomers thanks for completing; wasn't available the last two days :-)

asomers added a commit that referenced this pull request Jun 6, 2019
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.

None yet

2 participants