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