Start development on Research V7
[unix-history] / .ref-Research-V6 / usr / doc / man / man3 / ttyn.3
CommitLineData
878b8aef
KT
1.th TTYN III 1/15/73
2.sh NAME
3ttyn \*- return name of current typewriter
4.sh SYNOPSIS
5.ft B
6jsr pc,ttyn
7.s3
8ttyn(file)
9.s3
10.ft R
11.sh DESCRIPTION
12.it Ttyn
13hunts up the last character of the name of the
14typewriter which is the standard input (from \fIas\fR)
15or is specified by the
16argument
17.it file
18descriptor (from C).
19If \fIn\fR is returned, the
20typewriter name is then ``/dev/tty\fIn\fR''.
21.s3
22.bd x
23is returned if the indicated file does not correspond to a
24typewriter.
25.sh BUGS