Lines Matching refs:FileMode
58 pub fn update_mode(&mut self, mode: FileMode) { in update_mode() argument
72 pub struct FileMode: u32{
119 impl FileMode { impl
123 return self.bits() & FileMode::O_ACCMODE.bits(); in accmode()
203 mode: RwLock<FileMode>,
218 pub fn new(inode: Arc<dyn IndexNode>, mode: FileMode) -> Result<Self, SystemError> { in new()
420 if *self.mode.read() == FileMode::O_WRONLY { in readable()
431 if *self.mode.read() == FileMode::O_RDONLY { in writeable()
531 pub fn mode(&self) -> FileMode { in mode() argument
538 return self.mode().contains(FileMode::O_CLOEXEC); in close_on_exec()
546 mode_guard.insert(FileMode::O_CLOEXEC); in set_close_on_exec()
548 mode_guard.remove(FileMode::O_CLOEXEC); in set_close_on_exec()
552 pub fn set_mode(&self, mode: FileMode) -> Result<(), SystemError> { in set_mode()