Lines Matching refs:File
16 file::{File, FileMode},
151 parent_inode.create(filename, FileType::File, 0o777)?; in open()
170 && file_type == FileType::File in open()
176 let mut file: File = File::new(inode, mode)?; in open()
208 let file: Option<&mut File> = current_pcb().get_file_mut_by_fd(fd); in read()
212 let file: &mut File = file.unwrap(); in read()
226 let file: Option<&mut File> = current_pcb().get_file_mut_by_fd(fd); in write()
230 let file: &mut File = file.unwrap(); in write()
244 let file: Option<&mut File> = current_pcb().get_file_mut_by_fd(fd); in lseek()
248 let file: &mut File = file.unwrap(); in lseek()
317 let file: &mut File = match current_pcb().get_file_mut_by_fd(fd) { in getdents()
384 let file_cp: Box<File> = file.try_clone().ok_or(SystemError::EBADF)?; in dup()
601 FileType::File => kstat.mode.insert(ModeType::S_IFMT), in do_fstat()