manual page first distributed with 4.2BSD
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Thu, 16 May 1985 07:32:32 +0000 (23:32 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Thu, 16 May 1985 07:32:32 +0000 (23:32 -0800)
SCCS-vsn: share/man/man3f/ttynam.3 5.1

usr/src/share/man/man3f/ttynam.3 [new file with mode: 0644]

diff --git a/usr/src/share/man/man3f/ttynam.3 b/usr/src/share/man/man3f/ttynam.3
new file mode 100644 (file)
index 0000000..ff39328
--- /dev/null
@@ -0,0 +1,38 @@
+.\" Copyright (c) 1983 Regents of the University of California.
+.\" All rights reserved.  The Berkeley software License Agreement
+.\" specifies the terms and conditions for redistribution.
+.\"
+.\"    @(#)ttynam.3    5.1 (Berkeley) %G%
+.\"
+.TH TTYNAM 3F "13 June 1983"
+.UC 5
+.SH NAME
+ttynam, isatty \- find name of a terminal port
+.SH SYNOPSIS
+.B character*(*) function ttynam (lunit)
+.sp 1
+.B logical function isatty (lunit)
+.SH DESCRIPTION
+.I Ttynam
+returns a blank padded path name
+of the terminal device associated with logical unit
+.IR lunit .
+.PP
+.I Isatty
+returns
+.B .true.
+if
+.I lunit
+is associated with a terminal device,
+.B .false.
+otherwise.
+.SH FILES
+/dev/\(**
+.br
+.ie \nM /usr/ucb/lib/libU77.a
+.el /usr/lib/libU77.a
+.SH DIAGNOSTICS
+.I Ttynam
+returns an empty string (all blanks) if
+.I lunit
+is not associated with a terminal device in directory `/dev'.