Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ isatty(3C) — DG/UX 5.4.2A

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ttyslot(3C)

ttysrch(4m)



ttyname(3C)                      DG/UX 5.4.2                     ttyname(3C)


NAME
       ttyname, isatty - find name of a terminal

SYNOPSIS
       #include <stdlib.h>

       char *ttyname (int fildes);

       int isatty (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.

SEE ALSO
       ttyslot(3C), ttysrch(4m).

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


























Licensed material--property of copyright holder(s)                         1


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