Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ dg_get_subsid(2) — DG/UX R4.11MU05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

exec(2)

fork(2)

getpid(2)

setpgid(2)

setsid(2)

getsid(2)



dg_get_subsid(2)               DG/UX R4.11MU05              dg_get_subsid(2)


NAME
       dggetsubsid - get subsession ID

SYNOPSIS
       #include <sys/types.h>

       pidt dggetsubsid (pidt pid)

   where:
       pid    A process identifier

DESCRIPTION
       The function dggetsubsid returns the subsession ID of the process
       whose process ID is equal to pid.  If pid is equal to (pidt)0,
       dggetsubsid returns the subsession ID of the calling process.

RETURN VALUE
       Upon successful completion, the function dggetsubsid returns the
       subsession ID of the specified process; otherwise, it returns a value
       of (pidt)-1 and sets errno to indicate an error.

ACCESS CONTROL
       No access checking is performed.

DIAGNOSTICS
       Under the following conditions, the function dggetsubsid fails and
       sets errno to:

       ESRCH     if there is no process with a process ID equal to pid.

SEE ALSO
       exec(2), fork(2), getpid(2), setpgid(2), setsid(2), getsid(2),
       dgsetsubsid(2).


Licensed material--property of copyright holder(s)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026