pub fn ioctl_tiocsctty<Fd>(fd: Fd) -> Result<(), Errno> ⓘwhere Fd: AsFd,
dep_rustix
ioctl(fd, TIOCSCTTY, 0)—Sets the controlling terminal for the process.
ioctl(fd, TIOCSCTTY, 0)