-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Added extensive constants to make use of the BSD's sysctl function. #285
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
Thanks! Looks like some of the CI failures are legitimate though? |
OK will take a look in the morning...
|
OK, looks like I missed some duplicate definitions which had been added piecemeal. I'm beginning to wonder, even though it creates apparent duplication, whether it would be better to drop the attempt to create a hierarchy of unices and just push all definitions down to a per-OS file. It could make maintenance easier. Thoughts? Alternatively, a kickstarter campaign to flesh out all remaining libc bits and bobs... I'd be game for that. |
Heh, yeah the organization as-is may be a bit of an opportunistic optimization that may not be worth it in the end, but we probably don't want to shift it all around just yet. |
Fair enough
|
Looks like travis is still having some problems though? |
OK, I think I've fixed this. (I must say, I'm dead impressed with your CI builds. They're very effective). |
OK, looks like we're just down to bitrig failing now...I'll try again... |
sysctl usage does differ significantly across the BSDs, and, whilst some constants overlap, many do not. It is easier to maintain them in separate modules, rather than trying to tease out common definitions.
Added extensive constants to make use of the BSD's sysctl function. sysctl usage does differ significantly across the BSDs, and, whilst some constants overlap, many do not. It is easier to maintain them in separate modules, rather than trying to tease out common definitions.
☀️ Test successful - status-appveyor, travis |
@raphaelcohn It looks like |
Removed by accident in rust-lang#285
Add back HW_NCPU Removed by accident in #285
Ah yeah that's accidentally, I'm adding it back in #291 |
Use libc constants in sys/signal.rs. Work toward rust-lang#264.
sysctl usage does differ significantly across the BSDs, and, whilst
some constants overlap, many do not. It is easier to maintain them
in separate modules, rather than trying to tease out common definitions.