Function rustix::io::ioctl_fioclex
source · 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.