Duplicates a file descriptor.
fn fcntl_dupfd_cloexec(fd: i32, arg: i32) -> i32
| Name | Description |
|---|---|
| fd | The file descriptor to duplicate. |
| arg | The smalest value of the new file descriptor. |
Returns the new file descriptor or an error value.
fcntl(2) and F_DUPFD_CLOEXEC therein