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

  man pages->NetBSD man pages -> getsid (2)              
Title
Content
Arch
Section
 

GETSID(2)

Contents


NAME    [Toc]    [Back]

     getsid - get session ID

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <unistd.h>

     pid_t
     getsid(pid_t pid);

DESCRIPTION    [Toc]    [Back]

     The getsid function returns the session ID of the process specified by
     pid.  If pid is 0, the session ID of the calling process is returned.
     The session ID is defined as the process group ID of the process that is
     the session leader.

ERRORS    [Toc]    [Back]

     If an error occurs, getsid returns -1 and the global variable errno is
     set to indicate the error, as follows:

     [ESRCH]            No process can be found corresponding to that specified
 by pid.

SEE ALSO    [Toc]    [Back]

      
      
     getpgid(2), termios(4)

STANDARDS    [Toc]    [Back]

     The getsid() function conforms to X/Open Portability Guide Issue 4.2
     (``XPG4.2'').

BSD                            February 13, 1998                           BSD
[ Back ]
 Similar pages
Name OS Title
setsid IRIX set session ID
SSL_set_session NetBSD set a TLS/SSL session to be used during TLS/SSL connect
tt_session_quit HP-UX quit the session
SSL_set_session OpenBSD set a TLS/SSL session to be used during TLS/SSL connect
startx IRIX initialize an X session
xsm IRIX X Session Manager
SSL_set_session Tru64 Set a TLS/SSL session to be used during TLS/SSL connect
getsid FreeBSD get process session
setsid Linux run a program in a new session
getsid OpenBSD get process session
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service