correct see also
[unix-history] / usr / src / share / man / man3f / ttynam.3
CommitLineData
80d03a1e
KM
1.\" Copyright (c) 1983 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
63dd26ef 5.\" @(#)ttynam.3 6.1 (Berkeley) %G%
80d03a1e 6.\"
63dd26ef 7.TH TTYNAM 3F ""
80d03a1e
KM
8.UC 5
9.SH NAME
10ttynam, isatty \- find name of a terminal port
11.SH SYNOPSIS
12.B character*(*) function ttynam (lunit)
13.sp 1
14.B logical function isatty (lunit)
15.SH DESCRIPTION
16.I Ttynam
17returns a blank padded path name
18of the terminal device associated with logical unit
19.IR lunit .
20.PP
21.I Isatty
22returns
23.B .true.
24if
25.I lunit
26is associated with a terminal device,
27.B .false.
28otherwise.
29.SH FILES
30/dev/\(**
31.br
32.ie \nM /usr/ucb/lib/libU77.a
33.el /usr/lib/libU77.a
34.SH DIAGNOSTICS
35.I Ttynam
36returns an empty string (all blanks) if
37.I lunit
38is not associated with a terminal device in directory `/dev'.