1GETPID(2) System Calls Manual GETPID(2)234
NAME
6getpid, getppid - get process identification7
SYNOPSIS
9pid = getpid()10int pid;1112ppid = getppid()13int ppid;14
DESCRIPTION
16Getpid returns the process ID of the current process. Most often it is17used to generate uniquely-named temporary files.1819Getppid returns the process ID of the parent of the current process.20
SEE ALSO
22gethostid(2)232425264th Berkeley Distribution May 13, 1986 GETPID(2)