[−][src]Function linux::syscall::fcntl_dupfd_cloexec
pub fn fcntl_dupfd_cloexec(fd: c_int, arg: c_int) -> c_int
Duplicates a file descriptor.
[argument, fd] The file descriptor to duplicate.
[argument, arg] The smalest value of the new file descriptor.
[return_value] Returns the new file descriptor or an error value.
= See also
- link:man:fcntl(2) and F_DUPFD_CLOEXEC therein