unix_mode
pub fn is_char_device(mode: u32) -> bool
Returns true if this mode represents a character device.