Searched refs:new_file (Results 1 – 1 of 1) sorted by relevance
1059 let new_file = old_file.try_clone().ok_or(SystemError::EBADF)?; in dup() localVariable1061 new_file.set_close_on_exec(false); in dup()1063 let res = fd_table_guard.alloc_fd(new_file, None).map(|x| x as usize); in dup()1136 let new_file = old_file.try_clone().ok_or(SystemError::EBADF)?; in do_dup3() localVariable1139 new_file.set_close_on_exec(true); in do_dup3()1141 new_file.set_close_on_exec(false); in do_dup3()1145 .alloc_fd(new_file, Some(newfd)) in do_dup3()