Function posish::io::dup2_with[][src]

pub fn dup2_with<Fd: AsFd, NewFd: IntoFd>(
    fd: &Fd,
    new: NewFd,
    flags: DupFlags
) -> Result<OwnedFd>
Expand description

dup3(fd, new, flags)—Creates a new OwnedFd instance that shares the same underlying file description as the existing OwnedFd instance, closing new and reusing its file descriptor, with flags.

dup2_with is the same as dup2 but adds an additional flags operand.

References