File:  [MW Coherent from dump] / coherent / a / usr / man / COHERENT / ttyname
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:34 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent



ttyname()                General Function               ttyname()




Identify a terminal

cchhaarr *ttttyynnaammee(_f_d)
iinntt _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 *****

/ddeevv/* -- Terminal special files
/eettcc/ttttyyss -- 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



unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.