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).

References