pub fn ioctl_fioclex<Fd: AsFd>(fd: Fd) -> Result<()>Expand description
ioctl(fd, FIOCLEX, NULL)—Set the close-on-exec flag.
This is similar to fcntl(fd, F_SETFD, FD_CLOEXEC), except that it avoids
clearing any other flags that might be set.
Linux: Note that ioctl can not be used on OFlags::PATH file
descriptors.