pub const O_ACCMODE: u32 = bindings::O_ACCMODE; // 3u32
Bitmask for access mode flags.
use kernel::file; if (flags & file::flags::O_ACCMODE) == file::flags::O_RDONLY { do_something(); }