1: /* @(#)isatty.c 2.1 SCCS id keyword */
2: /*
3: * Returns 1 iff file is a tty
4: */
5:
6: #include <sgtty.h>
7:
8: isatty(f)
9: {
10: struct sgttyb ttyb;
11:
12: if (gtty(f, &ttyb) < 0)
13: return(0);
14: return(1);
15: }
Defined functions
isatty
defined in line
8; used 42 times
- in /usr/src/cmd/man.c line
101
- in /usr/src/cmd/mv.c line
130
- in /usr/src/cmd/rm.c line
21
- in /usr/src/cmd/test.c line
99-101(2)
- in /usr/src/cmd/tk.c line
211
- in /usr/src/lib/c/gen/ttyname.c line
26
- in /usr/src/lib/c/stdio/flsbuf.c line
43-48(2)
- in /usr/src/lib/curses/initscr.c line
20
- in /usr/src/lib/libF77/s_paus.c line
23
- in /usr/src/lib/libI77/util.c line
31
- in /usr/src/lib/libU77/isatty_.c line
27
- in /usr/src/ucb/csh/sh.c line
219,
228,
269-273(3),
484
- in /usr/src/ucb/delivermail/vax-mail.c line
516
- in /usr/src/ucb/ex/ex2/ex.c line
247
- in /usr/src/ucb/ex/ex2/ex_cmds.c line
737
- in /usr/src/ucb/ex/ex2/ex_get.c line
144
- in /usr/src/ucb/ex/ex2/ex_io.c line
314,
479,
678
- in /usr/src/ucb/ex/ex3/ex.c line
293
- in /usr/src/ucb/ex/ex3/ex_cmds.c line
841
- in /usr/src/ucb/ex/ex3/ex_get.c line
144
- in /usr/src/ucb/ex/ex3/ex_io.c line
335,
548,
780
- in /usr/src/ucb/lpr/src/lpd.c line
614
- in /usr/src/ucb/lpr/src/lpdrestart.c line
131
- in /usr/src/ucb/lpr/src/ulf.c line
437
- in /usr/src/ucb/msgs/msgs.c line
310,
349
- in /usr/src/ucb/oldcsh/sh.c line
142,
148,
197,
405
- in /usr/src/ucb/sendmail/aux/syslog.c line
870