ctermid, isatty, ttyname