Lines Matching refs:fds
124 if self.fds != null_mut() { in init_files()
130 self.fds = fd_vec as *mut FileDescriptorVec as usize as *mut c_void; in init_files()
149 self.fds = null_mut(); in copy_files()
164 self.fds = new_fd_vec as *mut FileDescriptorVec as usize as *mut c_void; in copy_files()
171 if self.fds.is_null() { in exit_files()
176 unsafe { Box::from_raw(self.fds as *mut FileDescriptorVec) }; in exit_files()
178 self.fds = null_mut(); in exit_files()
191 let fds: &mut FileDescriptorVec = in alloc_fd() localVariable
209 let x = &mut fds.fds[new_fd as usize]; in alloc_fd()
219 for x in fds.fds.iter_mut() { in alloc_fd()
240 return r.fds[fd as usize].as_deref_mut(); in get_file_mut_by_fd()
254 return r.fds[fd as usize].as_deref(); in get_file_ref_by_fd()
267 let f: Option<&File> = r.fds[fd as usize].as_deref(); in drop_fd()
276 r.fds[fd as usize] = None; in drop_fd()