-
Notifications
You must be signed in to change notification settings - Fork 689
More bitflags #243
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
More bitflags #243
Conversation
use libc::{self, c_int}; | ||
|
||
bitflags!{ | ||
flags MmapFlags: c_int { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we call these MapFlags
for consistency?
Hi @fiveop! This is great, thanks for taking the time. I just have a couple of naming suggestions, because the naming of most flags seems to be |
I agree and will push a corresponding change. In addition, I will create a file which states this convention (in which we may than explicitly state further conventions) and open a PR for discussion. |
@fiveop +++ on the discussion + convention doc! This PR made me think o fit but haven't followed through. |
I'll wait for your extra commit then we can merge it. |
I had to rebase, so I'll open a new PR for tests. |
For future reference, rebase and force push will trigger tests just fine. :-) |
This patch converts some constants to
bitflags
types. It should cover all flags insrc/sched.rs
andsrc/sys/mman.rs
. This is part of resolving #58.