Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ttyname(3C) — svr3 — mips UMIPS RISC/os 5.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought



TTYNAME(3C-SVR3)    RISC/os Reference Manual     TTYNAME(3C-SVR3)



NAME
     ttyname, isatty - find name of a terminal

SYNOPSIS
     #include <bsd/sys/types.h>

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

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

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

























                        Printed 11/19/92                   Page 1



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