1: /*
2: * Copyright (c) 1980 Regents of the University of California.
3: * All rights reserved. The Berkeley software License Agreement
4: * specifies the terms and conditions for redistribution.
5: */
6:
7: #if defined(LIBC_SCCS) && !defined(lint)
8: static char sccsid[] = "@(#)gtty.c 5.2 (Berkeley) 3/9/86";
9: #endif LIBC_SCCS and not lint
10:
11: /*
12: * Writearound to old gtty system call.
13: */
14:
15: #include <sgtty.h>
16:
17: gtty(fd, ap)
18: struct sgtty *ap;
19: {
20:
21: return(ioctl(fd, TIOCGETP, ap));
22: }
Defined functions
gtty
defined in line
17; used 92 times
- in /usr/include/curses.h line
155
- in /usr/ingres/source/gutil/set_so_buf.c line
34
- in /usr/ingres/source/iutil/initucode.c line
536
- in /usr/src/bin/ed.c line
1667
- in /usr/src/bin/ls.c line
90
- in /usr/src/bin/sh/main.c line
122(2)
- in /usr/src/etc/rlogind.c line
142
- in /usr/src/games/backgammon/main.c line
82
- in /usr/src/games/backgammon/teach.c line
50
- in /usr/src/games/boggle/boggle.c line
515
- in /usr/src/games/compat/unixtraps.c line
365
- in /usr/src/games/rain.c line
92,
105-106(2)
- in /usr/src/games/snake/move.c line
616
- in /usr/src/games/trek/main.c line
141
- in /usr/src/games/worms.c line
234
- in /usr/src/games/wump.c line
393
- in /usr/src/new/B/src/bed/unix.c line
281,
292
- in /usr/src/new/X/ximpv/impv.c line
159
- in /usr/src/new/apl/src/am.c line
33,
56,
91
- in /usr/src/new/apl/src/xed.c line
4391
- in /usr/src/new/jove/jove.c line
297,
497
- in /usr/src/new/kermit/ckutio.c line
451-453(3),
1294,
1478-1480(3)
- in /usr/src/new/nntp/rrn/term.h line
107
- in /usr/src/new/notes/src/miscio.c line
70
- in /usr/src/new/rn/term.h line
107
- in /usr/src/new/umodem/umodem.c line
525,
628,
1247,
1257
- in /usr/src/old/berknet/mach.c line
490
- in /usr/src/old/berknet/net.c line
382
- in /usr/src/old/berknet/setmode.c line
18
- in /usr/src/old/berknet/setup.c line
147,
161
- in /usr/src/old/dnd.c line
322
- in /usr/src/old/sdb/main.c line
93,
102
- in /usr/src/old/sdb/xeq.c line
60,
77,
280
- in /usr/src/ucb/Mail/main.c line
68
- in /usr/src/ucb/Mail/tty.c line
50
- in /usr/src/ucb/clear.c line
45
- in /usr/src/ucb/ex/ex_put.c line
1110
- in /usr/src/ucb/ex/ex_tty.c line
25
- in /usr/src/ucb/ex/exrecover.c line
193
- in /usr/src/ucb/ftp/getpass.c line
42
- in /usr/src/ucb/lisp/franz/lam1.c line
482
- in /usr/src/ucb/lisp/franz/lam9.c line
60
- in /usr/src/ucb/more/more.c line
1443,
1536-1537(2)
- in /usr/src/ucb/msgs/msgs.c line
139
- in /usr/src/ucb/tset/tset.c line
571
- in /usr/src/usr.bin/tabs.c line
90,
160,
180
- in /usr/src/usr.bin/troff/n1.c line
179
- in /usr/src/usr.bin/troff/n2.c line
195
- in /usr/src/usr.bin/uucp/aculib/att2224.c line
137-138(2)
- in /usr/src/usr.bin/uucp/aculib/df12.c line
139-140(2)
- in /usr/src/usr.bin/uucp/aculib/hys.c line
162-163(2)
- in /usr/src/usr.bin/uucp/aculib/hysq.c line
131-132(2)
- in /usr/src/usr.bin/uucp/aculib/nov.c line
94-95(2)
- in /usr/src/usr.bin/uucp/ioctl.c line
24-28(2)
- in /usr/src/usr.lib/libcurses/cr_tty.c line
52
- in /usr/src/usr.lib/libcurses/curses.h line
155
- in /usr/src/usr.lib/libplot/aed/open.c line
56
- in /usr/src/usr.lib/libplot/hp2648/open.c line
30
- in /usr/src/usr.lib/libplot/t300/open.c line
38
- in /usr/src/usr.lib/libplot/t300s/open.c line
38
- in /usr/src/usr.lib/libplot/t450/open.c line
40
- in /usr/src/usr.lib/sendmail/aux/mconnect.c line
50
Defined variables
sccsid
defined in line
8;
never used