Replies: 1 comment 4 replies
-
I don't think we can do this exactly; It is possible that something nicer exists though, worth asking around on Zulip if you are interested. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
libc has several bitflag type aliases, e.g.
mode_t
- which are currently not strongly typed, thus require users to constant deal with casting, and may cause some subtle bugs.Would it make sense to introduce a nicer layer of abstraction over these fields using bitflags or similar crate? This will also help hiding the size of the actual OS-specific field - e.g.
mode_t
is u32 on most platforms, but it is i32 on Redox and u16 on some other OSes.see also uutils/coreutils#7751
Beta Was this translation helpful? Give feedback.
All reactions