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

  man pages->Tru64 Unix man pages -> tcgetsid (3)              
Title
Content
Arch
Section
 

tcgetsid(3)

Contents


NAME    [Toc]    [Back]

       tcgetsid - returns the session ID of the terminal

SYNOPSIS    [Toc]    [Back]

       #include <termios.h>

       pid_t tcgetsid(
               pid_t fildes );

LIBRARY    [Toc]    [Back]

       Standard C Library (libc.so, libc.a)

STANDARDS    [Toc]    [Back]

       Interfaces  documented  on  this reference page conform to
       industry standards as follows:

       tcgetsid():  XSH4.2

       Refer to the standards(5) reference page for more information
 about industry standards and associated tags.

PARAMETERS    [Toc]    [Back]

       Specifies a terminal.

DESCRIPTION    [Toc]    [Back]

       The  tcgetsid()  routine is a part of the general terminal
       interface.  This routine obtains the  session  ID  of  the
       terminal as specified by the fildes parameter.

ERRORS    [Toc]    [Back]

       The tcgetsid() function sets errno to the specified values
       for the following conditions: The descriptor fildes is not
       associated  with  a  controlling terminal.  The descriptor
       fildes is not valid.  The file associated with  fildes  is
       not a terminal.

              [Tru64  UNIX]  The descriptor fildes is not associated
 with a character special device or the  specified
  request  does not apply to the kind of object
              that fildes references.

RETURN VALUE    [Toc]    [Back]

       On success, tcgetsid() returns  the  session  ID  that  is
       associated  with the terminal specified. If the session ID
       of the terminal cannot be obtained, a value  of  (pid_t)-1
       is returned and errno is set to indicate error.

SEE ALSO    [Toc]    [Back]

      
      
       Standards: standards(5)



                                                      tcgetsid(3)
[ Back ]
 Similar pages
Name OS Title
tsm HP-UX Terminal Session Manager
tcgetsid NetBSD get session ID associated with a controlling terminal
script Tru64 Makes a transcript of terminal session
login HP-UX sign on; start terminal session
script HP-UX make typescript of terminal session
script Linux make typescript of terminal session
script OpenBSD make typescript of terminal session
script IRIX make typescript of terminal session
script FreeBSD make typescript of terminal session
tsm.command HP-UX send commands to the Terminal Session Manager (TSM)
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service