Lines Matching refs:FileMode
36 pub struct FileMode: u32{
79 impl FileMode { impl
83 return self.bits() & FileMode::O_ACCMODE.bits(); in accmode()
93 mode: FileMode,
106 pub fn new(inode: Arc<dyn IndexNode>, mode: FileMode) -> Result<Self, SystemError> { in new()
225 if self.mode == FileMode::O_WRONLY { in readable()
236 if self.mode == FileMode::O_RDONLY { in writeable()
320 pub fn mode(&self) -> FileMode { in mode() argument
327 return self.mode.contains(FileMode::O_CLOEXEC); in close_on_exec()
334 self.mode.insert(FileMode::O_CLOEXEC); in set_close_on_exec()
336 self.mode.remove(FileMode::O_CLOEXEC); in set_close_on_exec()
340 pub fn set_mode(&mut self, mode: FileMode) -> Result<(), SystemError> { in set_mode()