pub fn ioctl_fionclex<Fd: AsFd>(fd: Fd) -> Result<()>
Expand description
ioctl(fd, FIONCLEX, NULL)
—Remove the close-on-exec flag.
This is similar to fcntl_setfd(fd, FdFlags::empty())
, 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.