Home Man
Search
Today's Posts
Register

Linux & Unix Commands - Search Man Pages

Unix Version 7 - man page for ttyname (v7 section 3)

TTYNAME(3)			     Library Functions Manual			       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 terminal device associ-
       ated with file descriptor fildes.

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

       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 terminal device in direc-
       tory `/dev'.

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

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

										       TTYNAME(3)


All times are GMT -4. The time now is 06:02 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password