Function otter_api_tests::unistd::dup3 [−]
pub fn dup3(oldfd: i32, newfd: i32, flags: OFlag) -> Result<i32, Error>
Expand description
Create a new copy of the specified file descriptor using the specified fd and flags (see dup(2)).
This function behaves similar to dup2()
but allows for flags to be
specified.