ttyname man page on UNIXv7

Man page or keyword search:  
man Server   300 pages
apropos Keyword Search (all sections)
Output format
UNIXv7 logo
[printable version]

TTYNAME(3)							    TTYNAME(3)

NAME
       ttyname, isatty, ttyslot - find name of a terminal

SYNOPSIS
       char *ttyname(fildes)

       isatty(fildes)

       ttyslot()

DESCRIPTION
       Ttyname	returns a pointer to the null-terminated path name of the ter‐
       minal device associated with file descriptor fildes.

       Isatty returns 1 if fildes is associated with a terminal device, 0 oth‐
       erwise.

       Ttyslot	returns	 the  number  of the entry in the ttys(5) file for the
       control terminal of the current process.

FILES
       /dev/*
       /etc/ttys

SEE ALSO
       ioctl(2), ttys(5)

DIAGNOSTICS
       Ttyname returns a null pointer (0) if fildes does not describe a termi‐
       nal device in directory `/dev'.

       Ttyslot returns 0 if `/etc/ttys' is inaccessible or if it cannot deter‐
       mine the control terminal.

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

								    TTYNAME(3)
[top]

List of man pages available for UNIXv7

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net