getpid(2) getpid(2)
NAME
getpid, getpgrp, getppid - get process, process group, and
parent process IDs
SYNOPSIS
int getpid ()
int getpgrp ()
int getppid ()
DESCRIPTION
getpid returns the process ID of the calling process.
getpgrp returns the process group ID of the calling process.
getppid returns the parent process ID of the calling
process.
These system calls are useful for generating uniquely-named
temporary files.
SEE ALSO
exec(2), fork(2), intro(2), setpgrp(2), signal(3).
Page 1 (last mod. 1/14/87)