GETPID(S) UNIX System V GETPID(S)
Name
getpid, getpgrp, getppid - get process, process group, and
parent process IDs
Syntax
int getpid ()
int getpgrp ()
int getppid ()
Description
The getpid system call returns the process ID of the calling
process.
The getpgrp system call returns the process group ID of the
calling process.
The getppid system call returns the parent process ID of the
calling process.
See Also
exec(S), fork(S), intro(S), setpgrp(S), signal(S)
Standards Conformance
getpgrp, getpid and getppid are conformant with:
AT&T SVID Issue 2, Select Code 307-127;
The X/Open Portability Guide II of January 1987;
IEEE POSIX Std 1003.1-1988 with C Standard Language-
Dependent System Support;
and NIST FIPS 151-1.
(printed 6/20/89)