Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ttyname(3C) — A/UX 3.0.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought




ttyname(3C) ttyname(3C)
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 pathname of the terminal device associated with file descriptor fildes. STATUS MESSAGES AND VALUES ttyname returns a NULL pointer if fildes does not describe a terminal device in directory /dev. isatty returns 1 if fildes is associated with a terminal device; otherwise, it returns 0. LIMITATIONS The return value points to static data whose content is overwritten by each call. FILES /dev/* Device files January 1992 1

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