macro_rules! has { ($mode:expr, $perm:expr) => { ... }; }
Used to check if the mode has its perm bit set.
mode
perm
This macro expands to mode & perm != 0.
mode & perm != 0