Function replace_stdio_fd

pub(in ::os::unix::io) fn replace_stdio_fd(this: BorrowedFd<'_>, other: OwnedFd) -> Result<()>

Replaces the underlying file descriptor with the one from other. Does not set CLOEXEC.