forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rust: file: Add
FileFlags
type for File
flags
This commit addes a wrapper struct, `FileFlags`, that defines constants for `struct file`'s `f_flags`. This struct is desirable b/c callers will no longer need to access soon-to-be-private `bindings` module. It also documents the previously ambiguous u32 return value on `flags()`. This closes torvalds#606. Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
- Loading branch information
Showing
1 changed file
with
101 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters