Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getpid(S) — OpenDesktop Software Development System 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

exec(S)

fork(S)

Intro(S)

setpgrp(S)

signal(S)


 getpid(S)                      6 January 1993                      getpid(S)


 Name

    getpid, getpgrp, getppid - get process, process group, and parent process
    ID

 Syntax


    cc  . . .  -lc


    pid_t getpid ()

    pid_t getpgrp ()

    pid_t getppid ()


 Description

    The getpid routine returns the process ID of the calling process.

    The getpgrp routine returns the process group ID of the calling process.

    The getppid routine returns the parent process ID of the calling process.

 Return value

    These routines are always successful and therefore no return value is
    used to signify an error.

 See also

    exec(S), fork(S), Intro(S), setpgrp(S), signal(S)

 Standards conformance

    getpgrp, getpid and getppid conform with:
    AT&T SVID Issue 2;
    X/Open Portability Guide, Issue 3, 1989;
    Intel386 Binary Compatibility Specification, Edition 2 (iBCSe2);
    IEEE POSIX Std 1003.1-1990 System Application Program Interface (API) [C
    Language] (ISO/IEC 9945-1);
    and NIST FIPS 151-1.


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