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

Use libc definitions wherever they are provided #51

Merged
merged 1 commit into from Nov 17, 2018

Conversation

posborne
Copy link
Contributor

@posborne posborne commented Nov 9, 2018

Since gaol was first written, most system definitions have made their way into the libc crate (with good test coverage against various libc implementations and platforms).

This conversion was fairly mechanical. There's a mix of pulling libc definitions into the namespace and using the libc::. If there is a preference one way or the other I can certainly amend the commit with the preferred style. This codebase could probably use a good rustfmt too but for this change I avoided that (except for on platform/unix/process.rs which had been thoroughly touched already).

r? @pcwalton

Since gaol was first written, most system definitions have made their
way into the libc crate (with good test coverage against various libc
implementations).  Make an attempt to use those definitions wherever
reasonable.
@posborne
Copy link
Contributor Author

@bors-servo retry

@bors-servo
Copy link

@posborne: 🔑 Insufficient privileges: not in try users

@jdm
Copy link
Member

jdm commented Nov 17, 2018

@bors-servo r+

@bors-servo
Copy link

📌 Commit df8ce8c has been approved by jdm

@bors-servo
Copy link

⌛ Testing commit df8ce8c with merge a23a2d8...

bors-servo pushed a commit that referenced this pull request Nov 17, 2018
Use libc definitions wherever they are provided

Since gaol was first written, most system definitions have made their way into the libc crate (with good test coverage against various libc implementations and platforms).

This conversion was fairly mechanical.  There's a mix of pulling libc definitions into the namespace and using the `libc::`.  If there is a preference one way or the other I can certainly amend the commit with the preferred style.  This codebase could probably use a good `rustfmt` too but for this change I avoided that (except for on platform/unix/process.rs which had been thoroughly touched already).

r? @pcwalton
@bors-servo
Copy link

☀️ Test successful - status-travis
Approved by: jdm
Pushing a23a2d8 to master...

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

3 participants