Function rustix::io::ioctl_fioclex
source · pub fn ioctl_fioclex<Fd: AsFd>(fd: Fd) -> Result<()>
Expand description
ioctl(fd, FIOCLEX)
—Set the close-on-exec flag.
Also known as fcntl(fd, F_SETFD, FD_CLOEXEC)
.
pub fn ioctl_fioclex<Fd: AsFd>(fd: Fd) -> Result<()>
ioctl(fd, FIOCLEX)
—Set the close-on-exec flag.
Also known as fcntl(fd, F_SETFD, FD_CLOEXEC)
.