1: #if defined(LIBC_SCCS) && !defined(lint)
2: static char sccsid[] = "@(#)isatty.c 5.2 (Berkeley) 3/9/86";
3: #endif LIBC_SCCS and not lint
4:
5: /*
6: * Returns 1 iff file is a tty
7: */
8:
9: #include <sgtty.h>
10:
11: isatty(f)
12: {
13: struct sgttyb ttyb;
14:
15: if (ioctl(f, TIOCGETP, &ttyb) < 0)
16: return(0);
17: return(1);
18: }
Defined functions
isatty
defined in line
11; used 124 times
- in /usr/src/bin/cp.c line
143
- in /usr/src/bin/csh/sh.c line
220,
229,
269-273(3),
497
- in /usr/src/bin/ls.c line
88
- in /usr/src/bin/mail.c line
507
- in /usr/src/bin/mv.c line
135-138(2)
- in /usr/src/bin/od.c line
882
- in /usr/src/bin/rm.c line
26
- in /usr/src/bin/sh/service.c line
156
- in /usr/src/bin/test.c line
108-110(2)
- in /usr/src/etc/diskpart.c line
110
- in /usr/src/etc/rxformat.c line
48
- in /usr/src/etc/syslogd.c line
1024
- in /usr/src/etc/timed/timedc.c line
67
- in /usr/src/games/hunt/hunt.c line
146
- in /usr/src/lib/libc/gen/ttyname.c line
29
- in /usr/src/lib/libc/net/ruserpass.c line
751-755(3)
- in /usr/src/lib/libc/stdio/flsbuf.c line
62
- in /usr/src/new/B/src/bint/b3fil.c line
183
- in /usr/src/new/B/src/bsmall/b2fil.c line
177
- in /usr/src/new/X/keycomp/keycomp.c line
66
- in /usr/src/new/apl/src/a0.c line
39,
150
- in /usr/src/new/apl/src/a9.c line
59
- in /usr/src/new/apl/src/aplcvt.c line
117(2)
- in /usr/src/new/cpm/src/copy.c line
69
- in /usr/src/new/cpm/src/cpm.c line
69(2)
- in /usr/src/new/dipress/src/bin/texttoip/texttoip.c line
90
- in /usr/src/new/help/help.c line
334
- in /usr/src/new/icon/functions/open.c line
112
- in /usr/src/new/kermit/ckufio.c line
217
- in /usr/src/new/kermit/ckutio.c line
385
- in /usr/src/new/kermit/ckuusr.c line
173,
246
- in /usr/src/new/mh/miscellany/less/main.c line
72,
210
- in /usr/src/new/mh/sbr/getanswer.c line
13
- in /usr/src/new/mh/support/bboards/bbexp.c line
110
- in /usr/src/new/mh/support/pop/popd.c line
241
- in /usr/src/new/mh/support/pop/smtpd.c line
305
- in /usr/src/new/mh/uip/mhlsbr.c line
349
- in /usr/src/new/mh/uip/msh.c line
1186
- in /usr/src/new/mh/uip/pick.c line
288
- in /usr/src/new/mh/uip/post.c line
648
- in /usr/src/new/mh/uip/scan.c line
191
- in /usr/src/new/mh/uip/vmh.c line
1125(2)
- in /usr/src/new/news/src/fullname.c line
60
- in /usr/src/new/news/src/inews.c line
187,
269
- in /usr/src/new/nntp/server/access.c line
59
- in /usr/src/new/rcs/src/ci.c line
233,
712,
770,
785,
791,
804,
815
- in /usr/src/new/rcs/src/rcsgen.c line
231,
237,
245,
256
- in /usr/src/new/spms/src/bin/plog/Plog.c line
165,
175
- in /usr/src/new/spms/src/lib/libspms/src/isfg.c line
22,
31,
41-43(2)
- in /usr/src/new/spms/src/lib/libspms/src/isintract.c line
22,
31(2),
41-43(3)
- in /usr/src/new/xns/examples/filing/main.c line
83
- in /usr/src/old/sdb/docomm.c line
210
- in /usr/src/old/talk/get_names.c line
40
- in /usr/src/ucb/Mail/main.c line
65-66(2)
- in /usr/src/ucb/compress/compress.c line
640
- in /usr/src/ucb/dbx/main.c line
42,
331
- in /usr/src/ucb/ex/ex.c line
307
- in /usr/src/ucb/ex/ex_cmds.c line
858
- in /usr/src/ucb/ex/ex_get.c line
152
- in /usr/src/ucb/ex/ex_io.c line
343,
564,
806
- in /usr/src/ucb/ftp/main.c line
94
- in /usr/src/ucb/lisp/franz/fex4.c line
262
- in /usr/src/ucb/man.c line
120
- in /usr/src/ucb/more/more.c line
1354
- in /usr/src/ucb/msgs/msgs.c line
317,
356
- in /usr/src/ucb/pascal/pdx/main.h line
20
- in /usr/src/ucb/talk/get_names.c line
38
- in /usr/src/ucb/ul.c line
64
- in /usr/src/undoc/v6mail.c line
146,
287
- in /usr/src/usr.bin/at/at.c line
366
- in /usr/src/usr.bin/refer/lookbib.c line
30,
49
- in /usr/src/usr.bin/tip/tip.c line
59
- in /usr/src/usr.bin/tk.c line
210
- in /usr/src/usr.bin/uucp/cico.c line
223,
517,
810
- in /usr/src/usr.lib/libF77/s_paus.c line
27
- in /usr/src/usr.lib/libI77/open.c line
230
- in /usr/src/usr.lib/libU77/isatty_.c line
34
- in /usr/src/usr.lib/libcurses/initscr.c line
34
- in /usr/src/usr.lib/libplot/hp2648/open.c line
27
- in /usr/src/usr.lib/lpr/lpc.c line
65
- in /usr/src/usr.lib/lpr/printjob.c line
1131
Defined variables
sccsid
defined in line
2;
never used