Skip to content

add FIO* for FreeBSD and NetBSD #1200

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

Merged
merged 2 commits into from
Jan 11, 2019
Merged

add FIO* for FreeBSD and NetBSD #1200

merged 2 commits into from
Jan 11, 2019

Conversation

alecmocatta
Copy link
Contributor

@alecmocatta alecmocatta commented Jan 8, 2019

Calculated here from FreeBSD source.

Calculated here from NetBSD source.

Some of these are likely identical across all BSDs – if this can be confirmed they could be elevated to unix/bsd/mod.rs alongside FIOCLEX and FIONBIO.

@rust-highfive
Copy link

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Jan 8, 2019

📌 Commit 6ce007f has been approved by alexcrichton

@alecmocatta alecmocatta changed the title add FIO* for freebsd add FIO* for FreeBSD and NetBSD Jan 8, 2019
@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Jan 8, 2019

📌 Commit f97d3c4 has been approved by alexcrichton

@alecmocatta
Copy link
Contributor Author

@alexcrichton Is something up with homu? I would expect it to have tested and/or merged by now?

@alexcrichton
Copy link
Member

I've kicked a build to try to make progress

bors added a commit that referenced this pull request Jan 10, 2019
add FIO* for FreeBSD and NetBSD

Calculated [here](https://repl.it/repls/PaltryTroubledMonitors) from FreeBSD [source](https://github.com/freebsd/freebsd/blob/9867e6d8fe1cac34121e5f2df9357363f5659617/sys/sys/filio.h).

Calculated [here](https://repl.it/repls/ProfitableImpracticalComputeranimation) from NetBSD [source](https://github.com/NetBSD/src/blob/64b8a48e1288eb3902ed73113d157af50b2ec596/sys/sys/filio.h).

Some of these are likely identical across all BSDs – if this can be confirmed they could be elevated to `unix/bsd/mod.rs` alongside `FIOCLEX` and `FIONBIO`.
@bors
Copy link
Contributor

bors commented Jan 10, 2019

⌛ Testing commit f97d3c4 with merge 26b50c6...

@bors
Copy link
Contributor

bors commented Jan 10, 2019

💔 Test failed - checks-travis

@alecmocatta
Copy link
Contributor Author

Failure is due to rust-lang/rust#57488. @alexcrichton If you're able to retry when that's resolved, thanks!

@alexcrichton
Copy link
Member

@bors: retry

@bors
Copy link
Contributor

bors commented Jan 11, 2019

⌛ Testing commit f97d3c4 with merge 86a091c...

bors added a commit that referenced this pull request Jan 11, 2019
add FIO* for FreeBSD and NetBSD

Calculated [here](https://repl.it/repls/PaltryTroubledMonitors) from FreeBSD [source](https://github.com/freebsd/freebsd/blob/9867e6d8fe1cac34121e5f2df9357363f5659617/sys/sys/filio.h).

Calculated [here](https://repl.it/repls/ProfitableImpracticalComputeranimation) from NetBSD [source](https://github.com/NetBSD/src/blob/64b8a48e1288eb3902ed73113d157af50b2ec596/sys/sys/filio.h).

Some of these are likely identical across all BSDs – if this can be confirmed they could be elevated to `unix/bsd/mod.rs` alongside `FIOCLEX` and `FIONBIO`.
@bors
Copy link
Contributor

bors commented Jan 11, 2019

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

@bors bors merged commit f97d3c4 into rust-lang:master Jan 11, 2019
@inferiorhumanorgans
Copy link
Contributor

inferiorhumanorgans commented Jan 12, 2019

This appears to break the build on NetBSD 8.0. I'm currently seeing two relevant errors with the build:

  • FIOSEEKDATA is not defined
  • FIOSEEKHOLE is not defined

And two seemingly unrelated errors:

  • -Wno-address-of-packed-member is not a valid command line option
  • error: attributes on struct pattern or literal fields are unstable (see issue #38814)

alecmocatta added a commit to alecmocatta/libc that referenced this pull request Jan 12, 2019
@alecmocatta
Copy link
Contributor Author

@inferiorhumanorgans Good catch, sorry for missing this. They'll be in an upcoming NetBSD release but aren't in the latest. While this doesn't impact libc-consumers, failing the testsuite on latest NetBSD isn't ideal.

I've PR'd to comment them out. When the next NetBSD ships with them included we can uncomment.

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