Returns the process ID, process group ID, and parent process ID.
pid_t getpid (void)
pid_t getpgrp (void)
pid_t getppid (void)
The getpid subroutine returns the process ID of the calling process.
The getpgrp subroutine returns the process group ID of the calling process.
The getppid subroutine returns the process ID of the calling process' parent process.
These subroutines are part of Base Operating System (BOS) Runtime.
The exec subroutines, fork subroutine, setpgid subroutine, setpgrp subroutine, sigaction, sigvec, or signal subroutine.
Subroutines Overview in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.