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

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

CTERMID(3)

Contents


NAME    [Toc]    [Back]

       ctermid - get controlling terminal name

SYNOPSIS    [Toc]    [Back]

       #include <stdio.h>

       char *ctermid(char *s);

DESCRIPTION    [Toc]    [Back]

       ctermid()  returns  a string which is the pathname for the current controlling
 terminal for this process.  If s is NULL, a static  buffer  is
       used,  otherwise  s  points to a buffer used to hold the terminal pathname.
  The symbolic constant L_ctermid is the maximum number of characters
 in the returned pathname.

RETURN VALUE    [Toc]    [Back]

       The pointer to the pathname.

CONFORMING TO    [Toc]    [Back]

       POSIX.1

BUGS    [Toc]    [Back]

       The  path  returned may not uniquely identify the controlling terminal;
       it may, for example, be /dev/tty.

       It is not assured that the program can open the terminal.

SEE ALSO    [Toc]    [Back]

      
      
       ttyname(3)



GNU				  1993-04-06			    CTERMID(3)
[ Back ]
 Similar pages
Name OS Title
tty Linux controlling terminal
daemon FreeBSD run detached from the controlling terminal
tty HP-UX controlling terminal interface
tcgetsid NetBSD get session ID associated with a controlling terminal
tty IRIX controlling terminal interface
ctermid Tru64 Generate the pathname for the controlling terminal
clearok Tru64 Routines for controlling output options for a Curses terminal
nonl Tru64 Routines for controlling output options for a Curses terminal
scrollok Tru64 Routines for controlling output options for a Curses terminal
setscrreg Tru64 Routines for controlling output options for a Curses terminal
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service