# 2.11BSD#431 - /usr/src/lib/libc/compat-4.1/gtty.c

##### Functions

    gtty              X

       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 75 times

- in /usr/include/curses.h line 155
- in /usr/ingres/source/iutil/initucode.c line 587
- in /usr/src/bin/adb/main.c line 85-86(2)
- in /usr/src/bin/adb/runpcs.c line 239
- in /usr/src/bin/ls/ls.c line 85
- in /usr/src/bin/sh/main.c line 122(2)
- 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 512
- in /usr/src/games/hack/hack.tty.c line 24
- 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 142
- in /usr/src/games/warp/term.h line 210
- in /usr/src/games/worms.c line 234
- in /usr/src/games/wump.c line 397
- in /usr/src/include/curses.h line 155
- in /usr/src/new/OLD/apl/src/am.c line 33, 56, 91
- in /usr/src/new/OLD/apl/src/xed.c line 4391
- in /usr/src/new/PORT/B/src/bed/unix.c line 281, 292
- in /usr/src/new/PORT/apl/src/am.c line 33, 56, 91
- in /usr/src/new/jove/jove.c line 322, 566
- in /usr/src/new/kermit5.188/ckutio.c line 929, 1392, 1443-1444(2), 3194, 3243, 4754, 5159-5161(3)
- in /usr/src/new/notes/src/miscio.c line 60
- in /usr/src/new/rn/term.h line 107
- in /usr/src/ucb/clear.c line 45
- in /usr/src/ucb/ex/ex_put.c line 1092
- in /usr/src/ucb/ex/ex_tty.c line 25
- in /usr/src/ucb/ex/exrecover.c line 191
- in /usr/src/ucb/more/more.c line 1433, 1526-1527(2)
- in /usr/src/ucb/msgs/msgs.c line 139
- in /usr/src/ucb/tset/tset.c line 391
- in /usr/src/usr.bin/roff/common_source/n1.c line 179
- in /usr/src/usr.bin/roff/common_source/n2.c line 195
- in /usr/src/usr.bin/tabs.c line 93
- 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.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.sbin/sendmail.MX/aux/mconnect.c line 54
- in /usr/src/usr.sbin/sendmail/aux/mconnect.c line 50

#### Defined variables

sccsid defined in line 8; never used

Last modified: 1986-03-10 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: ?E00 |