Home
last modified time | relevance | path

Searched refs:file_cp (Results 1 – 1 of 1) sorted by relevance

/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dsyscall.rs384 let file_cp: Box<File> = file.try_clone().ok_or(SystemError::EBADF)?; in dup() localVariable
387 let res = current_pcb().alloc_fd(*file_cp, None).map(|x| x as usize); in dup()
432 let file_cp = file.try_clone(); in dup2() localVariable
433 if file_cp.is_none() { in dup2()
438 .alloc_fd(*file_cp.unwrap(), Some(newfd)) in dup2()