Lines Matching refs:file
680 if let Some(file) = &self.fds[i] { in clone()
681 if let Some(file) = file.try_clone() { in clone()
682 res.fds[i] = Some(Arc::new(file)); in clone()
721 pub fn alloc_fd(&mut self, file: File, fd: Option<i32>) -> Result<i32, SystemError> { in alloc_fd()
725 *x = Some(Arc::new(file)); in alloc_fd()
734 self.fds[i] = Some(Arc::new(file)); in alloc_fd()
763 let file = self.fds[fd as usize].take().unwrap(); in drop_fd() localVariable
764 return Ok(file); in drop_fd()
774 if let Some(file) = &self.fds[i] { in close_on_exec()
775 let to_drop = file.close_on_exec(); in close_on_exec()
810 if let Some(file) = self.fds.get_file_by_fd(fd) { in next()
811 return Some((fd, file)); in next()