tty_read
if ((tty_read(buf,sizeof(buf))<0) || !strcmp(buf,".")){
if ((tty_read(buf, sizeof(buf)) < 0) || !strcmp(buf, ".")) {
int tty_read(char *, int);
if (tty_read(tmpname, sizeof(tmpname)) < 0)