Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ttyname(3C) — sys5 — Apollo

Media Vault

Software Library

Restoration Projects

Artifacts Sought



TTYNAME(3C)     DOMAIN/IX Reference Manual (SYS5)     TTYNAME(3C)



NAME
     ttyname, isatty - find name of a terminal

USAGE
     char *ttyname (fildes)
     int fildes;

     int isatty (fildes)
     int fildes;

DESCRIPTION
     Ttyname returns a pointer to a string that contains the
     null-terminated pathname of the terminal device that is
     associated with file descriptor fildes.

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

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

FILES
     /dev/*

DIAGNOSTICS
     Ttyname returns a NULL pointer if fildes does not describe a
     terminal device.



























Printed 5/10/85                                         TTYNAME-1



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