ttynam(3F)

ttynam, isatty - find name of a terminal port

As shipped in IRIX 6.5. First release of IRIX 6.5.

NAME
     ttynam, isatty - find name of a terminal port

SYNOPSIS
     character*(MAXLEN) function ttynam (lunit)

     logical function isatty (lunit)

DESCRIPTION
     Ttynam returns a blank padded path name of the terminal device associated
     with logical unit lunit.  MAXLEN is the maximum length of the path name
     for the terminal device.

     Isatty returns .true. if lunit is associated with a terminal device,
     .false. otherwise.

FILES
     /dev/*
     /usr/lib/libU77.a

DIAGNOSTICS
     Ttynam returns an empty string (all blanks) if lunit is not associated
     with a terminal device in directory `/dev'.

ORIGIN
     MIPS Computer Systems