Thanks to visit codestin.com
Credit goes to docs.rs

Function fcntl_dupfd

Source
pub fn fcntl_dupfd(fd: c_int, lower_bound: c_int) -> Result<OwnedFd>
Expand description

fcntl(2) with cmd = F_DUPFD