getpid(2) CLIX getpid(2)
NAME
getpid, getpgrp, getppid - Gets process ID, process group ID, and parent
process ID
LIBRARY
Standard C Library (libc.a)
SYNOPSIS
#include <sys/types.h>
pid_t getpid(
void );
pid_t getpgrp(
void );
pid_t getppid(
void );
DESCRIPTION
The getpid() function returns the process ID of the calling process.
The getpgrp() function returns the process group ID of the calling
process.
The getppid() function returns the parent process ID of the calling
process.
RETURN VALUES
The getpid() and getppid() functions return the requested user ID.
The getpgrp() function returns the requested process group ID.
RELATED INFORMATION
Functions: exec(2), fork(2), intro(2), setpgid(2), sigaction(2),
signal(2), setpgrp(2)
2/94 - Intergraph Corporation 1