Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ isatty(3C) — GL2 W3.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

TTYNAME(3C)  —  Silicon Graphics

NAME

ttyname, isatty − find name of a terminal

SYNOPSIS

char ∗ttyname (fildes)
int fildes;

int isatty (fildes)
int fildes;

DESCRIPTION

Ttyname returns a pointer to a string containing the null-terminated path name of the terminal device associated with file descriptor fildes.

Isatty returns 1 if fildes is associated with a terminal device, 0 otherwise. 

FILES

/dev/tty∗

DIAGNOSTICS

Ttyname returns a NULL pointer if fildes does not describe a terminal device in directory /dev. 

BUGS

The return value points to static data whose content is overwritten by each call. 

Version 3.6  —  December 20, 1987

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