Lines Matching refs:fds
655 fds: Vec<Option<Arc<File>>>, field
671 return FileDescriptorVec { fds: data }; in new()
680 if let Some(file) = &self.fds[i] { in clone()
682 res.fds[i] = Some(Arc::new(file)); in clone()
692 for fd in &self.fds { in fd_open_count()
723 let x = &mut self.fds[new_fd as usize]; in alloc_fd()
733 if self.fds[i].is_none() { in alloc_fd()
734 self.fds[i] = Some(Arc::new(file)); in alloc_fd()
751 self.fds[fd as usize].clone() in get_file_by_fd()
763 let file = self.fds[fd as usize].take().unwrap(); in drop_fd()
774 if let Some(file) = &self.fds[i] { in close_on_exec()
793 fds: &'a FileDescriptorVec, field
798 pub fn new(fds: &'a FileDescriptorVec) -> Self { in new()
799 return Self { fds, index: 0 }; in new()
810 if let Some(file) = self.fds.get_file_by_fd(fd) { in next()