*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> ttyname (3)              
Title
Content
Arch
Section
 

TTYNAME(3)

Contents


NAME    [Toc]    [Back]

       ttyname - return name of a terminal

SYNOPSIS    [Toc]    [Back]

       #include <unistd.h>

       char *ttyname ( int desc );

DESCRIPTION    [Toc]    [Back]

       Returns	a  pointer to the pathname of the terminal device that is open
       on the file descriptor desc, or NULL on error (for example, if desc  is
       not connected to a terminal).

CONFORMING TO    [Toc]    [Back]

       POSIX.1

SEE ALSO    [Toc]    [Back]

      
      
       fstat(2), isatty(3)



Linux				  1995-04-20			    TTYNAME(3)
[ Back ]
 Similar pages
Name OS Title
tty FreeBSD return user's terminal name
tty OpenBSD return user's terminal name
termios Linux get and set terminal attributes, line control, get and set baud rate, get and set terminal foregroun...
ct HP-UX spawn getty to a remote terminal (call terminal)
ttyname_r Tru64 Get the name of a terminal
pty HP-UX get the name of the terminal
tty HP-UX get the name of the terminal
isatty Tru64 Get the name of a terminal
tty IRIX get the name of the terminal
ttyname Tru64 Get the name of a terminal
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service