Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ () — Coherent 3.1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


ttyname()                General Function               ttyname()




Identify a terminal

char *ttyname(fd)
int fd;

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 *****

/dev/* -- Terminal special files
/etc/ttys -- 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


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026