Manual Pages for UNIX Darwin command on man getsid
MyWebUniversity

Manual Pages for UNIX Darwin command on man getsid

GETSID(2) BSD System Calls Manual GETSID(2)

NAME

ggeettssiidd - get process session

LLIIBBRRAARRYY

Standard C Library (libc, -lc)

SYNOPSIS

##iinncclluuddee <>

pidt ggeettssiidd(pidt pid);

DESCRIPTION

The session ID of the process identified by pid is returned by ggeettssiidd(). If pid is zero, ggeettssiidd() returns the session ID of the current process.

RETURN VALUES

Upon successful completion, the function ggeettssiidd() returns the session ID

of the specified process; otherwise, it returns a value of -1 and sets

errno to indicate an error. EERRRROORRSS The ggeettssiidd() system call will fail if: [ESRCH] There is no process with a process ID equal to pid. Note that an implementation may restrict this function call to processes within the same session ID as the calling process.

SEE ALSO

getpgid(2), getpgrp(2), setpgid(2), setsid(2), termios(4) HISTORY

The ggeettssiidd() function call appeared in FreeBSD 3.0. The ggeettssiidd() func-

tion call is derived from its usage in AT&T System V UNIX. BSD August 19, 1997 BSD




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™