

ttyname()                General Function               ttyname()




Identify a terminal

cchhaarr *ttttyynnaammee(_f_d)
iinntt _f_d;

Given  a  file  descriptor fd  attached  to  a terminal,  ttyname
returns the complete pathname of the special file (normally found
in the directory /dev).

***** Files *****

/ddeevv/* -- Terminal special files
/eettcc/ttttyyss -- Login terminals

***** See Also *****

general functions, ioctl(), isatty(), tty(), ttyslot()

***** Diagnostics *****

ttyname returns NULL if  it cannot find a special file correspon-
ding to fd.

***** Notes *****

The  string returned  by ttyname  kept in a  static area,  and is
overwritten by each subsequent call.





























COHERENT Lexicon                                           Page 1


