linux ttyname: Change return type of is_pty from int to bool