pub fn tcgetsid(fd: RawFd) -> Result<Pid>
Get the session controlled by the given terminal (see tcgetsid(3)).