Lines Matching refs:FileDescriptorVec
11 file::{File, FileDescriptorVec, FileMode},
127 let fd_vec: &mut FileDescriptorVec = Box::leak(FileDescriptorVec::new()); in init_files()
128 self.fds = fd_vec as *mut FileDescriptorVec as usize as *mut c_void; in init_files()
152 let old_fds: &mut FileDescriptorVec = if let Some(o_fds) = FileDescriptorVec::from_pcb(from) in copy_files()
160 let new_fd_vec: &mut FileDescriptorVec = Box::leak(old_fds.clone()); in copy_files()
162 self.fds = new_fd_vec as *mut FileDescriptorVec as usize as *mut c_void; in copy_files()
173 let old_fds: Box<FileDescriptorVec> = in exit_files()
174 unsafe { Box::from_raw(self.fds as *mut FileDescriptorVec) }; in exit_files()
189 let fds: &mut FileDescriptorVec = in alloc_fd()
190 if let Some(f) = FileDescriptorVec::from_pcb(current_pcb()) { in alloc_fd()
195 let r: Option<&mut FileDescriptorVec> = FileDescriptorVec::from_pcb(current_pcb()); in alloc_fd()
234 if !FileDescriptorVec::validate_fd(fd) { in get_file_mut_by_fd()
237 let r: &mut FileDescriptorVec = FileDescriptorVec::from_pcb(current_pcb()).unwrap(); in get_file_mut_by_fd()
248 if !FileDescriptorVec::validate_fd(fd) { in get_file_ref_by_fd()
251 let r: &mut FileDescriptorVec = FileDescriptorVec::from_pcb(current_pcb()).unwrap(); in get_file_ref_by_fd()
260 if !FileDescriptorVec::validate_fd(fd) { in drop_fd()
263 let r: &mut FileDescriptorVec = FileDescriptorVec::from_pcb(current_pcb()).unwrap(); in drop_fd()