Home
last modified time | relevance | path

Searched refs:ttyf (Results 1 – 3 of 3) sorted by relevance

/titanic_41/usr/src/cmd/mail/
H A Dsendmail.c46 int ttyf = 0; local
136 ttyf = isatty(fileno(stdin));
248 if (n == 0 || (ttyf && !strncmp(buf, ".\n", 2))) {
288 if (n == 0 || (ttyf && !strncmp(buf, ".\n", 2))) {
374 if (ttyf && !strcmp(buf, ".\n"))
384 n = ttyf
H A Dprintmail.c47 int ttyf = isatty(1) ? TTY : ORDINARY; in printmail() local
198 copylet(showlet, stdout, ttyf); in printmail()
/titanic_41/usr/src/cmd/syslogd/
H A Dsyslogd.c2115 int ttyf; in writetodev() local
2131 ttyf = open(w->dev, O_WRONLY|O_NOCTTY|O_NDELAY); in writetodev()
2132 if (ttyf >= 0) { in writetodev()
2133 if (fstat(ttyf, &statb) != 0) { in writetodev()
2141 } else if (!isatty(ttyf)) { in writetodev()
2161 } else if (write(ttyf, w->msg, len) != len) { in writetodev()
2171 (void) close(ttyf); in writetodev()